Home Creators Posts Import Register Favorites Logout

Content

Hi folks, hope you're well!

A few people pointed out that, while my last couple of videos have described lots of (sometimes unusual) things to do with clocks and clock mechanisms, I never actually described how to make one that keeps the correct time!

The funny thing is this never really occurred to me... when you encounter a clock in an escape room, the one thing you can almost certainly be guaranteed is that it won't be used for telling the time!

Anyway, seeing as I already had all the components required I thought I'd create a quick project just to describe how to do this, using the same BKA30D-R5 dual shaft stepper motor and Wemos D1 Mini as in previous projects, together with a RPR220 IR sensor to calibrate the hands. It then connects to an NTP server over a WiFi connection to set the hands, and uses the ESP8266's built-in RTC to maintain time from then on.

You can access the code, schematic, and GERBER files for the PCB from the following Github link: https://github.com/playfultechnology/ClockController/

(And this will be the last clock for a while, I promise!)

Files

Automatic Analog Clock that always keeps perfect time!

A short video demonstration of how to make an analog clock mechanism with fully automatic calibration that then keeps perfect accurate time synchronised to an internet network time protocol (NTP) server. Uses only three components!: - Wemos D1 Mini ESP8266 board - BKA30D-R5 dual-shaft stepper motor - RPR220 reflective IR optical sensor For more information on this project, or and of the other playful technology projects featured on this channel, please check out https://www.patreon.com/c/playfultech or join the discord at https://discord.gg/gGhPrmNn

Comments

Melbourne Signs

any chance of making it suit a ESP32 wroom?

Alastair Aitchison

A bare chip or a devboard? I tend to make most of my PCBs as "shields" that you just drop an Arduino/ESP8266/ESP32 module onto so they're trivial to replace.

Melbourne Signs

As a PCB that i can drop a ESP32 devboard onto. Same as what you have done, Im happy to pay for your time.

Kurt Eulaerts

Hi Alastair, i have a time bases escape room and the video's on the clock items really are amazing ;-) Especially the one where the clockhands turn in every direction, like a hunted clock.... I ordered the prints from pcb way and the stepper motors. But is it possible to provide me the arduino code u used in this project? a very big thanks and again; nice work!!!!!!

Kurt Eulaerts

TNX!!! I'll try it within the next coming days.

Kurt Eulaerts

Hello Alastair, i just finished the soldering and setup, loaded your code into the board and it works like a clock ;-) a hunted one TNX!!!!!!!!!!!!!!!!! I love it ;-)

Alastair Aitchison

Oh, awesome! And thankyou so much for letting me know - have fun with it :)

TwoMike

Hello Alastair Aitchison, I hope you're doing well! I'm currently working on a creative project for a music video, and after discovering your work with clocks, I immediately felt it would be a perfect fit for one of the central ideas in the project. I’d like to know if you’d be open to collaborating with us by providing a wall clock as one of the key visual elements in the video. In particular, I was very intrigued by a specific clock I saw in one of your videos — and I’d like to know if it’s possible to acquire that exact piece for use in the filming. The concept is that the clock hands would move erratically — sometimes counterclockwise, sometimes at unexpected speeds — and with the press of a button, the clock would stop precisely at 9:00. Pressing the button again would resume the erratic motion, then stop again at 6:00, and finally at 3:00 with another press. This sequence of movements will serve as a strong visual metaphor in the video, and I believe your creative, original, and technically impressive work aligns perfectly with the aesthetic we're aiming for. If possible, I’d appreciate it if you could get in touch so we can discuss the logistics for sending the clock to my residence. I’m happy to discuss technical details, budget, and timeline. Of course, your work will be properly credited in the video, including a reference link for viewers to explore more of your creations. It would be an honor to have your contribution in this project. Looking forward to hearing from you! Best regards, E-mail: official.conecta.studio@gmail.com

Szabolcs

Hi! Thank you so much! I’m truly grateful. I’m currently studying at a university in Hungary, training to become a cybersecurity engineer. At our university, we are building a CyberRange training environment, where students can practice in a virtual network that includes vulnerable machines (Linux, Windows, SCADA, WEB systems). My goal is to bring this into the physical world as well — using model trains, moving barriers, a water tower that leaks water when it’s “attacked,” and a clock that receives time via NTP. If the competing students manage to exploit the server through a simulated attack, the clock hands will start to spin uncontrollably — a visual sign of the breach. However, I ordered BKA30D-R5C stepper motors, which can rotate 360 degrees. But imagine this: they sent me BKA30D-R5 motors instead, which cannot rotate fully... I have to present my thesis project next month, and this issue has left me feeling very desperate... I’ve already contacted the seller and explained that I ordered the R5C version — but I haven’t received a reply yet...

세진 박

Hello, thank you always for the good information. I have two questions. 1. Where can I get a pcb file of the version without rpr-220?? 2. If I use the rpr-220, do I have to drill a hole for the sensor in my watch? Thank you in advance.