The problem
A word clock spells the current time in words — "IT IS TEN PAST TWO" — instead of showing digits or hands. This project builds one as an 11x10 matrix of addressable LEDs behind a laser-cut stencil face, driven by an ESP32 with WiFi time sync. Most student word clocks drift because a microcontroller's free-running timer is not a clock — typically minutes per week (expected, temperature-dependent). Commercial word clocks solve this with network sync, but their closed firmware teaches nothing. The gap this project fills is a student-built clock that keeps real time like a commercial product: it fetches time from an NTP server over WiFi on a schedule, holds time on a DS3231 real-time-clock chip when the network is down, and lights the right words through a firmware lookup table. Along the way it covers embedded programming, power distribution for LED arrays, timekeeping, and light-adaptive brightness — a complete hardware design story in one build.
pool.ntp.org supplies network time to the clock over WiFi.
Follow the working sequence
How it works
The ESP32 boots, connects to WiFi, and asks an NTP server for the current time, which it writes into a DS3231 real-time-clock chip that keeps ticking even when WiFi drops. Every second the firmware reads the time, rounds it to the nearest five-minute phrase, and looks up which words that phrase needs — "IT", "IS", "TEN", "PAST", "TWO" — in a word-map table that records each word's LED coordinates. It then builds a frame buffer lighting those LEDs plus one to four corner minute dots for the leftover minutes, and pushes the buffer down a single data line to the WS2812B strip. An LDR measures ambient light and scales the global brightness so the clock is readable at noon and gentle at night. A 5 V regulated supply feeds the matrix through a 1000 uF bulk capacitor that absorbs the sharp current pulses of PWM-driven LEDs, preventing brownout flicker when words change.
- Power-up: the ESP32 boots, joins the configured WiFi network and queries an NTP server; the received time is written to the DS3231 RTC.
- Between syncs (design target: every 60 minutes), the firmware reads time from the DS3231, which keeps ticking through WiFi outages.
- The time is rounded to the nearest five-minute phrase; the lookup table returns the words to light (e.g. IT, IS, HALF, PAST, THREE).
- The firmware builds a frame of 110 LED colors plus the minute dots and clocks it down the single WS2812B data line.
- An LDR reading, sampled periodically, scales the global brightness — bright for daylight, dim for night.
- Word changes are debounced to the minute boundary so the display never flashes mid-second.
Tech stack:
- ESP32 development board
- WS2812B addressable LEDs
- Arduino IDE · C++
- FastLED library
- NTP over WiFi
- DS3231 RTC module
- LDR ambient-light sensing
- Laser-cut stencil face design
| Parameter | Value |
|---|---|
| Controller | ESP32 devkit — 240 MHz dual-core, WiFi (datasheet values) |
| LED matrix | 11 x 10 WS2812B addressable LEDs + 4 corner minute dots (design: 110 LEDs) |
| LED current | Worst-case approx. 6.6 A if all 110 LEDs are driven full white (datasheet: 60 mA per LED); typical draw approx. 1–2 A with the firmware brightness cap |
| Time source | NTP over WiFi (pool.ntp.org); resync every 60 minutes (configurable design target) |
| RTC fallback | DS3231 real-time clock, ±2 ppm (datasheet) — approx. ±1 minute per year drift |
| Brightness | LDR-based auto-scaling in firmware (design) |
| Power supply | 5 V DC regulated, design target 5 V / 5 A |
| Enclosure | Laser-cut stencil face + box (design target: approx. 30 x 30 cm face) |
| Firmware | Arduino IDE, C++ with FastLED |
Project features
This word clock's four headline capabilities are automatic time accuracy, offline holdover, adaptive brightness, and a clean word-grid display. WiFi NTP synchronization fetches network time on a configurable schedule, so the clock never needs manual setting and silently corrects its own drift over the network. When WiFi is unavailable, the DS3231 real-time clock — accurate to ±2 ppm per its datasheet, about one minute per year — keeps time running, and the ESP32 resyncs it automatically once the network returns. An LDR light sensor drives firmware brightness scaling, keeping the display readable in daylight and soft in a dark room. The 11x10 addressable-LED matrix spells each time as words, with four corner dots marking the leftover minutes after rounding to the nearest five-minute phrase, so every minute is still shown exactly.
- [WiFi NTP time sync] The ESP32 fetches time from pool.ntp.org on boot and on a configurable resync interval, so the clock stays correct with no manual setting.
- [DS3231 RTC fallback] A DS3231 real-time-clock chip keeps time when WiFi is down; the firmware rewrites it after every successful NTP sync and treats it as the authority when the network is unreachable.
- [11x10 word matrix display] 110 WS2812B addressable LEDs behind a laser-cut stencil face spell each time in words, e.g. "IT IS QUARTER PAST SIX".
- [Four minute dots] Four corner LEDs light zero to four dots for the leftover minutes after rounding to the five-minute phrase, so every minute is displayed.
- [LDR auto-brightness] A light-dependent resistor feeds ambient light level to the firmware, which scales global LED brightness from day-readable to night-soft automatically.
- [Word-map firmware] An Arduino-IDE C++ lookup table maps every five-minute phrase to its word LED coordinates; new languages or phrases mean editing the table, not rewiring.
- [Regulated 5 V power design] The matrix runs on a dedicated regulated 5 V supply with a 1000 uF bulk capacitor across the rails and a 470 ohm data-line series resistor — the standard practice that tames flicker from PWM current pulses.
What is included
- Working word-clock prototype (assembled, wired and tested)
- ESP32 firmware source (Arduino IDE, C++) with the word-map lookup table
- Wiring diagram and complete component list
- Laser-cut stencil face design files (DXF/SVG)
- Power-supply sizing note with the 1000 uF / 470 ohm rationale
- Project report PDF (theory, design, build procedure, testing)
- PPT presentation for final review
- Viva Q&A preparation document (NTP, RTC, LED driving, power design)
Limitations & prerequisites
- The clock needs a WiFi network for NTP sync; offline, time comes from the DS3231 (±2 ppm — approx. one minute per year of drift).
- Words are fixed at build time: a new language or phrasing needs a new stencil and a new word-map table.
- Driving all 110 LEDs at full white would draw approx. 6.6 A; the design uses a brightness cap and a 5 A supply — the cap must not be removed without resizing the supply.
- LDR auto-brightness needs calibration to the room; direct sunlight can still wash out the display.
- Networks with captive portals (hostel/hotel login pages) cannot be joined by the ESP32.
- The faceplate is laser-cut by a vendor; cut quality and delivery time depend on the vendor.
Frequently Asked Questions
Which controller is used and why?
The ESP32 development board: it combines built-in WiFi for NTP time sync, a 240 MHz dual-core processor, and enough RAM to hold the 110-LED frame buffer comfortably — all at a student-friendly price that keeps the bill of materials realistic for a final-year build. An Arduino Uno has no native WiFi, and an ESP8266 has fewer GPIOs and less RAM, so the ESP32 is the natural fit. It also exposes the WiFi, UDP and HTTP stacks the NTP code needs, so no extra radio module is required.
Does the clock work without WiFi?
Yes — the clock keeps displaying time without WiFi. The DS3231 real-time-clock chip, which the firmware writes after every successful NTP sync, keeps ticking through network outages, and a coin cell carries it through power cuts, so the display never freezes or resets. The clock simply cannot correct its small drift until WiFi returns. At ±2 ppm (datasheet) that drift is about one minute per year, so even a long offline stretch leaves the clock visibly correct.
What power supply does it need?
A regulated 5 V DC supply, design target 5 V / 5 A. The worst case — all 110 LEDs at full white — would draw about 6.6 A, but the firmware brightness cap keeps typical draw at roughly 1–2 A, so a 5 A supply covers the design with margin. A bare USB port or weak adapter is not enough for this build. Builder note: a 1000 uF capacitor across the matrix rails absorbs the sharp PWM current pulses, and a 470 ohm resistor on the data line protects the first LED.
Can this project be customized?
Yes — the design separates the words from the wiring. Different languages or phrase styles need only a new laser-cut stencil and a new word-map table; no rewiring is required. Color themes, matrix size and the minute-dot style are all configurable in firmware constants. A WiFi-manager setup portal and a scheduled night-dimming mode can be added as optional extensions.
Is this project suitable for a final-year project?
Yes — for Electronics & Telecommunication, Electrical, and embedded-leaning Computer programs. It demonstrates embedded C++ on the ESP32, network time protocols, addressable-LED driving, power design for pulsed loads, sensor-based brightness adaptation, and physical fabrication — a full hardware design story with working electronics the student can genuinely explain at the viva. The viva kit covers NTP, RTC drift, LED driving and power design.
Components & software requirements
- ESP32 development board
- WS2812B addressable LEDs
- Arduino IDE · C++
- FastLED library
- NTP over WiFi
- DS3231 RTC module
- LDR ambient-light sensing
- Laser-cut stencil face design
Delivery information
Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.
Support terms
Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.
Download free synopsis (PDF)
Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.