Power conservation
Posted: Mon Jun 06, 2016 9:23 pm
Hi guys I have a number of devices (breadboard) set up now where the ESP8266-01 acts as an MQTT client and sends data from the broker to an ATMEGA328P-PU and vice versa. I am ready to start creating PCB's for the final prototypes but after testing using a 9v battery the devices do not even last a night before the batteries run out. The two devices I am wanting to optimize at this point are:
ESP8266-01
Reed switch magnetic door sensors
ESP8266-01
ATMEGA328P-PU
2 x LED
PIR sensor
TMP36 temperature sensor
Both the ESP8266-01 and AVR chip are powered from the same 9v battery. I am going to start looking at optimizing the ESP8266 chips first which are flashed with Arduino code using Arduino IDE.Could some let me know if 9V are the best to power these types of devices or if there is a more preferable battery to use and what the best steps are to optimize my codes, I have read some about sleep modes and I am thinking interrupts to wake the devices up when MQTT command is received or serial data received from the ATMEGA but this is a new area for me and too sure what would be best. TIA.
ESP8266-01
Reed switch magnetic door sensors
ESP8266-01
ATMEGA328P-PU
2 x LED
PIR sensor
TMP36 temperature sensor
Both the ESP8266-01 and AVR chip are powered from the same 9v battery. I am going to start looking at optimizing the ESP8266 chips first which are flashed with Arduino code using Arduino IDE.Could some let me know if 9V are the best to power these types of devices or if there is a more preferable battery to use and what the best steps are to optimize my codes, I have read some about sleep modes and I am thinking interrupts to wake the devices up when MQTT command is received or serial data received from the ATMEGA but this is a new area for me and too sure what would be best. TIA.