Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 992 Bytes

README.rst

File metadata and controls

33 lines (26 loc) · 992 Bytes

DS1307: RTC Module

Overview

This sample application periodically reads date and time data from the DS1307 RTC module, and displays on the console.

Requirements

The DS1307 is a real-time clock module that keeps track of the current date and time using a 32.768 kHz crystal oscillator. It communicates via I2C and includes a battery backup to maintain time even when the main power is off.

References

For more information about the DS1307 RTC module, see https://www.analog.com/en/products/ds1307.html

Building and Running

This project outputs rtc date and time to the console. It requires a DS1307 system-in-package.

.. zephyr-app-commands::
   :zephyr-app: samples/drivers/rtc/ds1307
   :board: esp32_devkitc_wroom
   :goals: build
   :compact:

Sample Output

Current RTC time: 2024-07-28 02:46:00
<repeats endlessly every 1 seconds>