🛠 Deep-sleep 7 µA et réveil minuterie sur batterie

ESP32-C6 · intermediaire · Schéma : IMG-esp32-c6-intermediaire-3-c6-deep-sleep-7ua.svg — Courbe de consommation d'un cycle réveil/lecture capteur/profondeur sur batterie, avec le plancher de deep-sleep annoté 7 µA et le capteur de température interne.

The ESP32-C6 is sold for battery-powered devices: its datasheet advertises a deep-sleep current of approximately 7 µA typical, with LP SRAM retained, and four power modes (Active, Modem-sleep, Light-sleep, Deep-sleep). Tutorial: wake up the C6 every 60 seconds, read the onboard temperature sensor, then return to deep-sleep. In MicroPython: machine.deepsleep(60_000) — note that the RTC domain is reset upon wake-up and all main core state is lost. In ESP-IDF: use esp_sleep_enable_timer_wakeup followed by esp_deep_sleep_start. A key argument for battery life: Wi-Fi 6 introduces TWT (Target Wake Time), highlighted by Espressif for devices running for years on a battery. Practice measuring current: the DevKitC-1 features dedicated jumpers for current measurement, perfect for verifying the advertised floor. Pitfalls: the strapping pins GPIO5/8/9/15 must not be loaded at wake-up time, and the LP RISC-V coprocessor (up to 20 MHz) can continue polling LP peripherals (LP UART, LP I2C) while the HP core is off — this is covered in the advanced tutorial.

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials