Skip to content
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

1.5V and 5V cycle for sensors like MQ7 #26

Closed
amirsalman93 opened this issue Apr 11, 2020 · 1 comment
Closed

1.5V and 5V cycle for sensors like MQ7 #26

amirsalman93 opened this issue Apr 11, 2020 · 1 comment
Assignees
Labels
Doing Work in progress enhancement New feature or request good first issue Good for newcomers

Comments

@amirsalman93
Copy link

If you look at the datasheet of MQ7, It requires a periodic cycle of 5V (Release State for 60 seconds) and 1.5V (Absorb state for 90 seconds) to operate correctly.

Source: https://www.sparkfun.com/datasheets/Sensors/Biometric/MQ-7.pdf

image

Can you please add it to the library?
Thanks

@miguel5612 miguel5612 added Doing Work in progress enhancement New feature or request good first issue Good for newcomers labels Apr 11, 2020
@miguel5612 miguel5612 self-assigned this Apr 11, 2020
@miguel5612
Copy link
Owner

According to:
[https://forum.arduino.cc/index.php?topic=204036.0](Calculating PWM Duty Cycles)

A TRMS instrument would show you sqrt(12^2*0.25) = 6V

This means, using a sqrt(5^2*0.08) = sqrt(2) = 1.4142135 -> DutyCycle 8% is equal to 1.41 Volts aprox
And according to:
https://forum.arduino.cc/index.php?topic=567771.0
Heater could be conected using a mosfet (IRLZ34N)
image
Note: if you are going to do this practice with a nodeMCU, ESP8266 or ESP32, you must place the voltage divider at the output so that your output range reaching pin A0 of your arduino is between 0 and 3V3
Code: We will update MQ7 - MQ-309 examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Doing Work in progress enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants