• 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 5 years 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 5 years 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 Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

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

Copyright © 2013-2025 · 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.