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

Value of _RLValue #13

Closed
mustaffxx opened this issue Sep 27, 2019 · 3 comments
Closed

Value of _RLValue #13

mustaffxx opened this issue Sep 27, 2019 · 3 comments
Assignees
Labels
Doing Work in progress enhancement New feature or request

Comments

@mustaffxx
Copy link

The function calibrate() use _RLValue. Looking for this value, I saw that it is set to:
byte _RLValue = 10; //Value in KiloOhms

Why?
In the datasheet given it says this resistance is 200k Ohms.
Do all MQ sensor modules use 10k?

@miguel5612
Copy link
Owner

image

Good morning mustaffxx.
Our reason for assuming that it is 10K is because in the sensors we have acquired we have found this value, however after reviewing the datasheet you indicate and seeing the MQ sensor of other manufacturers we have noticed that these values may differ.
We have added two new methods that you can invoke in your program, if the sensor you have is the MQ3, you can use them in the following way:

// To read the current RL value in KOhms
Serial.println(MQ3.getRL());

// To assign a new value to RL in KOhms:
MQ3.setRL(200); //200KOhms for your case

Thank you for contacting us and we will be publishing the new version in the coming days.

@miguel5612 miguel5612 pinned this issue Sep 28, 2019
@miguel5612 miguel5612 self-assigned this Sep 28, 2019
@miguel5612 miguel5612 added Doing Work in progress enhancement New feature or request labels Sep 28, 2019
@miguel5612
Copy link
Owner

New release was published in arduino library manager (1.0.4)

@miguel5612 miguel5612 unpinned this issue Sep 30, 2019
@mustaffxx
Copy link
Author

Thanks. My module follows this pattern of components but the components are in different locations, I will try.

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
Projects
None yet
Development

No branches or pull requests

2 participants