-
Notifications
You must be signed in to change notification settings - Fork 53
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
Noob needs help with sleep function #2
Comments
for sleep you can use the sleep() and wakeup() functions. Any command sent to the SDS011 will wake him up. So if you try to read data from a "sleeping" SDS011 that will wake up the SDS. |
Thx for your answer! Helped me to track down the problem. the deep.sleep() command for the ESP always wakes up the SDS011 - dont know who is to blame for that ;-) |
@Druidus I can confirme I have the same problem on a arduino mega with Sleepy::loseSomeTime(sleepTime); |
@Druidus The issue with the deepSleep of the ESP8266 could be related to the fact, that the ESP pulls all pins to high just before sleeping. Since the SDS011 is connected through a SoftSerial, it could be possible, the SDS011 interprets this signal and wakes up. |
Could you please provide a short example how the sleep function is called. Thanks in advance!
The text was updated successfully, but these errors were encountered: