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.

/media/uploads/ajayke/img_20140323_032910.jpg

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.

/media/uploads/ajayke/touch1.png /media/uploads/ajayke/speaker.jpg

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.

/media/uploads/ajayke/vcm_s_kf_repr_832x624.jpg

Connections

mBedColor LCD2N 3904 Transistor 1Speaker 12N 3904 Transistor 2Speaker 2MPR121 (Piano)MPR121(Drums)
Vu5V+ve+veVccVcc
GndGndEmitterEmitterGndGnd
p13Rx
p14Tx
p12Reset
Collector-ve
p21Base
Collector-ve
p22Base
p9SDA (Pull Up 10K)
p10SCL (Pull Up 10K)
p26IRQ
p28SDA (Pull Up 10K)
p27SCL (Pull Up 10K)
p25IRQ

/media/uploads/ajayke/lcd_zoomed.jpg /media/uploads/ajayke/lcd_display.jpg

Piano (Timbre/Pitch) - Drums (Loudness/Beats per sec) - Values for keys

/media/uploads/ajayke/table.png

Demo

Code

Import programfinal_mini_project

Integrated Music Player (Basic Drums & Piano)


Please log in to post comments.