(22-02-2019, 02:10)Werk_AG Wrote: Hi Zak,
The Config_Options seems good (supposing the CO2 sensor is a model B) as also the output of DEBUG_CO2. You may also enable the DEBUG_PM to check if the Dust sensor is being read. The Dust sensor should be read 40s after the end of the CO2 init sequence.
After checking that both sensors are being read, disable both Debug options and upload the code again.
When both sensors are in use, data may take a little more time to be updated on the receiver (1 to 3 minutes).
Please report back.
Regards
Hi Werk,
Yes, the sensor is a model B unit.
When I enable both debug lines only the CO2 sensor is being read. It now produces the following output. No matter how long I leave it, the dust sensor is never read and the unit does not transmit data to the Rx:
Quote:WeatherDuino 4Pro
Air Quality Monitor v8.0 b001
Please wait 30s
Configuring CO2 Sensor
Setting measurement range to: 5000
3C,94,13,C3,6,40,C,D,5F,
37,5F
Disabling ABC Funtion
Reseting Sensor
80,CD,8,EE,0,0,0,1,0,
Calculated crc: 3C
Wrong reply from CO2 sensor!
2,EE,0,0,0,1,0,80,0,
Calculated crc: 91
Wrong reply from CO2 sensor!
3,EE,0,0,0,1,0,80,0,
Calculated crc: 91
........ETC
However, If I set the CO2 sensor as enabled (#define USE_CO2 = 1) and only enable the dust sensor debug line, the dust sensor is read (see below) and data is sent to the Rx unit, but the CO2 reading is 65535PPM!
Quote:Air Quality Monitor v8.0 b001
Please wait 30s
Waking up the dust sensor...
Reading will be done 40s later.
Reading the dust sensor...
PMS7003 readings:
PM2.5: 27.00 ug/m3
PM10 : 27.00 ug/m3
PM2.5_1H_Avg : 27.00
PM2.5_NowCast: 27.00
When I disable both debug lines and upload the code with the CO2 sensor enabled, no data is sent to the Rx unit. I have also noticed that when the CO2 sensor is enabled the 'L' LED on the nano is always lit. When the CO2 sensor is disabled, this LED is never lit. Not sure if this is correct?
If I then disable the CO2 sensor (#define USE_CO2=0) then the dust sensor is read once only and the data is transmitted to the Rx.
Kind regards,
Zak

