Difference: RealTimeClockAndDataLogging (4 vs. 5)

Revision 52020-05-25 - UliRaich

Line: 1 to 1
 
META TOPICPARENT name="Exercises"

Exercise 9: RTC and data logging

Introduction

Line: 38 to 38
 Here is a screen dumps showing a session controlling the ESP32 RTC:

esp32RTC.png

Changed:
<
<

Exercise 3: Set the DS1307 RTC

>
>

Exercise 3: Set and read the time on the DS1307 I2C Real Time Clock

  The disadvantage of getting the current time from the ESP32 RTC is that time is lost when the ESP32 is powered off. The DS1307 RTC however is batttery backed and time is kept even when the rest of the system is shut down.
Changed:
<
<
Do the same thing with the DS1307 RTC
>
>
Do the same thing as exercise 1 and 2 but use the DS1307 RTC instead of the ESP32 internal RTC.

You will need the DS1307 data sheet and the ds1307 driver found at github.

Exercise 4: Synchronize the clocks

Write a module with 2 functions synchronizing the clocks:

  • synchronize the ds1307 clock with the ESP32RTC time
  • synchronize the ESP32RTC with the ds3017 time
  -- Uli Raich - 2020-05-06
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback