WiFi 6-Segment Clock

WiFi 6-Segment Clock is an ESP32-C3 desk clock with a six-digit display and a mode dial. It gets the current time over Wi-Fi and can show either regular 24-hour time or French Revolutionary decimal time. The second mode is the fun part: the day has ten hours, each hour has one hundred minutes, and each minute has one hundred seconds.

Clock modes

Regular mode uses the familiar HH:MM:SS format. Decimal mode converts the same point in the day to HH.MM.SS on a 10:100:100 scale. Turn the potentiometer and the display switches modes immediately. The separators blink as the seconds advance.

Wi-Fi and time sync

On first boot, the clock creates a Wi-Fi access point and opens a captive portal for network setup. The credentials are saved in flash. After that, it connects automatically and retries every five seconds after a dropped connection. An NTP server supplies the time, with the local zone set through a POSIX time-zone string. The clock does not need a separate RTC module.

Hardware

The circuit has three main parts: an ESP32-C3, a six-digit TM1637 seven-segment display, and a 10–100 kΩ potentiometer. The repository also includes the circuit diagram and enclosure files in Fusion 360, STEP, and STL formats.

Firmware

The Arduino C++ code uses GyverSegment for the display, WiFiManager for the setup portal, and the ESP32 Wi-Fi and SNTP APIs for networking and time. A small potentiometer controller splits the ADC range into two bins and adds 15% hysteresis, which stops rapid mode changes near the midpoint. The code uses millis() to estimate the fraction between second changes. Brightness, time zone, NTP server, portal timeout, and pin assignments are compile-time settings.