Integrated Music Player (Basic Piano & Drums)
Mini Project By Ajay Elango and Priya Iyer
Introduction
This is an integrated music player created using the mbed microcontroller, capacitive touch screens, speakers and a LCD. This music player combines both drums as well as piano. That is, the user can play both the drums as well as piano on the same device.
Components used
- Mbed NXP LPC1768
- MPR121 Capacitive Touch Sensor Breakout Board (2)
- TTL Level RS232 Color Graphics LCD display (2)
- Speaker (Sparkfun 64 ohm, 0.5 W) (2)
- 2N 3904 Transistor (2)
Description
Piano is a musical instrument that is widely used in classical and jazz music while drums is a percussion instrument that is widely used in many genres of music. This device integrates both these instruments.
The input is driven through 2 capacitive touch key pads. The key pad that you see on the right is the input key pad for piano and the one that you see on the left is the input key pad for the drums. The speakers are used to play out the music.
Whenever the user presses one of the keys on the piano, a particular musical note is played. The information of the key that has been pressed by the user is displayed on the LCD. The LCD displays the key that has been pressed and it also displays the pitch and the timbre of the note. The user can play up to 12 different types of the musical notes with the piano. And when the user strikes one of the keys on the left capacitive keypad, a corresponding beat is played. The LCD displays the number of beats that has been played along with the loudness of the beat.
Connections
mBed | Color LCD | 2N 3904 Transistor 1 | Speaker 1 | 2N 3904 Transistor 2 | Speaker 2 | MPR121 (Piano) | MPR121(Drums) |
---|---|---|---|---|---|---|---|
Vu | 5V | +ve | +ve | Vcc | Vcc | ||
Gnd | Gnd | Emitter | Emitter | Gnd | Gnd | ||
p13 | Rx | ||||||
p14 | Tx | ||||||
p12 | Reset | ||||||
Collector | -ve | ||||||
p21 | Base | ||||||
Collector | -ve | ||||||
p22 | Base | ||||||
p9 | SDA (Pull Up 10K) | ||||||
p10 | SCL (Pull Up 10K) | ||||||
p26 | IRQ | ||||||
p28 | SDA (Pull Up 10K) | ||||||
p27 | SCL (Pull Up 10K) | ||||||
p25 | IRQ |
Piano (Timbre/Pitch) - Drums (Loudness/Beats per sec) - Values for keys
Demo
Code
Import programfinal_mini_project
Integrated Music Player (Basic Drums & Piano)
Please log in to post comments.