Skip to content

NguyenLe15325/ESP32-TFT-Screen-RTC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

⏰ ESP32 TFT Real-Time Clock

A beautiful real-time clock display for ESP32 with TFT touch screen, featuring both analog and digital time displays powered by DS1302 RTC module.

Clock Demo

✨ Features

  • 🎨 Dual Display Modes - Elegant analog clock face with digital time overlay
  • πŸ“… Full Date Display - Shows current day, date, and year
  • πŸ”§ Auto Time Sync - Automatically sets RTC to compile time on first upload
  • πŸ“± Touch Screen Ready - Built for TFT touch displays
  • ⚑ ESP32 Powered - Fast and reliable timekeeping

πŸ› οΈ Hardware Requirements

  • ESP32 Development Board
  • TFT Touch Screen Display (configure pins in TFT_eSPI library)
  • DS1302 RTC Module

πŸ“š Libraries Used

πŸš€ Quick Start

  1. Install Libraries - Add TFT_eSPI and Rtc by Makuna through Arduino Library Manager
  2. Configure Display - Edit TFT_eSPI library's User_Setup.h to match your display pins and specifications
  3. Wire Hardware - Connect DS1302 RTC module to ESP32
  4. Upload Code - Flash clock.ino to your ESP32
  5. Enjoy! - The clock will automatically set itself to the compile time

πŸ“₯ Pre-compiled Binary

For quick flashing, use the included clock.ino.bin file with your favorite ESP32 flash tool.

🎯 How It Works

On first boot, the clock automatically synchronizes the RTC module with the sketch's compilation timestamp, ensuring accurate timekeeping even after power loss. The display refreshes smoothly, showing both an analog clock face and digital time readout.

πŸ“ License

Open source and free to use for any purpose.


⭐ Star this repo if you find it helpful!

About

Real time clock esp32 on tft touch display

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages