A compact and attractive real-time clock (RTC) based on the Arduino Mini and a 4x MAX7219 LED Matrix display. Designed with a custom PCB and powered via TP4056 Li-ion charging module, this project makes a beautiful desk clock with a 3D printed case.
- 🕒 Real-time clock using DS1307+ RTC
- 💡 Bright and crisp 32x8 LED Matrix display (MAX7219)
- 🔋 Battery-powered with TP4056 charging circuit
- 🔘 Multiple buttons for settings
- 🧠 Based on Arduino Mini (3.3V or 5V)
- 📦 Custom 3D printed case
| Component | Quantity | Notes |
|---|---|---|
| Arduino Pro Mini | 1 | 3.3V or 5V |
| MAX7219 LED Matrix | 4 | Dot matrix, 8x8 |
| DS1307 RTC Module | 1 | With 32.768KHz crystal |
| TP4056 Module | 1 | For charging 3.7V Li-ion |
| Push Buttons | 3 | Time set / mode / reset |
| 3D Printed Case | 1 | STL shared below |
| Custom PCB | 1 | Designed in EasyEDA |
- Designed using EasyEDA
- Version: V1.5
- Includes:
- Slots for Arduino Mini, DS1307, TP4056
- Ports for 4x Matrix displays
- Button pads (KEY1, KEY2, KEY3)
- Power input (BAT / DC 5V)
- Download PCB:
Refer to the PDF for the full schematic:
You can find the complete source code here:
- Displays current time in HH:MM:SS
- Allows setting time using buttons
- RTC synchronization
- LED scrolling effect (optional)
Make sure you install these libraries before compiling:
| Library | Description | Download Link |
|---|---|---|
| LedControl | Control MAX7219 LED Matrix | Arduino Library |
| FontLEDClock | Custom fonts for matrix display | GitHub (Manual install) |
| Wire | I2C communication (built-in) | Built-in |
| RTClib | DS1307 RTC timekeeping | Arduino Library |
| Button | Simplified button control | Arduino Library |
You can install these via the Arduino Library Manager or manually via the provided links.
- Designed for a 4x MAX7219 display
- Button holes and charging port access included
- You can customize the name on top
- Connect a 3.7V Li-ion battery to TP4056
- Or power directly via 5V DC port
- TP4056 manages battery charging safely
Stay tuned on our channel:
- Website: https://electroiot.in
- GitHub: ElectroIoT
A big thank you to the following platforms for their amazing tools and support in designing this open-source hardware project:
Their platforms made this project possible and easy to share with the maker community ❤️
Open Source Hardware — OSHWA Certified
Happy Making! 💡

