LampPi

 

Projects

GPIO Music Box

GPIO Music Box

What you will make

In this resource, you will make a music box with a RaspberryPi and a breadboard using the GPIO pins. You will use Python to create a mapping between each button and a different sound to make a musical box.

What you will learn

By creating a GPIO music box with your RaspberryPi you will learn:
◾ How to play sounds in Python with PyGame
◾ How to connect a button to the GPIO pins on a RaspberryPi
◾ How to use the Python GPIO library to connect button presses to function calls
◾ How to use the dictionary data structure in Python
◾ How to ensure code is easy to extend a simple project to do more


About

Contact

Links

Site Map

© LampPi 2024