-->
Page 2 of 10

Re: Power conservation

PostPosted: Fri Jun 10, 2016 9:57 am
by Joe Job
Thanks for the reply, would you suggest AA or lithium ? Is deep sleep able to wake up on mqtt in and serial in ?

Re: Power conservation

PostPosted: Mon Jun 27, 2016 2:14 pm
by Joe Job
Anyone know if it is possible to wake up from deep sleep on receiving of mqtt message and serial message ? If not what would best way to optimize this battery operation is essential for these projects, anyone with experience with this advice would be welcome.

Re: Power conservation

PostPosted: Mon Jun 27, 2016 5:07 pm
by martinayotte
The only way to wake-up from deepSleep() is either with the deep sleep Timer output GPIO16 or external Reset (when GPIO16 and RES have a resistor or diode to avoid conflict).
During deepSleep(), the rest of the MCU is completely un-powered, so it can not do any things.

Re: Power conservation

PostPosted: Tue Jun 28, 2016 4:12 am
by Joe Job
Ok I will be able to work that out with the door sensor which has the sensor directly connected to the ESP8266. With the following device:

ESP8266-01
ATMEGA328P-PU
2 x LED
PIR sensor
TMP36 temperature sensor

The sensors are read from an ATMEGA and then data sent via serial to the ESP8266 so the optimization will mainly be on the ATMEGA, was looking to see if there was anyway to optimize the ESP8266 which basically sits waiting for messages via UART then sends the data to my platform. Will get the basics sorted on the ATMEGA and then will probably pick this conversation up again and see if there are any further ways to optimize the ESP8266.