- Tue Jul 23, 2013 6:47 pm
#161807
I need to get a remote temperature sensor (Dallas DS18B20) working with XBee S2 and Arduino--with BATTERY POWER! How should I use sleep modes? The Arduino can sleep. So can the XBee. Pin sleep? Cycle sleep? How do you do that? Should the Arduino wake up the XBee? Or the other way around?
I'm new to Arduino and XBee, but have some C background. I have successfully set up S2 XBee coordinator (at PC) and arduino-XBee (router) to send 2 way serial. The router is out by the pool controller, set to trip on or off the pool controller's pump/heater relay (hacked into a commercial pool controller board) depending on the pool temperature (one-wire waterproof Dallas unit DS18B20). It works...
But for safety reasons I want the temperature sensor SEPARATE from the main pool controller. So I'll get another arduino/XBee unit and run it off a battery, if I can get the battery drain reasonable. As long as the battery doesn't need replacement too often, I'll be satisfied. What I need to do is find a way to have the pool temperature sensor endpoint sleep and then wake up for a moment every, say, 15 minutes (maybe a low-drain timer? a 555?) and send a few temperature readings, then hibernate again.
I figure this must be a basic practice for wireless remote projects, yes? Could someone please post a link to an instructive example?
Thanks!
I'm new to Arduino and XBee, but have some C background. I have successfully set up S2 XBee coordinator (at PC) and arduino-XBee (router) to send 2 way serial. The router is out by the pool controller, set to trip on or off the pool controller's pump/heater relay (hacked into a commercial pool controller board) depending on the pool temperature (one-wire waterproof Dallas unit DS18B20). It works...
But for safety reasons I want the temperature sensor SEPARATE from the main pool controller. So I'll get another arduino/XBee unit and run it off a battery, if I can get the battery drain reasonable. As long as the battery doesn't need replacement too often, I'll be satisfied. What I need to do is find a way to have the pool temperature sensor endpoint sleep and then wake up for a moment every, say, 15 minutes (maybe a low-drain timer? a 555?) and send a few temperature readings, then hibernate again.
I figure this must be a basic practice for wireless remote projects, yes? Could someone please post a link to an instructive example?
Thanks!