Hi to everyone, I have a question about the arduino.
I have a arduino board with a Xbee socket (and Xbee conected), but I want to put the Arduino to sleep, and wake it up when receives data from Processing. I read that the only way that arduino detects the data from another source being asleep, via serial for example, is to set an sleep mode of IDLE.
That should do it?, or do I need to set Xbee to sleep? Is there any risks on the Xbee, running that on the arduino?
So my question is, would this set the xbee uses less power as well? or do I have to put the xbee in his own low power state?, and if I put the arduino in IDLE, with those commands, does the xbee runs any risk?
PaulS:
The XBee draw far more current than the Arduino. Putting the Arduino to sleep while the current hog stays awake is pointless.
Of course, putting the XBee to sleep means that it will NOT receive data, so that seems like an unlikely thing for you to want to do.
Yes, but I want to save some power at least. If I shut down some of that functions I mentioned, will affect Xbee in some way?
From what I understand, you said that I should put the Xbee to sleep instead of the Arduino. But if I do that, I would not receive any data.
I know that Xbee when is not receiving data consumes less current. And if I put to sleep the Xbee, it will not receive data. Is there a way of waking it up when data is received?
srnet:
So no data will be or can be received, but you want to wake up the Xbee when it is ?
I just wanted to know if it's there a better way to manage this, or do I just settle with the low draw of current when the xbee is idle. And if there are any risks to the xbee doing that code above.