07.20
The original clock, meant as an engagement present for my sister and her fiance, Andria and I thought we could do it all in 6 days. A little too ambitious, but a great idea nevertheless.
After severely missing our deadline for the engagement party, we decided to start over. Taking a little more time and care we figured the clock would be better suited as a wedding gift. Since we now had 6 months instead of 6 days, we added a few more things, like the La Vie en Rose music box. I also decided that rather than use wired tubes, it would probably be better to allow for replacement of the tubes, so sockets would be necessary. To make the base, top level, and gear box for the stepper motor, I used multiple layers of ponoko cutouts:
The nixie tubes and music box (via stepper motor) are controlled from below through a standard nixie tube circuit. Two 74141 ICs are multiplexed to drive 4 tubes from one shift register. So 3 pins on the shift register can control 40 nixie tube pins! And since they’re multiplexed, the fading during transition effect is somewhat easier and tube life is increased. The tubes are powered using a switch mode power supply circuit based on the MAX1771 IC. Unfortunately, as often happens, I made a mistake in my circuit. I won’t go into details….because it’s embarassing. Luckily, there was an easy fix, as you can see from the image below, I had to add a small board below. Other than that, no problems….Eagle files are below if you’re interested.
The buttons shown there and the pcb below them come from sparkfun. Unfortunately, I had to buy three sets, and cut each one up to get the large buttons. I thought I was out of available pins for input on the microcontroller,(turned out I was wrong), but whatever works. The red LED switch is from radioshack, and the stepper motor is from here. Only a buck for a stepper motor! At first I was skeptical, then, after following the directions from the website, I was saddened to realize I might need a more powerful motor. However, then I stumbled across a datasheet for a different motor and decided to try their method. Turns out it worked great! So if you buy that motor, don’t follow their directions, my code is below for anyone that wants it.

















Hi, Colin,
I appreciated it is a very nice musicbox clock, esp. the music box is driven by a step-motor.
But i can download the files from the links.
Would you please kindly send to my email address?
Many thanks.
Toy
Hi again,
I have downloaded the files. The links have typos. I corrected it and get the downloads.
Excellent work and thanks.
Whoops, sorry about that, thanks for the heads up Toy. Links are now fixed.
Hi Colin,
Great looking clock!
I am struggling to see how you set the time? How are the buttons used? Maybe I just don’t understand the code enough or is there something missing?
4 Buttons:
(4) (3) (2) (1)
1. Furthest to the right is a on/off led button. When it’s down, it lights up, and the music box plays everyday at noon.
2. To the very left of the led button, pressing this while in normal mode makes the music box play once, sort of a demo.
3 and 4 do nothing in normal mode, however, if you hold them down together for a few seconds, you’ll enter the clock setting mode. The numbers will flash on and off in this mode.
Once in setting mode, pressing button (3) increases the hours, button (4) increases the minutes. Once you’re at the right time, pressing button (2) returns you to normal mode.
If you’re looking at the code, the time is kept track of in seconds, so pressing the minute button adds 60 to the current time, or 3600 for an hour. The display is constantly updating based on the seconds count. It has to update constantly since the tubes are multiplexed, otherwise you would only see two on at a time. Make sense??
[...] After almost 6 months working on this (not every day), Andria and I finally gave Rob and Katrina their wedding present. Only one month late! Not bad considering some of the obstacles. So, here it is in all it’s glory. Read here for more info. [...]