Skip to content

Clock + Lamp

A wall clock whose hands seem to float inside an empty ring, mounted on a backplate that stands a few centimetres off the wall. A strip of LEDs around the back edge of the plate lights the wall behind it like a halo. The light follows a schedule: a slow sunrise to wake you up, a dim night light in the evening, off at bedtime. You set the schedule, the colours and the time from a web page on your phone.

How it works

flowchart LR
    PSU["5 V 4 A supply<br/>(one plug)"] --> CLOCK
    PSU --> ESP
    PSU --> STRIP
    subgraph CLOCK["Clock (in its own base)"]
        RP["RP2040-Zero<br/>author's firmware"] --> DRV["ULN2003 driver"] --> MOT["28BYJ-48 stepper<br/>turns the hands"]
    end
    RTC["DS3231 clock chip<br/>(what time is it?)"] --> ESP["ESP32<br/>schedule + web page"]
    PHONE["Phone browser"] <-->|"its own Wi-Fi"| ESP
    ESP -->|"data, through a level shifter"| STRIP["WS2812B LED strip<br/>lights the wall"]

There are two boards, and each has one job. The clock runs the designer's own firmware on the board the design expects, inside its own base. It doesn't know the time: it counts motor steps, and you set it by turning the ring. The lamp runs on an ESP32 on the backplate. It reads the time from a DS3231 clock chip, decides what the light should be doing, drives the LED strip, and makes its own Wi-Fi network so your phone can open its settings page. One 5 V supply powers everything.

The six classes

Class By the end of class
1 · Build the clock The clock is assembled, flashed and keeping time on the bench.
2 · Light The strip lights up in any colour, within a power budget you calculated, and plays a sunrise fade.
3 · Time and schedule The lamp knows the time and runs the sunrise, night light and off times by itself.
4 · The web page Your phone changes the schedule and sets the clock, and the settings survive a power cut.
5 · Backplate and mount Clock and lamp hang on the wall as one piece, from one plug.
6 · Polish and showcase The finished clock lamp, a build log, and a demo you can run in two minutes.

Before Class 1

Start printing now. The clock has a lot of parts and the printer is the slowest step.

  • Download the files from the Hollow Clock V instructable.
  • Print on the Prusas with no supports, in the orientation the files come in.
  • Print the hour hand at 15 % infill or less. It has to be light.
  • Optional: a colour change at 0.6 mm (M600) makes the numbers on the index ring stand out.
  • Look at your ULN2003 driver board next to the photos in the instructable. If yours is the larger type, print base-front-wider-slot.stl instead of the regular base front.
  • When the ring is printed, measure its outside diameter. You'll need it to size the backplate in Class 5.

What's given and what's yours

You write the lamp code: the LEDs, the schedule, saving the settings. Two things are given to you:

  • The clock firmware. You flash the designer's precompiled file. You don't write or change it.
  • The web page template in Class 4. Web code is new, so you get a complete page and server to adapt. Everything it connects to is yours.

Credits

  • Hollow Clock V is designed by shiura and published on Instructables under a CC BY-NC-SA license. You may build it for yourself or give it away, not sell it. Credit shiura on your poster and in your build log.
  • Libraries: Adafruit NeoPixel and RTClib (Adafruit); DFRobotDFPlayerMini (DFRobot) for the sound stretch goal.