Project Description
A fun DIY Project called Arduino based Piano is implemented here. This project can be helpful in understanding the sound capabilities of Arduino.
Make the connections as per the circuit diagram and upload the code to Arduino. Once the power to the circuit is turned on, Arduino is ready to accept the input from the buttons.
Each button is associated with a PWM signal in the code. When a button is pushed, that particular PWM signal is generated through the Buzzer.
Pin Connections
Connect all seven push buttons one terminal to GND
Connect 1st push button another terminal to Arduino pin 10
Connect 2nd push button another terminal to Arduino pin 9
Connect 3rd push button another terminal to Arduino pin 8
Connect 4th push button another terminal to Arduino pin 7
Connect 5th push button another terminal to Arduino pin 6
Connect 6th push button another terminal to Arduino pin 5
Connect 7th push button another terminal to Arduino pin 4
Connect buzzer +ve pin to Arduino pin 11
Connect buzzer -ve pin to GND
Connect LED +ve pin to Arduino pin 13 and -ve pin to GND
Circuit diagram
Package Include
- Arduino Uno
- Arduino Cable
- Buzzer
- Push Buttons – 7
- Jumper Cables
- LED*1
- Breadboard
- 9v battery
- Battery snapper connector
Reviews
There are no reviews yet.