17 comments

[ 4.7 ms ] story [ 50.2 ms ] thread
Beautiful project! I love how it turned out and I'm impressed by the homemade solenoids.

I don't quite understand how the strikers work. Is there something magnetic attached to the top of the wood dowel?

The electromagnets are used as a solenoid, it seems.

So, the electromagnet ‘pulls’ the piece of steel into its inner cavity.

The wooden stick and bead seems to be arranged and mounted in a way that gravity will ‘pull’ the piece of steel away from the solenoid.

I think the solenoids are only strong enough to ‘swing’ the stick and bead toward the tube, but not hold it in place for a sustained period.

[update]

Totally wrong. Seems to be the opposite. The solenoid sucks in the piece of steel, moving the stick and bead away from the tube, but normally, at rest, the bead rests against the tube, because of the hinge and gravity.

On the dowel there are 5 steel nuts which are pulled towards the electromagnet. Gravity makes them return, but TBH it's not reliable enough. I'm working on a new version with small return springs and a wider swing for the striker.

The electromagnet is pulsed to control how hard to strike.

Really impressive work!

I am really interested in what you are able to come up with.

I remember taking apart old telephones with bell ringing mechanisms.

That might be a source of further design inspiration for you.

Maybe ballpoint pen springs?

I purchased a child’s xylophone to try something similar with, but the cost of the solenoids was a dealbreaker for me at the time ($6+ per solenoid on eBay).

Hah, yeah, I think I saw them on Amazon for like $20. That seemed nuts; why I decided to roll my own.
Did you consider using servos vs electromagnets? Curious if small servos couldn’t accomplish the same goal.
I hadn't even thought of using small servos. Possibly that would have been a lot simpler! I went though a bunch of prototype EMs testing to get a working combo of voltage, windings, core size, etc. (Blew more than a few driver circuits too...)
That is a good idea. Those 9g mini servos are only $2 each, so that is much more affordable than the ‘retail’ solenoids.
If you are willing to wait on them, you can get 5 packs of 9g servos for $2 including shipping from China.
Looks and sounds beautiful! I've been fascinated by the concept of automated musical instruments ever since I saw the self-playing piano at the Valley Fair mall in San Jose.

I can't believe you soldered directly to the ESP though! Seeing that gave me anxiety, haha.

Nice hack.

Two tangential complaints.

First, it sounds to me like the ninth note is off - it's lower than it should be.

Second, that page ate a huge chunk of my monthly mobile data allocation.

Twice. Because I made the mistake of clicking the image for the video, instead of opening it in a new tab. The page reloaded in full on the back button.

Ouch, I'm sorry. When I get home tonight I'll check to see if GitHub supports loading=lazy.