• 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 32 cam, deep sleep wake up every 24 hours, or every week.

Q&A Forum › Category: ESP32 › ESP 32 cam, deep sleep wake up every 24 hours, or every week.
0 Vote Up Vote Down
Peerajak Witoonchart asked 4 months ago

I would like ESP32 cam to wake up one time per day, or one time per week. How can I do that?
I follow wake up timer example, and it works up until around 3600 sec, it start to keep waking up every 1 sec.
I don’t know why? Perhaps the number is too large for esp_sleep_enable_timer_wakeup function?
 
esp_err_tesp_sleep_enable_timer_wakeup(uint64_t time_in_us)
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/sleep_modes.html
 
I check this web site, uint64 should give really really large number. but why I can’t even wakeup
every 3600 sec?

Question Tags: Deep sleep, ESP32-Cam, uint64
1 Answers
0 Vote Up Vote Down
Best Answer
Steve Mercer answered 4 months ago

What number are you passing to the function? Note that it wants micro seconds so you need to multiply your seconds by 1 million. ie. 3600 seconds would be 3,600,000,000 us.
 
Also note that the built-in RTC is completely inaccurate. You would be better off using an external RTC and wake up the ESP32 with an interrupt.

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 Released] Build Web Servers with ESP32 and ESP8266 (version 1.0) October 27, 2020
  • [eBook Updated] Download Build ESP32-CAM Projects using Arduino IDE (version 1.1) August 31, 2020

You must be logged in to view this content.

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

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