WeatherDuino Forum

Full Version: AQ Software
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Werk,
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.
Regards
JIm
PS
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
Hi Jim,


Can you please verify in your user configurable settings if the selected type of CO2 sensor is the right one for your sensor.

Code:
// --------------------------------------------------------------------------------------
//   CO2 (MH-Z19) Settings
//   Note: For outside use, the MH-Z19B model produces more accurate results
// --------------------------------------------------------------------------------------
#define Use_CO2         1    // 0= Not instaled, 1= Instaled
#define Z19_model       2    // 1= Model A, 2= Model B  (ATTENTION: Make sure you select the correct model)

Have you tried to power off and power on again the AQM ?
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.
(08-12-2017, 05:57)Werk_AG Wrote: [ -> ]Hi Jim,


Can you please verify in your user configurable settings if the selected type of CO2 sensor is the right one for your sensor.

Code:
// --------------------------------------------------------------------------------------
//   CO2 (MH-Z19) Settings
//   Note: For outside use, the MH-Z19B model produces more accurate results
// --------------------------------------------------------------------------------------
#define Use_CO2         1    // 0= Not instaled, 1= Instaled
#define Z19_model       2    // 1= Model A, 2= Model B  (ATTENTION: Make sure you select the correct model)  

Have you tried to power off and power on again the AQM ?
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.
Werk,
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
Regards
Jim
Quote:Could you please explain how this is achieved
Regards
Jim

Hi Jim, not Werk here but, you just highlight all the text and hit Ctrl +C to copy it, then paste it as usual.
(09-12-2017, 05:47)uncle_bob Wrote: [ -> ]
Quote:Could you please explain how this is achieved
Regards
Jim

Hi Jim, not Werk here but, you just highlight all the text and hit Ctrl +C to copy it, then paste it as usual.
Werk,
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.
Do you have a link to the B model? as all i can find is the A type
Regards
Jim
  
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!
(10-12-2017, 06:48)Barrow4491 Wrote: [ -> ]Do you have a link to the B model? as all i can find is the A type
Jim

Hi Jim,

for example:

https://www.ebay.com/itm/MH-Z19B-Infrare...2749.l2649
(10-12-2017, 08:29)hornychz Wrote: [ -> ]
(10-12-2017, 06:48)Barrow4491 Wrote: [ -> ]Do you have a link to the B model? as all i can find is the A type
Jim

Hi Jim,

for example:

https://www.ebay.com/itm/MH-Z19B-Infrare...2749.l2649
Zdenek,
Thanks for the link I will get one ordered.
Regards
Jim
(10-12-2017, 06:48)Barrow4491 Wrote: [ -> ]Werk,
Below is the code from the serial monitor of the CO2 sensor; every time it does a read it returns an error.
...

Hi Jim,

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.
There is no need to do any configuration, it works with models A and B.
(10-12-2017, 20:18)Werk_AG Wrote: [ -> ]
(10-12-2017, 06:48)Barrow4491 Wrote: [ -> ]Werk,
Below is the code from the serial monitor of the CO2 sensor; every time it does a read it returns an error.
...

Hi Jim,

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.
There is no need to do any configuration, it works with models A and B.
Werk,
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
Regards
Jim

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
(10-12-2017, 23:48)Barrow4491 Wrote: [ -> ]... 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

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. Smile
Pages: 1 2