I'm still working on my WSN-Fire and Panic Alarm System prototype and got certain functions already working.
But I would somehow like to take it a step further by managing power settings for my nodes generally consisting of an Arduino Pro Mini and XBee S2 modules.
The nodes are powered generally by the mains when available and a 3.7V Li-ion battery backup (still undecided for capacity but will probably be around 1100+ mAh) whenever a power outage occurs. The XBees must always be on since I configured them all as routers and it is important that these do not fail to receive any message when another node has gone off during an alarm. My Arduinos are also undergoing cyclic sleep such as adcNoiseReduction for about 15ms but I could just adjust anytime soon for best power savings.
The only times my XBee would use power other than being active are: 1. Fire is detected by node 2. Manual button is activated 3. Low battery voltage alarm 4. Tampering 5. Routing/Receiving message from routers/coordinator
So, here are my queries:
- Does it make a difference if I make the Arduino go to sleep while the XBee does not, compared to when the former isn't sleeping?
- If it does, how will I make the Arduino go to sleep and only becoming active when a message has been received by XBee?
- In regards with question 3, what power mode is best used since I've read from sources online that some bytes may be lost when the Arduino is still trying to wake up from certain sleep modes?
I'm sorry for the long post but I've been trying to make it as much comprehensive so no hopefully no issues with that.