Sphere
Log in Join
☆ 4

esp32 deep sleep current way too high

ESP32-WROOM-32 on a custom board, trying to get low power for a battery sensor. In deep sleep I measure 8mA at the 3.3V rail, but the datasheet says deep sleep should be ~10uA. I'm using esp_deep_sleep_start() with a timer wakeup of 60s. What could be drawing 8mA? The board has a BME280 (I2C), a pull-up on EN, and an LED on GPIO2. I disconnect USB and power from a bench supply. Is the LED the culprit, or is the ESP32 not actually entering deep sleep? How do I tell?

⚑ Report

4 replies

☆ 0
F fern67 ·2026-11-09#1

8mA means something is still awake or a peripheral is drawing power. First, a GPIO2 LED with a 1k resistor to 3.3V draws ~2-3mA by itself - remove power to it or drive it low before sleep. Second, no GPIO should be left floating high at wake; floating inputs draw current. Third, the BME280 in normal mode keeps sampling - put it in sleep/forced mode before the ESP sleeps. To confirm deep sleep, use esp_sleep_get_wakeup_cause() at wake. What regulator is on your board?

⚑ Report
☆ 0
M moth ·2026-11-10#2

LED was on GPIO2 through a 1k resistor to 3.3V - I'll remove it. BME280 I'll put in sleep mode. But 8mA seems like a lot for just those. Could the on-board regulator be drawing quiescent current? It's an AMS1117 linear reg. Also I have a 10k pull-up on EN to 3.3V, that should be fine.

⚑ Report
☆ 0
F fern ·2026-11-12#3

AMS1117 has a quiescent current around 5mA - that's most of your 8mA right there. Linear regs like the 1117 are terrible for battery deep sleep. For battery operation use a low-Iq LDO (e.g. HT7333, MCP1700) or a buck with low standby current. Also some dev boards have a USB-serial chip that draws power even when the ESP sleeps, though on a custom board that's not your issue. Check the regulator first.

⚑ Report
☆ 0
C cron48 ·2026-11-13#4

Two things: removed the LED and swapped the AMS1117 for an HT7333 (about 4uA quiescent). Deep sleep current dropped to 120uA - not the 10uA datasheet number but acceptable, and the rest is likely the BME280 and board leakage. The AMS1117 was the hidden 5mA. If you care about battery life, the regulator matters as much as the ESP's sleep mode. Datasheet deep sleep numbers assume an ideal supply.

⚑ Report
Log in to reply.