ES-33YuqoriPremium

ESP32 Deep Sleep — Battery Saving (OLED + RTC RAM Counter)

The ESP32's Deep Sleep mode shuts down the CPU and most peripherals, cutting current draw to about 10µA, which is vital for battery-powered IoT devices. This project uses three wake-up sources: a timer (15 s), an external pin (EXT0, the button on GPIO 33) and a touch pin (T0/GPIO 4). Counters marked with RTC_DATA_ATTR survive deep sleep.

4.3(10)
16 bajarildi
ESP32 Deep Sleep — Battery Saving (OLED + RTC RAM Counter)
Small battery-powered gadgets save their battery by falling into a deep sleep whenever they have nothing to do, and in this project you teach the ESP32 to do the same. Every time the board wakes up, the little OLED screen shows why it woke and how many times it has woken so far, counts down from five and goes back to sleep. It wakes by itself after 15 seconds, when you press the button or when you touch a wire, and it never forgets its counters while asleep.

Manba kodi

Premium kontent

Bu loyihaning manba kodi, blokli ko‘rinishi va ko‘p so‘raladigan savollari Premium a’zolar uchun ochiq.

  • Barcha loyiha kodlari
  • Blokli ko‘rinish
  • Ko‘p so‘raladigan savollar