r/ArduinoProjects • • Mar 02 '22

MIDI controlled music box

186 Upvotes

7 comments sorted by

2

u/Kushagra_K Mar 03 '22

Cool project!
You can add a rotary encoder or a photo-interrupter sensor to the motor or its connected gears to accurately monitor and control its RPM. With that, you will be able to precisely control the tempo of the music by adjusting the motor's RPM with the help of PWM.

4

u/h2osteam Mar 03 '22

The motor rpm does not affect the timing . It’s only there to reset the little strikers on the comb. The servos are controlled in real time plucking the note as pc sends commands

1

u/Kushagra_K Mar 03 '22

Oh, OK. Thanks for clarifying.

2

u/almostfamous Mar 03 '22

if this was commercially produced it would put a lot of the existing manufacturers out of business =) the ability to change the music on the box is novel

3

u/h2osteam Mar 03 '22

It’s also difficult to tune for. Some music just doesn’t work on it

2

u/arkkmid Mar 06 '22

wait how did you interface MIDI to arduino IDE? i been looking for a MIDI/piano simulator that i can easily interface with python or something.

2

u/h2osteam Mar 06 '22

I did not interface MIDI to arduino IDE on the pc. I have this software that allow the MIDI player to send command to a virtual port which is likely helpful for you.