MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
TD-er
Core team member
Posts: 8750
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#11 Post by TD-er » 16 Dec 2017, 18:01

Does the red light inside the sensor light up every so many seconds?
I never used the version with the external white connector.
Have you also tried to switch Rx and Tx?

dmq
Normal user
Posts: 18
Joined: 09 Dec 2017, 19:15

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#12 Post by dmq » 16 Dec 2017, 19:20

Yes, the red light is there. Under Arduino I get valid data. I switched rx and tx.

TD-er
Core team member
Posts: 8750
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#13 Post by TD-er » 16 Dec 2017, 21:24

What voltage do to use as Vin?
I have only used the older (pre B) version on 3.3V, but maybe the newer versions are a bit more specific on the input voltage.

dmq
Normal user
Posts: 18
Joined: 09 Dec 2017, 19:15

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#14 Post by dmq » 16 Dec 2017, 21:32

I use 5V - do you think I shall try 3.3V DC?

TD-er
Core team member
Posts: 8750
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#15 Post by TD-er » 17 Dec 2017, 02:13

Nope, the datasheet mentions 3.6 - 5.5V, which starts at >3.3V
So I guess its results will be less accurate for 3.3V

timbiker
Normal user
Posts: 29
Joined: 09 Nov 2017, 11:37

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#16 Post by timbiker » 17 Dec 2017, 10:32

TD-er wrote: 12 Dec 2017, 22:24 I have both sensors here (MHZ19 and -B version).
In one system I use these pins:
D5 GPIO14
D6 GPIO12

And in the other system:
D3 GPIO0
D4 GPIO2 (BUILTIN_LED on Wemos D1 mini)

I think you could try D5 and D6.
Are there other plugins active? Perhaps try to disable them, just for debugging.
Right, Mine is on D5 for the Tx and D6 for the Rx. 5v powered and it is working also

dmq
Normal user
Posts: 18
Joined: 09 Dec 2017, 19:15

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#17 Post by dmq » 17 Dec 2017, 18:51

Strange. And you are both on "ESPeasy 2.0 dev 12"?

I use the precompiled image "ESPEasy_v2.0.0-dev12_dev_4096".

timbiker
Normal user
Posts: 29
Joined: 09 Nov 2017, 11:37

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#18 Post by timbiker » 18 Dec 2017, 10:05

Well, I compiled myself the core of version 2.0 dev 12 with the plugin of the branch "2.0" because my sensor is the B version and it's only supported by this plugin. I compiled a 1024 bin but this is not that important.

But I though about that today, I recently wasted my time in having a lot of issue on a project. I just solved them in changing my power supply : as this sensor is quite hungry during peak, check with a good power supply and a good cable

dgcracker
New user
Posts: 7
Joined: 19 Dec 2017, 11:06

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#19 Post by dgcracker » 19 Dec 2017, 12:41

Hello all !
I am new on this forum so at the beginning I am sorry form simple questions. I am user of Nodemcu V3 and MH-Z19B. I have loaded ESPEasy_v2.0.0-dev12_dev_4096.bin into Nodemcu. I have connected D6-Tx, D7-Rx power supply is from nodemcu(5VIN,GND) and configured MH-Z19B sensor as:

CO2 MH-Z19 [TESTING]
1st GPIO GPIO-12(D6)
2nd GPIO GPIO-13(D7)
ABC Disabled
Delay 60[sec]

