RF22 and Arduino Nano sleep

165 views
Skip to first unread message

David Vaughn

unread,
Apr 20, 2014, 7:43:37 PM4/20/14
to rf22-a...@googlegroups.com
So I'm wondering if it is possible to have the Nano and the RF22 sleep or idle then wake up either based on a pin state change (i.e. photo resistor change from day to night or vice versa) or command received on the RF22?  

I'm currently using mikem's library and love how easy it is to use but I'm concerned that if I have multiple server's (i.e. broadcast messages constantly going out) that I won't be able to do this.  Is this a valid concern?

Mike McCauley

unread,
Apr 20, 2014, 8:58:52 PM4/20/14
to rf22-a...@googlegroups.com
Hi,

both the RF22 and the Nano support sleep, but the RF22 library has no direct
support for it. You will have to control the RF22 yourself to put it into
sleep mode. The RF22 can be configured to wake up with a watchdog timer.

However if you want to wake up the Nano when a message is received, then by
definition the RF22 is in receive mode and it is not sleeping, and will be
drawing 18mA.

For waking the Nano when the RF22 tries to interrupt (with a new message etc),
see http://playground.arduino.cc/Learning/ArduinoSleepCode

I think you will find the power savings are small.

Cheers.
--
Mike McCauley VK4AMM mi...@airspayce.com
Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia
http://www.airspayce.com
Phone +61 7 5598-7474 Fax +61 7 5598-7070

David Vaughn

unread,
Apr 20, 2014, 9:01:19 PM4/20/14
to rf22-a...@googlegroups.com
Thanks for the response Mike.  That's kind of what I assumed.
Reply all
Reply to author
Forward
0 new messages