I'm trying to get the carbon monoxide level in room with MQ-9 sensor but the results are strange. When I power up first start increases result to some random point and than starts decreasing. If I change the sensor is the same problem.
Sensor I hook up with +5V, gnd and A0.
Sensor have 4 pins, the forth pin is D0 (digital output) but i didn't know how to use it. I was searching, but I only find examples with sensor that have 3 pins . should I use D0? how?
D0 is the digital output, you can turn the potentionmeter for the comparator that makes D0 high at a certain level. Is the other pin an analog output ?
Use the AO, the analog output.
After power up, let the heater heat the sensor for a few minutes. Are the values okay after 5 minutes ?
Did you do the pre-heat time ? You have to keep it turned on for 48 hours. Only after that it gives useable values.
I think the heater at 1.5V is not possible with that module.
The comparator is the black chip on the module. It uses the analog value and the potentiometer as inputs. It makes the DO high when the sensor value if above the potentiometer value.
After a few minutes the values on the two sensors were okay, except on the one where the sensor was totally missed(bad sensor).
No I haven't done a pre-heat time and adjustment. Is too late now?
I made a little research on this comparator but I haven't found anything usefull for my case. Can you please tell me a little more on how I can use it in my case or I do i even need it now when the values are okay?