# ESP32 RTC Clock

Datum, Uhrzeit, Temperatur, Farbdisplay

只凑三样东西，也不联网：一块普通 ESP32、一块 1.77 寸彩色 TFT，加一个走 I²C 的 DS3231 时钟模块。

- id: frankyhub-esp32-rtc-clock
- author: frankyhub
- repository: https://github.com/frankyhub/ESP32-RTC-Clock
- license: MIT
- shape: square
- scenes: tools
- boards: ESP32
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/frankyhub-esp32-rtc-clock/
- html_zh: https://esp32gallery.com/zh/projects/frankyhub-esp32-rtc-clock/
- json: https://esp32gallery.com/data/catalog/projects/frankyhub-esp32-rtc-clock.json

## Hardware

Supported hardware: ESP32. Confirm the exact board revision and pin map in the upstream repository.

支持硬件：ESP32。烧录前请在上游仓库核对板卡版本与引脚定义。

## English

```
Three parts, no network: a plain ESP32, a 1.77-inch colour TFT and a DS3231 real-time clock module on the I²C bus. The screen carries weekday, date, time and temperature, and because the DS3231 keeps time by itself the clock never needs Wi-Fi. The display hangs off SPI with SCK on GPIO 18, MOSI on GPIO 23, reset on GPIO 14, data/command on GPIO 13 and chip select on GPIO 12, while the backlight LEDA goes to 3,3 V and the RTC and panel take 5 V and ground. Before first use the RTC is meant to be set to the current time with a separate setting program, so it starts from a known value rather than whatever it held.
```

## 中文

```
只凑三样东西，也不联网：一块普通 ESP32、一块 1.77 寸彩色 TFT，加一个走 I²C 的 DS3231 时钟模块。屏上同时给出星期、日期、时间和温度，因为走时由 DS3231 自己负责，整机不需要 Wi-Fi。接线是屏走 SPI——SCK 接 GPIO 18，MOSI 接 GPIO 23，复位接 GPIO 14，数据/命令接 GPIO 13，片选接 GPIO 12，背光 LEDA 接 3,3 V；RTC 模块和屏的电源都取 5 V 与 GND。RTC 的 SDA、SCL 分别接到 ESP32 的 SDA、SCL，电源取 5 V。第一次上电之前，建议先用一个单独的设置程序把 RTC 校到当前时间，免得它从出厂值开始走；之后断电再上电，时间还在。
```
