https://github.com/nopnop2002/esp-idf-ds1302
DS1302 RTC Driver for esp-idf
https://github.com/nopnop2002/esp-idf-ds1302
ds1302 esp-idf esp32 rtc
Last synced: 4 months ago
JSON representation
DS1302 RTC Driver for esp-idf
- Host: GitHub
- URL: https://github.com/nopnop2002/esp-idf-ds1302
- Owner: nopnop2002
- Created: 2019-06-14T13:36:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-09T00:48:50.000Z (about 2 years ago)
- Last Synced: 2025-03-17T09:06:50.225Z (4 months ago)
- Topics: ds1302, esp-idf, esp32, rtc
- Language: C
- Size: 22.5 KB
- Stars: 18
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# esp-idf-ds1302
DS1302 RTC Driver for esp-idfI ported from [here](https://github.com/Erriez/ErriezDS1302/tree/master/src).
# Installation
```
git clone https://github.com/nopnop2002/esp-idf-ds1302
cd esp-idf-ds1302
idf.py menuconfig
idf.py flash
```# Wireing
|DS1302||ESP32|
|:-:|:-:|:-:|
|CLK|--|GPIO15(*1)|
|DAT|--|GPIO16(*1)|
|RST|--|GPIO17(*1)|
|GND|--|GND|
|VCC|--|3.3V|(*1) You can change using menuconfig.
# Set Clock Mode
This mode set RTC initial value using NTP time Server.
You have to set these config value using menuconfig.

You have to set gpio & NTP Server using menuconfig.


# Get Clock Mode
This mode take out the time from a RTC clock.
You have to change mode using menuconfig.


# Get the time difference of NTP and RTC
This mode get time over NTP, and take out the time from a RTC clock.
Calculate time difference of NTP and RTC.
You have to change mode using menuconfig.


# Time difference of 1 week later.

# Time difference of 1 month later.

# Comparison with other RTCs
This module has a large time lag.
I recommend the DS3231 RTC.
https://github.com/nopnop2002/esp-idf-ds3231