• 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

Task Scheduler; uses ESP32 Clock synced by NTP Time server ever 6 hours

Q&A Forum › Category: ESP32 › Task Scheduler; uses ESP32 Clock synced by NTP Time server ever 6 hours
0 Vote Up Vote Down
William Lucid asked 6 months ago

New task scheduler changes call for NTP Time server to use ESP32 RTC_Clock; synced every six hours with NTP time server.  All calls for time keeping are handled by ESP32 RTC_Clock.

New task scheduler; syncs ESP32 RTC_Clock

 

William

Question Tags: NTP, Task Scheduler
7 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 6 months ago

Hi.
Thank you so much for sharing.
We were actually in need for something like this for the project we’re currently working on.
Thank you.
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 6 months ago

Hi again.
By the way, I’m going to create a guide for the RTC module with the ESP32.
Since you seem to use this kind of module, which library do you recommend for using the DS3231 or DS1307 with the ESP32?
Regards,
Sara

0 Vote Up Vote Down
William Lucid answered 6 months ago

Hi Sara,

Have not worked DS3231 or DS1307 for eight years; looking at early project code for CC3000 Adafruit breakout the RTClib may have used to work with DS3231.  I stopped using RTC modules; since NTP does not used a battery and NTP changes Daylight and Eastern Standard time automatically.

Adafruit RTClib for DS1307 and DS3231

Readme.md for this library does not show combability with the ESP32; maybe before the ESP32 was released.  Listed is the ESP8266.

Regards,
William

0 Vote Up Vote Down
Sara Santos Staff answered 6 months ago

Thanks.
I was thinking about testing that library because it seems the simplest to use.
I’ll have to test compatibility with the ESP32, even though that is not mentioned.
Regards,
Sara

0 Vote Up Vote Down
William Lucid answered 6 months ago

Two articles; one on using the RTC3231 Alarm, very detailed:
Using the DS3231 Alarm –with examples

Second is an Github issue about setting ESP32 I2C pins:
Set pins for ESP32 I2C

Regards,
William

0 Vote Up Vote Down
Sara Santos Staff answered 6 months ago

Thanks.
I’m using the DS1307 that doesn’t support alarms.
I’ll also order one DS3231 because it’s more versatile.
I’ll make this issue as resolved for now.
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 6 months ago

I tested the RTCLib with the eSP32 and DS1307, and it seems to be working as expected.

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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 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.