In demonstration video, I use the step motor to play ""Marble Machine" song.
When step motor moves, it creates the vibration with a specific frequency; the vibration makes the surrounding environment oscillate. The oscillation creates a mechanical wave. Frequency value is depended on the speed. When frequency value is between about 20 Hz and 20 kHz, it becomes sound wave and our ear can hear it.
By adjusting the speed, we can create the different frequency of sound. Therefore, we can create a different note of music.
By mapping music notes of a song to speed, moving step motor with the speed values in sequence, step motor can create melody of that song. We can use more than one motor to play a complex song.
Different material connected with motor will create the different timbre.
In this project, I use two stepper motors installed on XY-Plotter. Why I use the motors install on XY-plotter. Because I have already had it and also want to hear timbre of XY-plotter. You can install two stepper motors to any material to hear it timbre or even we don’t need to use any material.
With two motor, we can create melody and chord.
Stack two stepper motor smart expansion boards on the PHPoC board. The ID of this expansion board is set to 13 and 14 by adjusting the dip switch position as shown on the image below:
Refer to specification of your step motor to see how to connect step motor to step motor smart extension board. In my case, I use 42BYG Stepper Motor.
The connection as follow:
- Board ---------- step motor
- M1+ ----------- black
- M1- ------------ green
- M2+ ----------- blue
- M2- ------------ red
- GND ----------- DC12V -
- VM -------------- DC12V +