We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32-C6FH4
Dev-board
no hardware attached in this time
v3.1.0
Arduino IDE
Win 11
80 MHz
no
921600
Cannot get the device in correct light sleep mode, will get current >250uA instead of the published 35uA
In deep sleep all is working as expected (<10uA). How the deep sleep sample must be modified?
I've tried all sorts of things, but nothing has helped...
/* _ _ ______ _____ _____ (_) | | ____| __ \_ _| _ __ ___ _____| | |__ | | | || | | '_ \| \ \/ / _ \ | __| | | | || | | |_) | |> < __/ | |____| |__| || |_ | .__/|_/_/\_\___|_|______|_____/_____| | | |_| www.pixeledi.eu | https://links.pixeledi.eu ESP32S3 XIAO DeepSleep | V1.0 | 03.2024 https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/sleep_modes.html */ #include <Arduino.h> unsigned long previousMillis = millis(); int cnt = 0; void setDeepSleep() { // esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_OFF); Serial.println("Going to sleep zzZZZzz"); Serial.end(); //ESP.deepSleep(20 * 1e6); esp_sleep_enable_timer_wakeup(1000*(uint64_t)4500); esp_light_sleep_start(); // replaced deep sleep } void setup() { Serial.begin(115200); } void loop() { unsigned long currentMillis = millis(); if (currentMillis - previousMillis >= (1000 * 1)) { previousMillis=currentMillis; cnt++; Serial.println(cnt); } if (cnt > 10) { cnt = 0; setDeepSleep(); } }
no debug
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Board
ESP32-C6FH4
Device Description
Dev-board
Hardware Configuration
no hardware attached in this time
Version
v3.1.0
IDE Name
Arduino IDE
Operating System
Win 11
Flash frequency
80 MHz
PSRAM enabled
no
Upload speed
921600
Description
Cannot get the device in correct light sleep mode, will get current >250uA instead of the published 35uA
In deep sleep all is working as expected (<10uA). How the deep sleep sample must be modified?
I've tried all sorts of things, but nothing has helped...
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: