


If you set a deep sleep timer with the ESP8266, once the timer ends, GPIO 16 sends a LOW signal. However, when the RST pin receives a LOW signal, it restarts the microcontroller. The RST pin of the ESP8266 is always HIGH while the ESP8266 is running. Recommended reading: ESP8266 Pinout Reference Guide Simply follow the next schematic diagram: To use timer wake up with ESP8266, you need to connect the RST pin to GPIO 16 which is labeled as D0, in a NodeMCU board. #2 external wake up: the ESP8266 wakes up when you press the RST button (the ESP8266 restarts)įor low-power projects, you might consider using the ESP32 board which offers more deep sleep modes and wake up sources.#1 timer wake up: the ESP8266 wakes itself up after a predefined period of time.The process is repeated over and over againĪfter putting the ESP8266 in deep sleep mode, there are different ways to wake it up:.The ESP8266 performs a task (reads a sensor, publishes an MQTT message, etc).With deep sleep, an example application looks like this: However, if you use a full-feature development board with built-in programmer, LEDs, and so on, you won’t be able to achieve such a low power state. This is the most power efficient option and the ESP chip only draws approximately 20uA. Everything is always off, except the Real Time Clock (RTC), which is how the ESP8266 keeps track of time. In this article, we’ll cover deep sleep mode.

They all have different purposes and they should be used in different applications. If you’re using a development board, they have passive components that use more current. Note: the power consumption on the table refers to the ESP8266 as a standalone chip. The table below shows the differences between each mode (information from the ESP8266 datasheet). There are three different types of sleep mode: modem sleep, light sleep, and deep sleep. Having the ESP8266 in deep sleep mode means cutting with the activities that consume more power while operating (like Wi-Fi) but leave just enough activity to wake up the processor when something interesting happens. If you put your ESP8266 in deep sleep mode, it reduces power consumption and your batteries will last longer.
