I noticed today a later version? of build 7 and duly uploaded it. My sensor is initialising and last I looked it was up to read 102. Is there a problem as it seemed OK on the previous build.
Reverted to previous build and same issue; ran serial monitor on CO2 and the result was "wrong reply from sensor"; disabled it in the config file and back in business without CO2 reading
Can you please verify in your user configurable settings if the selected type of CO2 sensor is the right one for your sensor.
Bear in mind that the new software only starts to try to read the sensor after an initial period of 3 minutes, and getting "wrong reply from sensor" on the first attempt of reading it may be normal.
If the problem will persist, please post a copy of the serial monitor output, it may help.
The config file is correct, I have model A and have powered it down many times to no avail.
I have tried to copy the serial monitor output but with no success. Could you please explain how this is achieved
Hi Jim, not Werk here but, you just highlight all the text and hit Ctrl +C to copy it, then paste it as usual.
Below is the code from the serial monitor of the CO2 sensor; every time it does a read it returns an error.
I will replace it when the new one arrives.
Code:
WeatherDuino 4Pro
Air Quality Monitor v7.00 b007
E8,74,34,0,80,1D,0,29,0,
Calculated crc: 92
Wrong reply from CO2 sensor!
16,98,4,1,80,A6,20,9,0,
Calculated crc: 14
Wrong reply from CO2 sensor!
11,2E,4,0,80,2E,2,9,0,
Calculated crc: 15
Wrong reply from CO2 sensor!
72,58,4,1,80,96,0,9,0,
Calculated crc: 84
Wrong reply from CO2 sensor!
9E,84,9E,84,4,0,80,A1,2,
Calculated crc: 35
Wrong reply from CO2 sensor!
3,6C,CA,30,2,D3,0,0,0,
Calculated crc: C5
Wrong reply from CO2 sensor!
FF,DC,F2,74,4,0,80,9D,35,
Calculated crc: 9D
Wrong reply from CO2 sensor!
Thanks for the link I will get one ordered.
Sorry for the late reply.
Usually a read error is caused by problems with the serial connection to the sensor.
If you want you can try the attached MH-Z19 test software. It tries to read the MH-Z19 at each 8 seconds, and outputs data to the LCD and the Serial Monitor.
I downloaded and ran the test and below is the result; as you can see it appears to have come good after an initial error read???
I have reloaded the software and it appears OK at the moment and i will leave it run and let you know the results
Code:
21,10,1C,FC,5,6C,11,3,24,
Calculated crc: 53
Wrong reply from CO2 sensor!
FF,86,1,9A,46,0,0,0,99,
Calculated crc: 99
CO2 read: 410 - Temp: 30 - Stabile: 0
Sensor Operational
FF,86,1,9A,46,0,0,0,99,
Calculated crc: 99
CO2 read: 410 - Temp: 30 - Stabile: 0
FF,86,1,9A,46,0,0,0,99,
Calculated crc: 99
CO2 read: 410 - Temp: 30 - Stabile: 0
FF,86,1,9A,46,0,0,0,99,
Calculated crc: 99
CO2 read: 410 - Temp: 30 - Stabile: 0
FF,86,1,9A,46,0,0,0,99,
Calculated crc: 99
CO2 read: 410 - Temp: 30 - Stabile: 0
FF,86,1,9A,45,0,0,0,9A,
Calculated crc: 9A
CO2 read: 410 - Temp: 29 - Stabile: 0
FF,86,1,9A,46,0,0,0,99,
Calculated crc: 99
CO2 read: 410 - Temp: 30 - Stabile: 0
FF,86,2,1F,46,0,0,0,13,
Calculated crc: 13
CO2 read: 543 - Temp: 30 - Stabile: 0
FF,86,2,1C,46,0,0,0,16,
Calculated crc: 16
CO2 read: 540 - Temp: 30 - Stabile: 0
FF,86,2,28,46,0,0,0,A,
Calculated crc: A
CO2 read: 552 - Temp: 30 - Stabile: 0
FF,86,2,2F,46,0,0,0,3,
Calculated crc: 3
CO2 read: 559 - Temp: 30 - Stabile: 0
FF,86,2,33,45,0,0,0,0,
Calculated crc: 0
CO2 read: 563 - Temp: 29 - Stabile: 0
21,10,1C,FC,5,6C,11,3,24,
Calculated crc: 53
Wrong reply from CO2 sensor!
FF,86,1,9A,46,0,0,0,99,
Calculated crc: 99
CO2 read: 410 - Temp: 30 - Stabile: 0
Sensor Operational
FF,86,1,9A,46,0,0,0,99,
Calculated crc: 99
CO2 read: 410 - Temp: 30 - Stabile: 0
FF,86,1,9A,46,0,0,0,99,
Calculated crc: 99
CO2 read: 410 - Temp: 30 - Stabile: 0
FF,86,1,9A,46,0,0,0,99,
Calculated crc: 99
CO2 read: 410 - Temp: 30 - Stabile: 0
FF,86,1,9A,46,0,0,0,99,
Calculated crc: 99
CO2 read: 410 - Temp: 30 - Stabile: 0
FF,86,1,9A,45,0,0,0,9A,
Calculated crc: 9A
CO2 read: 410 - Temp: 29 - Stabile: 0
FF,86,1,9A,46,0,0,0,99,
Calculated crc: 99
CO2 read: 410 - Temp: 30 - Stabile: 0
FF,86,2,1F,46,0,0,0,13,
Calculated crc: 13
CO2 read: 543 - Temp: 30 - Stabile: 0
FF,86,2,1C,46,0,0,0,16,
Calculated crc: 16
CO2 read: 540 - Temp: 30 - Stabile: 0
FF,86,2,28,46,0,0,0,A,
Calculated crc: A
CO2 read: 552 - Temp: 30 - Stabile: 0
FF,86,2,2F,46,0,0,0,3,
Calculated crc: 3
CO2 read: 559 - Temp: 30 - Stabile: 0
FF,86,2,33,45,0,0,0,0,
Calculated crc: 0
CO2 read: 563 - Temp: 29 - Stabile: 0
As said before, the first or second initial reads always gives a CRC error, which leads to get "Wrong reply from CO2 sensor!"
Is good to know that your back in business again.