Projects with a DS3231 real-time clock
10 Mokxi projects use a DS3231 real-time clock (1 beginner, 6 intermediate and 3 advanced). They run on Arduino Uno and ESP32 boards. Here are all of them, from “DS3231 real-time clock on I2C” to “RFID attendance system”. Each card says what the project does, the board and parts it needs and its level, and Open in the simulator runs it in your browser in one click, with no account.
How to pick your first one
- Start with “DS3231 real-time clock on I2C”, a beginner project that needs a DS3231 real-time clock.
- Arduino Uno runs 9 of them and ESP32 1. Start on the board you have, or on an Arduino Uno if you are buying one.
- The parts used most here are the I2C LCD (3 projects), the GC9A01 round display (2) and the LED (2). With those on hand, most of this list is open to you.
- Before you build one on a real bench, read the DS3231 real-time clock wiring guide for your board below. It gives every pin and the voltage notes.
10 projects ready to run

DS3231 real-time clock on I2C
A DS3231 clock module on A4 and A5 keeps the date and time; RTClib reads it once a second and prints the date, the time and the day of the week.
- Board
- Arduino Uno R3
- Parts
- DS3231 real-time clock
- Level
- Beginner

Round watch face
An analog watch face on a GC9A01 round display: hour, minute and second hands from a DS3231 clock, redrawn each second.
- Board
- Arduino Uno R3
- Parts
- GC9A01 round display, DS3231 real-time clock
- Level
- Intermediate

Desk clock
A DS3231 over I2C and a TM1637 on two wires that are not I2C.
- Board
- Arduino Uno R3
- Parts
- DS3231 real-time clock, TM1637 four-digit display, logic analyzer
- Level
- Intermediate

Christmas countdown
A DS3231 keeps the date and an eight-digit MAX7219 display in the window counts the days, hours, minutes and seconds to Christmas, then flashes 25.12.
- Board
- Arduino Uno R3
- Parts
- Eight-digit display, DS3231 real-time clock
- Level
- Intermediate

Automatic pet feeder
A DS3231 clock opens an MG996R food gate at three meal times a day, with a chirp first, the next meal on an I2C LCD and a FEED NOW button.
- Board
- Arduino Uno R3
- Parts
- DS3231 real-time clock, servo, push button, buzzer, I2C LCD
- Level
- Intermediate

Temperature data logger with an SD card
A DS18B20, a DS3231 clock and a microSD card: every 5 seconds a dated temperature line goes into TEMPLOG.CSV, ready to open in a spreadsheet.
- Board
- Arduino Uno R3
- Parts
- MicroSD card module, resistor, LED, DS18B20 temperature sensor, DS3231 real-time clock
- Level
- Intermediate

New Year's countdown
A DS3231 and a four-digit display count down to midnight on New Year’s Eve.
- Board
- Arduino Uno R3
- Parts
- DS3231 real-time clock, TM1637 four-digit display, resistor, WS2812 NeoPixel LEDs
- Level
- Intermediate

Smart home hub
An ESP32-C3 web dashboard that switches a lamp and a fan through relays, dims a porch light, reads temperature, humidity and motion.
- Board
- ESP32-C3-DevKitM-1
- Parts
- Two-channel relay board, filament lamp, DC motor, LED, resistor, +4 more
- Level
- Advanced

Moon phase clock
The Moon's phase for today, computed from a DS3231 clock and drawn on a round GC9A01 display, with the days left to the next full moon.
- Board
- Arduino Uno R3
- Parts
- GC9A01 round display, DS3231 real-time clock, push button
- Level
- Advanced

RFID attendance system
RFID attendance system on an Arduino: tap a card on an RC522, the LCD shows IN, LATE or OUT with the DS3231 time, and a CSV on the SD card logs it.
- Board
- Arduino Uno R3
- Parts
- MFRC522 RFID reader, microSD card module, DS3231 real-time clock, I2C LCD, piezo speaker
- Level
- Advanced