Hybrid Clock - Mechanical Fusion of Digital and Analog Clocks

by shiura in Circuits > Clocks

417 Views, 7 Favorites, 0 Comments

Hybrid Clock - Mechanical Fusion of Digital and Analog Clocks

Hybrid Clock - Mechanical Fusion of Digital and Analog Clocks
front.jpg
スクリーンショット 2025-03-07 15.10.09.jpg

A 3D-printed clock featuring both digital and analog displays with the following characteristics:

  1. Both the digital and analog displays are driven by a single motor.
  2. The current time is automatically acquired and adjusted via WiFi.
  3. A sensorless origin-finding mechanism.
  4. Designed for wall mounting with a slim depth of just 50mm.
  5. A clean appearance achieved through multi-material 3D printing.

Limitation: The minute hand moves once every 10 minutes. In other words, the time resolution of the analog clock is 10 minutes.

Supplies

スライド1.jpeg

Material

  1. Motor : 28BYJ-48 geared stepper motor and driver board comes with (around 3USD per unit) . You can find at Amazon, AliExpress
  2. Microcontroller : Seeed Studio XIAO ESP32C6 without pin headers
  3. You could use any other ESP32-based microcontrollers
  4. Screws : Assortment of 2mm flat head tapping screws. You can find at Amazon, AliExpress
  5. Lubricant (silicone oil spray)

Tool

  1. Screw driver
  2. Soldering iron
  3. Drill bits (1.5mm and 2mm)
  4. Knife, scraper and/or file to remove debris, smoothen surfaces and chamfer corners of printed matter
  5. PC with Arduino IDE

Print Colored Parts

スライド12.jpeg
スライド14.jpeg
スライド15.jpeg
スライド16.jpeg

Printing tips:

  1. Print all parts with supplied posture.
  2. Only "1min-rotor.stl" needs support structure (at the hook part only).

For multi-material 3D printers:

  1. Arrange paired models as assembly
  2. Give different colors for "-letters", "-hand" and "-colored" files

For usual single-material FDM printers:

  1. Change filament during print using "pause at height" function of your slicer.
  2. Only rotors can give multiple colors in this case. "front-frame" and "10min-axis" are in single color.

Print Single-colored Parts

スクリーンショット 2025-03-07 15.44.12.jpg

Printing tips:

  1. Print all parts with supplied posture.
  2. Support structures are not necessary.

Assemble

スライド4.jpeg
スライド5.jpeg
スライド6.jpeg
スライド7.jpeg
スライド8.jpeg
スライド9.jpeg
スライド10.jpeg
  1. Before assembly, clean surfaces touching to the other parts by files or scrapers. It may affect to the smoothness of the motion.
  2. Clean holes with drill bits.
  3. For screw through-holes, use 2mm drill.
  4. For screw tightening holes, use 1.5 - 1.6mm drill.
  5. You do not need glues.
  6. Please be aware of the rotational alignments of the parts (hour rotor and 10min-hand axis).


Electronics and Codes

スライド2.jpeg
スライド3.jpeg
スライド11.jpeg
back.JPG

Hardware

  1. Remove ULN2003 IC in prior to make more space for soldering.
  2. It is recommended to trim (cut) the four pins of pin header of ULN2003 driver board for the ease of soldering.
  3. please solder the Seeed Studio XIAO ESP32C6 microcontroller upside down.
  4. Solder pins (D1-D4 of Seeed Studio XIAO ESP32C6) to the input of driver board directly.
  5. Solder wires from 5V and GND to the driver board.
  6. The other type of ESP32-based board could be used also, but the port mapping in the source code should be changed.
  7. The case model is only for XIAO ESP32C6. The excess motor cable can be stored in the case also.

Software

  1. Install "WiFiManager" library by tzapu to your Arduino IDE using library manager. It is necessary for configuring WiFi connection using your smartphones.
  2. Just search with keyword "wifimanager" in library manager, and click "install".
  3. Compile and flash the demo-xiao.ino (below) to your microcontroller using Arduino IDE, and confirm that the digit shows time from 12:00 to 11:59 sequentially.
  4. Then compile and Flash the clock-xiao.ino (below), the clock code with WiFi sync.
  5. Before compile, set your timezone at line #9 of the source code. The code of your timezone can be found at https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv

WiFi Configuration

スライド13.jpeg

The WiFi configuration can be performed by your smartphone.

  1. Connect to the WiFi station named "Hybrid Clock"
  2. Configuration window may open. If not, please access to "http://192.168.4.1" by your web browser.
  3. Select your WiFi access point (2.4GHz only) and enter password.
  4. Tap "Save" and all set!