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

Info request #1

Open
dentex opened this issue Feb 1, 2019 · 2 comments
Open

Info request #1

dentex opened this issue Feb 1, 2019 · 2 comments

Comments

@dentex
Copy link

dentex commented Feb 1, 2019

Hello!
I was trying to use a Chinese module with a MQ7 sensor onboard. Using your library I found that MicroPython complained about some syntax errors (apparently; I'm not an expert). I changed it a little bit and I issued a reading... Then I had a final error I don't know how to fix:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "BaseMQ.py", line 150, in readScaled
ValueError: math domain error

Other than that, according to what the guys here were talking about, it seems that to issue a reading, the module must be powered respecting certain cycles (1,4V and 5V alternatively).

Do you have any advice in regards?
Thanks.

@NahianMugdho
Copy link

Hello! I was trying to use a Chinese module with a MQ7 sensor onboard. Using your library I found that MicroPython complained about some syntax errors (apparently; I'm not an expert). I changed it a little bit and I issued a reading... Then I had a final error I don't know how to fix:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "BaseMQ.py", line 150, in readScaled
ValueError: math domain error

Other than that, according to what the guys here were talking about, it seems that to issue a reading, the module must be powered respecting certain cycles (1,4V and 5V alternatively).

Do you have any advice in regards? Thanks.

Were you able to solve your problem? I'm facing the same "Math Domain Error" problem with MQ-2.

@dentex
Copy link
Author

dentex commented Nov 17, 2022

I never actually used the module, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants