Esp-01 deep sleep mode

ESP-01

Esp01 is a very small esp8266. Less pins and small size. So it is wonder for iot projects

But ESP-01 consumption is around 90 mAh. So you can't power it with a battery because lifetime will be only few days.
To decrease consumption you have to put esp01 in a sleep mode. Best mode is deep sleep mode which reduce consumption to less than 1 uAh.

Power consumption - See datasheet
Standby ~ 0.9uA
Running ~60-215mA,
Average ~ 80mA


How to power

To power ESP-01 you have to

  • use a 3.3v battery
  • connect pin 1-GND to ground
  • connect pin 8-VCC and to 3.3v



Found a 3.3v battery is not easy. A solution is to use 18650 battery 3.7v (or 3x AA) and drop voltage to 3.3v. To drop voltage, you can use a LDO like MCP1700-3302E/TO

VIN : 2.3-6v VOUT : 3.3v

Goto Deep Sleep mode

To use deep sleep mode, it is pretty easy. Just add ESP.deepsleep(5*1000000) in your code to go to sleep for 5 seconds.
After 5s ESP will wakeup and restart and run setup() again

Wake up

To wake up it isn't all done. When the timer ends, ESP-01 will send a wakeup pulse on pin 16 (XPD_DCDC). So you have to send it on the ESP8266 chip in order to reset ESP. So pins RST and pin 16 (XPD_DCDC) must be wired.


But this is a very little chip and soldering wire is not so easy...
I tried many times without success ! 

Commentaires

Posts les plus consultés de ce blog

Attiny13A sleep mode

Install and configure OpenVPN on OSMC