-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supports for MQ analog sensor for air quality #14581
Conversation
It's support the analog sensor for quality air (also for esp-32) -added on list of assignable pins in module -with adcparams can choose wich mqx you have with seconds param ex: adcparam 10 4 (you have the mq-04)
Add support for MQ analog sensor for air quality by Francesco Adriani (#14581)
Issuing command: adcparam 10 4 is not changing the sensor from the default MQ2 to MQ4. Any guidance? |
@erdinguma Did you correctly configured your ADC input in the GPIO configuration ? |
@barbudor Yes. Selected “ADC MQ” and I am reading values. Just need to change it to MQ 4. |
The help update has not yet been released but you need to change a & b exponential regression params via adcparams. |
It worked! |
Yeah! |
Is not simple link two sensor value.. But could be a starting point for future developments |
Yes. I am thinking to implement something similar to Sensirion SGP40 or SGP41 which reads another sensor, SHT4x to compensate VOC sensing for temp and humidity. (I realize SGP41 itself hasn't even been ported to Tasmota yet) In the interim, I thought to post my compensation formula because it can be used in post processing of data after received from MQTT and it would make a significant difference in results even if not processed at firmware level in real time. |
Hi,
|
@Links2004 #14581 (comment) |
Description:
It's support the analog sensor for quality air (also for esp-32)
-added on list of assignable pins in module
-with adcparams can choose whic mqx you have with seconds param ex: adcparam 10 4 (you have the mq-04)
Related issue (if applicable): fixes #
Checklist:
NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass