Post topics, source code that relate to the Arduino Platform

User avatar
By Joe Job
#49880 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.
User avatar
By martinayotte
#49886 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.
User avatar
By Joe Job
#49897 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.