And in logs I see messages: “MHZ19: Unstable reading, ignoring! PPM value: 1470 Temp/S/U values: 28/0/0.00”. Values are only visible in logs, I can’t read them :(
Sensor seems to work fine? From time to time blinking read but I can’t display values on LCD connected to nodemcu. I gues that problem is in incorrect software loaded into nodemcu. And here is my question – which software version for nodemcu v3 is correctly working with MH-Z19B and where can I download compiled (*.bin) version? I am a newbie not familiar with Arduino IDE, compiling modules etc. Maybe somebody have already compiled and working version with MH-Z19B.

Thank you for help!

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#20 Post by grovkillen » 19 Dec 2017, 12:47

dgcracker wrote: 19 Dec 2017, 12:41 ... I have loaded ESPEasy_v2.0.0-dev12_dev_4096.bin ...
The MH-Z19 plugin is active in the "test" bin file so you can flash that instead just to try. As of next release the plugin is part of the "normal" build. Just for information.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

dgcracker
New user
Posts: 7
Joined: 19 Dec 2017, 11:06

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#21 Post by dgcracker » 19 Dec 2017, 16:25

Thx for reply. I have loaded test file into nodemcu v3 and there is no change. Still can't read sensor values. Only in logs I see messages “MHZ19: Unstable reading, ignoring! PPM value: 776 ...." PPM and Temp in logs are changing but each read of sensor values report "Unstable reading....". Sensor red leds are blinking from time to time so it looks like sensor is OK. Any ideas?
Thank you for help!

timbiker
Normal user
Posts: 29
Joined: 09 Nov 2017, 11:37

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#22 Post by timbiker » 19 Dec 2017, 18:01

dgcracker wrote: 19 Dec 2017, 16:25 Thx for reply. I have loaded test file into nodemcu v3 and there is no change. Still can't read sensor values. Only in logs I see messages “MHZ19: Unstable reading, ignoring! PPM value: 776 ...." PPM and Temp in logs are changing but each read of sensor values report "Unstable reading....". Sensor red leds are blinking from time to time so it looks like sensor is OK. Any ideas?
Thank you for help!
I already had this issue and T-Der answered me. That's because you have the B version of the sensor. Like me

You have to get the MH-Z19 plugin from the "2.0" branch of the Espeasy github

TD-er
Core team member
Posts: 8750
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#23 Post by TD-er » 19 Dec 2017, 20:26

You seem to have the "B" version of the sensor, which gives a "0" as S-value.
Starting version dev-13, this will be supported, but you can also compile a version for yourself if you need it faster.
I don't think the new dev-13 release will take long, since the last 2 days, a lot of pull requests were merged and I think it is only testing for a (short) while with these new versions before the new release will be created.

dgcracker
New user
Posts: 7
Joined: 19 Dec 2017, 11:06

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#24 Post by dgcracker » 19 Dec 2017, 21:26

Thx for reply and help. Exactly I have "B" version. So I have to wait for dev-13 or in the meantime compile it myself :)

dmq
Normal user
Posts: 18
Joined: 09 Dec 2017, 19:15

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#25 Post by dmq » 20 Dec 2017, 17:19

timbiker wrote: 18 Dec 2017, 10:05 But I though about that today, I recently wasted my time in having a lot of issue on a project. I just solved them in changing my power supply : as this sensor is quite hungry during peak, check with a good power supply and a good cable
Ah, timbiker. Cool. I just changed the power supply and now I have the same state as dgcracker, because I own the same B version. But it works.

Thanks TD-er and timbiker!

dmq
Normal user
Posts: 18
Joined: 09 Dec 2017, 19:15

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#26 Post by dmq » 20 Dec 2017, 17:54

Just for information. The old power supply was rated at 5VDC/2A and the measurement was stable. The new one has the exact same values but works.

dmq
Normal user
Posts: 18
Joined: 09 Dec 2017, 19:15

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#27 Post by dmq » 10 Jan 2018, 20:08

You seem to have the "B" version of the sensor, which gives a "0" as S-value.
Starting version dev-13, this will be supported, but you can also compile a version for yourself if you need it faster.
I don't think the new dev-13 release will take long, since the last 2 days, a lot of pull requests were merged and I think it is only testing for a (short) while with these new versions before the new release will be created.
Did already tested someone the dev-13 release and the "B" version? At the moment I have no access.

Thanks.

TD-er
Core team member
Posts: 8750
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#28 Post by TD-er » 12 Jan 2018, 15:40

dmq wrote: 10 Jan 2018, 20:08
You seem to have the "B" version of the sensor, which gives a "0" as S-value.
Starting version dev-13, this will be supported, but you can also compile a version for yourself if you need it faster.
I don't think the new dev-13 release will take long, since the last 2 days, a lot of pull requests were merged and I think it is only testing for a (short) while with these new versions before the new release will be created.
Did already tested someone the dev-13 release and the "B" version? At the moment I have no access.

Thanks.
Ehh I don't understand your post (maybe lack of coffee, or sleep, or both ;) )
Is your question about whether someone tested the latest builds? (both v2.0 and Mega have nightly builds now)
Or did you test it and it still doesn't work?

dmq
Normal user
Posts: 18
Joined: 09 Dec 2017, 19:15

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#29 Post by dmq » 13 Jan 2018, 20:12

Ehh I don't understand your post (maybe lack of coffee, or sleep, or both ;) )
Nope, you were perfectly ok. I think I had too much coffee :roll:
Is your question about whether someone tested the latest builds? (both v2.0 and Mega have nightly builds now)
Yes, exactly. You wrote in another post:
You seem to have the "B" version of the sensor, which gives a "0" as S-value.
Starting version dev-13, this will be supported, but you can also compile a version for yourself if you need it faster.
Question is, if someone with this version of the sensor now can see the correct values in the interface and not only in the logs.

Thanks.

TD-er
Core team member
Posts: 8750
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#30 Post by TD-er » 13 Jan 2018, 23:31

With the latest builds, the B version of the sensor is fully supported.
I run one here for a while now.

dmq
Normal user
Posts: 18
Joined: 09 Dec 2017, 19:15

Re: MH-Z19B - MHZ19: Unknown response: 0 0 0 0 0 0 0 0 0

#31 Post by dmq » 14 Jan 2018, 15:43

Very good. Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 133 guests