Deep sleep powered by VIN at 4.2v = 179uA
Deep sleep powered by VIN at 4.7v = 723uA
Deep sleep powered by VIN at 5v = 729uA
Deep sleep powered by battery at 3.7v = 23.5uA
Any ideas why the power consumption is so high? I am curious about the VIN readings but concerned about the battery reading as my project will be battery powered. I had hoped to get the 10-12uA that is claimed on the website.
The test was run with only the power leads and a wire for TX to read logging statements. No other connections are made. I also left the LEDs on the board but planned on removing them for actual use.
This is the code I used for testing:
Code: Select all
#include <Arduino.h>
// Logging settings
#define DEBUG true // flag to turn on/off logging
#define Serial if(DEBUG)Serial
// Sleep Settings
#define uS_TO_S_FACTOR 1000000 /* Conversion factor for micro seconds to seconds */
#define TIME_TO_SLEEP 3 /* Time ESP32 will go to sleep (in seconds) */
void setup() {
Serial.begin(115200);
Serial.println();
Serial.println("Going to sleep...");
esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR);
esp_deep_sleep_start();
}
void loop() {
// Will never reach here
}
Kevin