Thank you Werk_AG for the update and your suggestions.
The support from you is amazing, very much appreciated!!
Well, I did check the wiring which was OK, used the new sketch vb006 but still no response.
Then I tried to send commands to the SDS011 apart from the AQMIII sketch and then the sensor did work!
So... after hours of trying the solution was to wake up the sensor BEFORE sending other commands like REPORTMODE etc.
It was confusing because the SDS011 from Werk_AG did work with the sketch?!
I think that I have a different version of the SDS011? I read somewhere that different versions behave differently!
I'm glad that it does work now, a great addition to my WeatherDuino setup...
So, the modified code is this:
After Line 554, I inserted 2 lines:
Serial2.write(WAKEUPCMD, 19); // Wakeup the sensor - turns the fan ON
delay(500);
The support from you is amazing, very much appreciated!!
Well, I did check the wiring which was OK, used the new sketch vb006 but still no response.
Then I tried to send commands to the SDS011 apart from the AQMIII sketch and then the sensor did work!
So... after hours of trying the solution was to wake up the sensor BEFORE sending other commands like REPORTMODE etc.
It was confusing because the SDS011 from Werk_AG did work with the sketch?!
I think that I have a different version of the SDS011? I read somewhere that different versions behave differently!
I'm glad that it does work now, a great addition to my WeatherDuino setup...
So, the modified code is this:
After Line 554, I inserted 2 lines:
Serial2.write(WAKEUPCMD, 19); // Wakeup the sensor - turns the fan ON
delay(500);
Code:
//------------------------------------------------------------
// Setup Dust Sensors
//------------------------------------------------------------
#if (DUST_SENSORTYPE == 0)
// Set the Pin used to control the SET function on PMS7003 (LOW = sleep mode)
pinMode(PMS7003_SetPin, OUTPUT);
digitalWrite(PMS7003_SetPin, LOW);
#endif
#if (DUST_SENSORTYPE == 1)
Serial2.write(WAKEUPCMD, 19); // Wakeup the sensor - turns the fan ON
delay(500);
Serial2.write(REPORTMODECMD, 19); // Set Report Mode to factory default (active mode)
delay(500);Code:
WeatherDuino 4Pro
Air Quality Monitor III
Firmware: 6.1_b006
Initializing the SDS011 sensor!
AA,C0,1D,0,8F,0,2B,40,17,AB
Calculate crc: 17
Response crc: 17
SDS011 correctly set to active report mode.
AA,C0,1A,0,69,0,2B,40,EE,AB
Calculate crc: EE
Response crc: EE
SDS011 correctly set to factory working period.
