PDA

View Full Version : sleep() and Amperage


chuckpcsw
07-10-2008, 09:17 AM
When we use sleep() in a script, shouldn't it draw less current from the batteries? I've got a multimeter hooked up to a rf engine while it's sleeping and it draws about 58.8 mA from the batteries. This is the case with sleep(1, 0) and sleep(1, 240). I'm told that the batteries (2 AA's) aren't going to last very long with that kind of draw.

kbanks
07-10-2008, 04:43 PM
(paraphrased from a phone call)

If you don't have "wake on pin" enabled for ANY pins when you do a


sleep(mode,0)


then the node will not go to sleep (if it did, it would have no way to wake back up).

Since it does not go to sleep, the current draw remains the same.