3D Printed Metronome With CPX
We made a metronome to help a musician stay on beat with the music using a CPX, servo motor and a 3D printed pendulum.
Supplies
- 3D printer
- hot glue gun
- micro servo
- cpx
- alligator clips to male wires
3D Print Metronome
- Download and print the following STL files using a 3D printer. Do not use a raft or supports.
- These files were designed using Tinker CAD
- Metronome remixed from Metronome Stand
- The stl files are also attached
Assembly
- Put together the pieces of the frame. If you want it to be more secure you can hot glue it into place.
- Insert servo motor into frame
- Hot glue the bob onto the servo motor
- Place cpx behind the frame on the stand
Coding
- Follow these instructions to install CircuitPython onto your CPX: https://learn.adafruit.com/welcome-to-circuitpython/installing-circuitpython
- Connect your CPX to your computer and save code.py onto it
- The provided code will:
- When button B is pressed, the CPX will light up and then play two alternating tones while continuously moving the servo motor back and forth to act as a pendulum. When button B is pressed again, it will turn off, which stops the light, sounds, and servo movement.