2026
Automatic Piano Player
Team project · Embedded software and electromechanical design
A modular system that plays 84 piano keys using solenoids. Built with a team of three, it connects a Python audio-processing application to an Arduino Mega and MOSFET driver circuitry.
Project overview
The system converts digital note events into physical keystrokes. A Python web application handles MP3 processing and audio-to-MIDI transcription, then streams time-stamped note events over serial.
Project contributions
Three people worked on the build: Jeffrey, Ivan, and Michael. The project included mechanical assembly, actuator circuitry, Arduino firmware, and a Python application.
Individual responsibilities will be added after the team’s division of work is confirmed.
Actuation and electronics
Modular solenoid arrays press the piano keys. MOSFET circuits drive the actuators, while an Arduino Mega and eleven 74HC595 shift registers provide the control outputs.
Audio processing and firmware
- The Python application processes an MP3 and transcribes it to MIDI.
- Time-stamped note events are sent over serial.
- The Arduino firmware maps the events to the corresponding solenoids and sequences their actuation.
Specifications
- Keys actuated
- 84
- Actuators
- 84 solenoids
- Drivers
- 84 MOSFETs
- Main controller
- Arduino Mega
- Output expansion
- 11 × 74HC595 shift registers
- Communication
- Serial
Demonstration
The team gave a live demonstration at Tian Nian Health Management Inc., a local nursing home. The project was also featured in the Overseas Chinese Daily News.
Watch the project videoNext steps
Planned improvements include tuning volume expression and adding pedal control.