-
Notifications
You must be signed in to change notification settings - Fork 346
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
Cannot use radio transmitter after switching to LowPower library #62
Comments
Try do float temp = dht.readTemperature(); twice with 1000msec delay to wake up dht. |
@lukas12p I will try, but so far I assume reading temperature works, but sending data with radio does not work. I log all radio signals on the receiver side so if the temperature reading would fail - it would just log some garbage. Maybe I just need to insert |
Yes, you should dd the delay(1000) after sleep and probably before sleep too. I believe the DHT sensor needs some time to stabilize after waking up. You can also replace the transmission data with a known constant to prove this. |
@rocketscream will try, thanks! |
@rocketscream do I need to "reinitialize" radio module and DHT22 after power-down sleep? Is it equal for them as if you would just turn them off? I mean do I need to rerun |
I have never use that radio module nor the DHT22 before but by right it shouldn't and will not mess anything related to it by going to sleep. Have you try removing the sensor portion and simply sending known constant data with the radio? |
Adding |
My Arduino Mini board has DHT22 temperature sensor and 433MHz radio transmitter modules. I'm using
DHT
andRCswitch
libraries to make use of them. Code looks like this:So I'm reading temperature and sending it using
RCswitch
library. Initially I just haddelay(1000);
instead of fancyLowPower
sleep loop but I wanted to make my "device" more battery-friendly so I switched to low-power sleep.The problem is that now Arduino is only sending data first time and after sleeping 30 minutes (in "release" mode) it does not send anything anymore. If I reduce 30 minutes to 8 seconds it is capable of sending data as well as if I replace sleep with
delay(30*60*1000);
.From beyond it looks like something is not caching up after the sleep. Do I need to "wake" Arduino in any special way? How to fix that?
Thanks
The text was updated successfully, but these errors were encountered: