Open LloydAlbin opened 1 year ago
My friend, in these cases, we usually check the sensor manually, with a program, such as the example given by Jaycon Systems:
https://www.jaycon.com/understanding-a-gas-sensor/
Once all the setup works correctly and we understand each mathematical equation, we proceed to make the adjustment in the library (if required) and we load an example (if it is for a different board than the ones already saved) or update the example (if it is an existing board) in the library.
Finally with a pull request I can support you to make this setting available to the whole community.
I remain attentive to any new developments
Describe the bug When using the sample code for ESP32 and updating it for the MQ135 per the MQ135-all sample code, I run into the "Warning: Conection issue, R0 is infinite (Open circuit detected) please check your wiring and supply" unless I use a cigarette lighter's gas in front of the sensor during the calibration process.
Code
I also updated MQUinifiedsensor.cpp to give me some diagnostic information to help with debugging this issue.
To Reproduce Compile and run.
Now re-run using a cigarette lighter's gas in front of the sensor. Note the zeros are after I turn off the gas.
Expected behavior I would expect this app to be able to calibrate properly in clean air. I have also tried putting in a delay(20000); after the MQ135.init(); to see if it just needed 20 seconds to warm up before the calibration process started. This did not help so I also tried 60,000 and it also did not help, _sensor_volt = 0.00 after either 20,000 and 60,000 wait.
Hardware: