-
Notifications
You must be signed in to change notification settings - Fork 37
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
Returns null - Need help #26
Comments
You need a 1-5k Ohm resistor between Vcc+ and TxD line.
…On Sun, Dec 13, 2020 at 7:33 AM Olaf Kocanda ***@***.***> wrote:
Hi there,
first of all thank you for your package. I have recently started playing
around with a rpi 4 and wanted to connect a mh-z19b with your python
package.
I made sure the serials are available:
serial0 -> ttyS0
serial1 -> ttyAMA0
Enabled i2c
However i2c output is empty
And even made sure uart is enabled (as seen on another blog
<https://www.circuits.dk/testing-mh-z19-ndir-co2-sensor-module/> )
When I run sudo python -m mh_z19 I (most of the time) get back
null
Sometimes, however there is also another message:
[image: IMG_1122]
<https://user-images.githubusercontent.com/58265203/102014806-2f01de00-3d58-11eb-9cfc-5378564dfbaa.jpg>
Here is my cabling set up.
[image: IMG_0623]
<https://user-images.githubusercontent.com/58265203/102014588-ff9ea180-3d56-11eb-8034-541b22045080.jpg>
[image: IMG_0625]
<https://user-images.githubusercontent.com/58265203/102014605-1ba24300-3d57-11eb-8d48-4d6b02994e1a.jpg>
I should mention, that the soldered pins at the mh-z19b where bent a bit
due to delivery. But I don't think (hope) this is a problem.
Do you have any ideas what else I could test to make it work?
Thanks in advance!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#26>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEBLRRP2TBJDGLG3JTPUAMTSUTGEVANCNFSM4UZRETAA>
.
|
You should be able to see the unit light up through the white box on the
side. Usually it's the transfer packet clock that needs a resistor (Tx =
Transfer) between the (Vcc 3v) to be able to decode the strings received by
the unit correctly. The (RxD = Receive line) doesn't need the resistor.
…On Mon, Dec 14, 2020 at 1:29 AM Olaf Kocanda ***@***.***> wrote:
Hi nincube8,
could you explain a bit what you mean by Vcc+ and TxD line?
Do you want me to put a resistor going from the Vin to the Tx on the
MH-Z19B?
[image: 102014605-1ba24300-3d57-11eb-8d48-4d6b02994e1a]
<https://user-images.githubusercontent.com/58265203/102057757-b39f3b80-3dee-11eb-96dd-8be0933ce8c2.jpg>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEBLRRJTPYCLRW7CJZBTVDLSUXEGDANCNFSM4UZRETAA>
.
|
I believe this unit is a 5 Volt unit and requires the 5 volt rail on your
Device or Microcomputer.
On Mon, Dec 14, 2020 at 1:41 AM CK Gaming Channel <cevatkose@gmail.com>
wrote:
… You should be able to see the unit light up through the white box on the
side. Usually it's the transfer packet clock that needs a resistor (Tx =
Transfer) between the (Vcc 3v) to be able to decode the strings received by
the unit correctly. The (RxD = Receive line) doesn't need the resistor.
On Mon, Dec 14, 2020 at 1:29 AM Olaf Kocanda ***@***.***>
wrote:
> Hi nincube8,
>
> could you explain a bit what you mean by Vcc+ and TxD line?
>
> Do you want me to put a resistor going from the Vin to the Tx on the
> MH-Z19B?
> [image: 102014605-1ba24300-3d57-11eb-8d48-4d6b02994e1a]
> <https://user-images.githubusercontent.com/58265203/102057757-b39f3b80-3dee-11eb-96dd-8be0933ce8c2.jpg>
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#26 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AEBLRRJTPYCLRW7CJZBTVDLSUXEGDANCNFSM4UZRETAA>
> .
>
|
just to make sure: The MH-Z19B is connected to the 5v pin on my raspberry. Shouldn't the light be on if it receives enough power without any further resistors? |
Yes, that is correct.
…On Mon, Dec 14, 2020 at 1:52 AM Olaf Kocanda ***@***.***> wrote:
just to make sure: The MH-Z19B is connected to the 5v pin on my raspberry.
Shouldn't the light be on if it receives enough power without any further
resistors?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEBLRRPQHHGEOREQWQ6OE7DSUXG4LANCNFSM4UZRETAA>
.
|
Thanks! Well, then I believe there is something else I am missing here to make it work... |
Hi there. After installing it, the "null" problem was solved. |
I have same problem. will try to solder. |
I had the same issue. I added:
to /boot/config.txt, reboot and /dev/serial0 works. |
This worked for me as well. |
no feedback |
I put a 1k Ohm resistor between Tx and Vin still Null then I Tried 3k Ohm but still null every other solution like fix core_freq to 250 are not working aswell. :/ Do you have any ideas to solve this problem ? |
im having the same problem as you man. pi 4b |
How about using PWM interface? |
i tried that man, i connected the pwm on the sensor to gpio12, gpio26 and gpio 16 (which is the fifth one from the top right)
and here's the error im getting
|
For PWM, connect with 3 lines: 5V, GND, and signal line(Fx: gpio12). |
Hi there,
first of all thank you for your package. I have recently started playing around with a rpi 4 and wanted to connect a mh-z19b with your python package.
I made sure the serials are available:
Enabled i2c
However i2c output is empty
And even made sure uart is enabled (as seen on another blog )
When I run sudo python -m mh_z19 I (most of the time) get back
null
Sometimes, however there is also another message:
Here is my cabling set up.
I should mention, that the soldered pins at the mh-z19b where bent a bit due to delivery. But I don't think (hope) this is a problem.
Do you have any ideas what else I could test to make it work?
Thanks in advance!
The text was updated successfully, but these errors were encountered: