[Bokononestly] found a lil’ music box that plays Stairway to Heaven and decided those were just the kinds of dulcet tones he’d like to wake up to every morning. To each his own; I once woke up to Blind Melon’s “No Rain” every day for about six months. [Bokononestly] is still in the middle of this alarm clock project right now. One day soon, it will use a *duino to keep track of the music box’s revolutions and limit the alarm sound to one cycle of the melody.
[Bokononestly] decided to drive the crank of the music box with a geared DC motor from an electric screwdriver. After making some nice engineering drawings of the dimensions of both and mocking them up in CAD, he designed and printed a base plate to mount them on. A pair of custom pulleys mounted to the motor shaft and the crank arm transfer motion using the exact right rubber band for the job. You can’t discount the need for a big bag ‘o rubber bands.
In order to count the revolutions, he put a wire in the path of the metal music box crank and used the body of the box as a switch. Check out the build video after the break and watch him prove it with the continuity function of a multimeter. A clever function that should at some point be substituted out for a leaf switch.
We’ve covered a lot of cool clock builds over the years, including one or two that run Linux. And say what you will about Stairway; it’s better than waking up to repeated slaps in the face.
[via r/engineering]
Nice build and documentation!
But one question/remark: I think the gear ration between the handle and the spindle won’t be necessarily a integer number (e.g. three rotations of the handle lead to two and a half of the spindle)?
If that’s the case a switch / hall sensor + magnet on the spindle itself would be easier… (or solve it fancy in software somehow [microphone + fft => engineering overkill]).
Magnets and sensors are a bit messy (imho), since the magnet could accumulate metallic debris. Not that there’s should be any, but I’d go with simple optical sensor and a piece of shiny foil (or some kind of notch/hole) on the side of the drum. That would be rock solid, I think.
Also, what if there’s a power outage while alarm is triggered? There’s no positional sensing whatsoever, so when alarm would go off again, it would just spin it one revolution from where it was left, not caring about where a misic piece starts. So yep, drum revolution sensing is what it needs.
*music piece
Hmm – sensing the position of the music drum itself sounds a bit smarter than sensing the drum revolutions. A simple metal strip on the music drum that shorts two tongues could signal the start position of the song.
Except that the drum itself is made out of metal.
Okay, so a simple strip of plastic that insulates two tongues…
Video creator here. The great ratio between the hand crank and melody wheel is a fixed integer number, because a worm drive is used. The worm wheel on the melody drum has (I think) 30 teeth and it advances one tooth for each rotation of the hand crank worm.
I’m reading lots of valid encoding solutions in the comments, but just wanted to say that this was the easiest possible solution for me so that’s why I went with it. Being an alarm clock it doesn’t have stringent requirements.
Thanks for watching!
A very young Bruce Campbell!
“This is my BOOM-STick!”
He really does look like he’s from Evil Dead!
This is really nice, except pulley misalignment and the feedback. I think a toothed wheel on the motor or crank pulley would make this cash and prizes.
I just though of another solution, if you isolate the drum. (looks like it might be already) You could make a switch from the drum and tuning fork and count the notes in a revolution and then stop.
I do ack the hack.
But I’ll like it when the gearhead noise is gone.
Great, now I’ll have that damn song stuck in my head all morning. Oh, yeah: nice build and video ;-)
Very nice project Chris!!! You rock!
Really cool but where is the box? Needs a box to properly reverberate would sound much better.
Should the two pulleys be in the same plane ?
Ideally yes. There is about 3mm of error due to my caliper skills, hot glue, and how far the motor pulley slid onto the motor shaft.
I got you babe
ba-ba ba-ba
I got you babe.
Thank you! Much better now. ;)
Nice build, er… wrong song! Stairway is overrated.
I had occasion to rig a music box to an electronic project a bit back. After trying and failing various methods to put a motor on a hand-crank type box, I finally tripped over some cheap ones already powered by DC motors:
http://www.ebay.com/itm/Many-Song-Sankyo-Auto-Motor-Mechanism-Music-Box-DIY-Craft-Movement-Handmade-Gift-/261630390778?var=&hash=item3cea62f1fa
Not a huge selection of songs on that one, but it may be possible to swap out the comb (tuned for the song, supposedly) and pin drum from another box. In my limited experimentation, it appeared that many used the same parts.
I was using an arduino on the project anyway, so I ended up making a rudimentary speed control and driving it from the board:
https://learn.adafruit.com/adafruit-arduino-lesson-13-dc-motors?view=all
That all doesn’t lend itself to precise measurement, beyond a timer, but maybe you could piggy-back an encoder somewhere along the drive train?