• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP deep sleep

Q&A Forum › Category: ESP32 › ESP deep sleep
0 Vote Up Vote Down
Alain Falcoz asked 4 years ago

Hi,

I would like to put a ESP32 in deep sleep and Wake up it both by timer or by gpio (ext0 mode)

Then I “merged” the “Learn ESP32 with Arduino IDE” module 3 unit2 and unit4 sketches.

Easy to do, the sketch compiles and uploads well, but the ESP32 reboots at wake up : when I use a gpio pin to awake it, the timer counter content is reset and I desynchronize my timer wake up.

Any ideas to fix the problem ?

Have a good day

1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Alain.

You can use an external RTC module to keep track of time. Like this one, for example: https://makeradvisor.com/tools/real-time-clock-module-ds1307/

If your ESP connects to WiFi after deep sleep, you can get the current NTP time and compare it with the last NTP time to put the ESP in deep sleep for the remaining time. https://randomnerdtutorials.com/esp32-ntp-client-date-time-arduino-ide/

There is a library to keep track of time during deep sleep, but it is for ESP IDF: https://github.com/espressif/esp-idf/tree/master/examples/protocols/sntp/

How are you keeping track of time in your project?

Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.