Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
Exercise 9: RTC and data loggingIntroduction | ||||||||
Line: 38 to 38 | ||||||||
Here is a screen dumps showing a session controlling the ESP32 RTC:
![]() | ||||||||
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 ![]() ![]() Exercise 4: Synchronize the clocksWrite a module with 2 functions synchronizing the clocks:
| |||||||
-- ![]() |