Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sleep and wakeup command #8

Open
sisamiwe opened this issue Mar 10, 2018 · 7 comments
Open

sleep and wakeup command #8

sisamiwe opened this issue Mar 10, 2018 · 7 comments

Comments

@sisamiwe
Copy link

Hi,

how does the sleep and wakeup command shall be used?

thanks for reply

@ricki-z
Copy link
Owner

ricki-z commented Mar 10, 2018

Could you please look at the example? In the example this would be used like this:
my_sds.sleep()
my_sds.wakeup()

@sisamiwe
Copy link
Author

Ok.
my_sds.sleep() turn the sds into sleep mode and my_sds.wakeup() wakes it up.
What happens in sleep mode? Is the sensor totally of?

@ricki-z
Copy link
Owner

ricki-z commented Mar 12, 2018

The SDS011 will go down to < 4mA in sleep mode. For more see https://inovafitness.de/wp-content/uploads/2018/02/SDS011laserPM2.5sensorspecification-V1.3.pdf

@sisamiwe
Copy link
Author

OK, thanks.
How would you implement the sleep and wakeup command into your sketch example to have a measurement each 180s and then turn to sleep mode?

@ricki-z
Copy link
Owner

ricki-z commented Mar 14, 2018

Really? This should be a simple task if you think you can write own software.
You can look at the code of the 'airrohr-firmware'. This code is reading 20 values from the SDS011 every 150 seconds.

@rogalskj92
Copy link

Hi, I'm working on a Arduino Ethernet weather station which uses SDS011. Sensor is reading pm25 and pm10 values just fine, however I'm unable to put it into sleep mode. Even using premade schetches from SDS011 library in Arduino 1.8.5 I get the same results ( the fan is still spinnig and sensor doesn't go down to 4 mA). Do you know what I might be doing wrong? Thanks for reply.

@ricki-z
Copy link
Owner

ricki-z commented Jul 1, 2018

@rogalskj92 please check your connections between the Arduino and the SDS011. The sensor can be read even if no command can be send. This may be caused by a wrong connection between the RX pin on the SDS011 and the TX pin on the Arduino.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants