A simple python program that takes in a midi file and lights up corresponding a WS2812b Led strip
For more information regarding the intention of this project please refer to the slides
This project is a joint effort of the following three:
- Jabez Tho Ngee Qi (1802315) Singapore Polytechnic
- Nashita Fatima (1822632) Singapore Polytechnic
- Yeo Ying Shen Reynard (1805152) Singapore Polytechnic
A brief showcase of the LED lit up sequence can be found on this youtube video, playing to the tune of mary have a little lamb(Do take not that one key is missing from the strip, hence the gap). The video would be updated to show the fully assembled product.
To replicate the Pianolearner, the following components are required
- 4x momentary switch (Any type)
- Resistor (220 ohms)
- Raspberry Pi 3 model B
- Custom 3d printed bracket for Led strip
- WS2812b LED strip
- 8x female to female jumper wires
- Mounting Tape
The Schematic is as below
Hook up the connection as per schematic, the physical assembly can be up to personal preference but in this scenario the Raspberry pi and the buttons would be attached on the bracket using mounting tape. Refer to pictures if in doubt.
The main python program is called "rpi_main.py" you can run it for a test, or run the setup script called "setup.sh" as root which would install all the necessary dependencies and run the python program on system start-up.
Do take note that to change "pi" in both pianoscript.sh and setup.sh if that is not your username