Difference between revisions of "SleepMode"

From Let's Control It
Jump to navigation Jump to search
Line 1: Line 1:
 
The ESP8266 can be set to deep sleep. You need to connect GPIO-16 with the RST pin to make this work.
 
The ESP8266 can be set to deep sleep. You need to connect GPIO-16 with the RST pin to make this work.
If you enable Sleep Mode, the ESP will go to deep sleep after the configured sensor delay setting.
+
 
 +
If you enable Sleep Mode, the ESP will send all the sensor-readings at once and then go to deep sleep. It will sleep for the amount of seconds thats set in the '''Sensor Delay''' setting.
 +
 
 +
This saves lots of power, allowing you to use the ESP8266 on batteries.
 +
 
 +
== Getting out of deep sleep ==
  
 
When this state is active, you can't connect to the web interface. In fact, the ESP is turned off and only a dedicated timer circuit is still powered to wake up the main ESP core.
 
When this state is active, you can't connect to the web interface. In fact, the ESP is turned off and only a dedicated timer circuit is still powered to wake up the main ESP core.
 
To keep the 'active time' as low as possible, when the ESP wakes up, it will immediately send the sensor data and go back to sleep. Not so easy to get it out of this wake/sleep loop.
 
  
 
But the ESP Easy can detect a cold boot situation and this is the only way to regain access to the web interface.
 
But the ESP Easy can detect a cold boot situation and this is the only way to regain access to the web interface.
 
So power off the ESP and reconnect power. You will have 30 seconds to connect to the Web interface and disable the Sleep Mode function.
 
So power off the ESP and reconnect power. You will have 30 seconds to connect to the Web interface and disable the Sleep Mode function.

Revision as of 18:48, 12 March 2017

The ESP8266 can be set to deep sleep. You need to connect GPIO-16 with the RST pin to make this work.

If you enable Sleep Mode, the ESP will send all the sensor-readings at once and then go to deep sleep. It will sleep for the amount of seconds thats set in the Sensor Delay setting.

This saves lots of power, allowing you to use the ESP8266 on batteries.

Getting out of deep sleep

When this state is active, you can't connect to the web interface. In fact, the ESP is turned off and only a dedicated timer circuit is still powered to wake up the main ESP core.

But the ESP Easy can detect a cold boot situation and this is the only way to regain access to the web interface. So power off the ESP and reconnect power. You will have 30 seconds to connect to the Web interface and disable the Sleep Mode function.