flopolt.blogg.se

Esp01 deep sleep
Esp01 deep sleep






esp01 deep sleep

Only the manual reset will start the ESP device new but in some (alomst all!) cases only when hitting the reset button twice.Ī test with a second ESP-01 with the same image and exactly the same configuration sends its samples continuously! This ESP shield is an oder one - maaby it is broken. So far so good - but it won't wake up after the configured time! The web interface of the ESP is not reachable because it is really sleeping. At FHEM the Sleep info shows me the 20 sec and the sleepState shows awaked for 20s (-1s) which changes to sleep awaited in 1s and then to sleeping. every 5 sec) and falls in sleep mode again.Īfter power up the ESP sends its samples to FHEM, where I can see the expeced samples every 5 sec. I expected that the device will sleep for the configured time, gets active for 20 sec for sending some samples (e.g.

esp01 deep sleep

For this I confugured Sleep awake time to 20 and Sleep time to 300. Now I want to set sleep state - for example 20 sec active time and 5 min sleeptime because I want to drive the ESP with battery. The ESP device is connected with my FHEM instance on a RasPi and this is working fine - means that I get the values for temperature and humidity. Now I want to use the ESP-01 with ESPeasy connected with a temperature sensor DHT11 for monitoring my greenhouse. This application was written an flashed with arduino. I have connected GPIO 16 to RST to get sleep functionality and I am sure that the device itselfe is working correct because I tested it with a dooropener application wich I use since about 2 years. So let's be safe and call it 5 month of operation time.I have problems with sleep configuration - in my case on a ESP-01 device flashed with ESP_Easy_mega-20200410_normal_ESP8266_1M.bin. Both my ESP8266 with DS18B20 reporting temperature every 15 minutes were running 2 AA batteries for almost 6 months. And expect them to work for at least 6 months before batteries will be depleted. Right now, I have 2 ESP8266 ESP-01 with DS18B20 reporting temperature every 15 minutes running on 2 AA batteries for 5 weeks. Just rip it out with a knife or desolder it you like to do things right.Īfter this is done, deep sleep can be entered (when using Arduino) using:ĮSP.deepSleep( * 1000000) Īfter defined period of time, ESP8266 will reboot itself and do setup phase. Without this LED, board would draw only about 80uA when in deep sleep. The fact, that XPD_DCDC is the last pin on the bottom edge of MCU (antenna facing left) makes it much simpler. It's doable with a decent soldering iron and some training. To fix it, you would have to solder thin wire between XPD_DCDC and RESET pin just like on a picture below: XPD_DCDC MCU pin in not connected to RESET pin. There is one catch: ESP-01 is capable to enter deep sleep, but unable to restart and resume operation. When in deep sleep, ESP8266 disables almost all of its functions and reboots after specified period of time. There is a way to make ESP-01 work for months using something called deep sleep mode.

esp01 deep sleep

Set of 2 AA batteries would be drained in less than a day. Minimal power consumption of about 70mA when doing nothing and above 100mA when when transferring data makes it rather impossible to use it on battery power for a longer period of time. Amazing ESP8266 ESP-01 WiFi boards have pretty irritating problem: theirs power consumption is pretty high.








Esp01 deep sleep