![how to calculate ppm from mq135 how to calculate ppm from mq135](https://i1.wp.com/www.electroniclinic.com/wp-content/uploads/2021/05/MQ135-sensor.jpg)
Thank you in advance int gasAnalogPin = A0 Can someone help me complete the PPM calculation or point me in the right direction.Here is the Data sheet
HOW TO CALCULATE PPM FROM MQ135 CODE
So far with my code below the ratio I get is between 20 and 30. I tried to follow this ,but some parts, are very clear especially R0 = RS_air/(26+(1/3)) But the issue is i still can't grasp the concept of converting analog readings to PPM. Some of those gases (i.e butane, ammonia) would be easy to get.I am new to Arduino and electronics in general.I am working on MQ 7 Gas sensor to test Carbon monoxide level. I know you can get nearly anything at some industrial supply places, but I believe you need to buy big (and expensive) quantities? Of course, I can get some carbon monoxide from my car exhaust and I'm sure a few of those gases can be made at home with some simple chemistry.īy the way, I found a great list of all the "MQ" gas sensors. I actually LIKE this idea, the only thing I'm not sure about is the source of some of the gases. I do have cans of compressed air but I'm not sure how "pure" they are. Today in Montreal we are under a smog alert (because it's 20 below zero and everyone who owns a fireplace is using it). That would have been a lot easier back when I lived in Hawaii, the air quality is excellent there. I used to work as a chemist at one point, so please forgive my overzealous excitement for this project. I can hardly wait to see Bill in his white lab coat. Oops! I just fell off the edge of my seat! ? You could do a FANTASTIC test where you could even check to see if they actually trigger when the correct amount of gas is injected. You can then calculate exactly how much gas you should need to inject into the jar in order to reach that critical level to trigger the sensor. The other nice feature of this method is that if the sensors have specifications for how many ppm of gas they can detect. Am I making a lot of work for you Bill or what? Then air them all out and do a dozen more tests. Since the parts should be inexpensive you could even build a dozen test enclosures to you can do a dozen tests at a time in the video. I'm so excited I'm sitting on the edge of my seat waiting for the video to come out! ?
![how to calculate ppm from mq135 how to calculate ppm from mq135](https://components101.com/sites/default/files/component_pin/MQ135-Sensor-Pinout.png)
You could end up having enough data to write an article for a Chemistry Journal.
![how to calculate ppm from mq135 how to calculate ppm from mq135](https://image.slidesharecdn.com/wateritstreatment-150211013707-conversion-gate02/95/water-its-treatment-25-638.jpg)
You may even want to do multiple tests on each sensor to see if their performance changes once they have been previously exposed to a gas. The jar can then be taken outside, cleared of the gas. Don't forget to wear a white lab coat in this chemistry episode. This way you can even record exactly how much of the gas had to be injected before the sensor was triggered. Then you can slowly inject a precisely known amount of gas into the container by depressing the plunger on the syringe. Then set the whole shebang up with just air and the sensor in the sealed container. Wire the senors up with wires going through the lids and sealed with hot-glue.Īlso, hot-glue a receptor for a syringe onto the lid. For whatever they are worth.īuy some plastic syringes and some plastic containers or jars with air-tight lids. Posted by: only problem is how do I test them without releasing the gases into the workshop?