MP3 Player with TouchPad And TextLCD Display

Project by Pramod Nataraja and Vishnu Venkataraman

Purpose

Playing mp3 files present on micro SD card using a audio Decoder VS1053. This project also includes a touch interface for input and TextLCD for display.

Description

Initially SD card was stored with music files named 1.mp3 to 6.mp3 under the folder /sd/music/. MicroSD and VS1053 communicates over SPI to the mbed. TouchPanel communicates over I2C. Depending on the touch panel input pressed particular song is read from the SD card and is sent over to the audio decoder which plays the music through a speaker connected to it. Other features are Play/Pause, Mute/Unmute, Previous Song/Next Song. Volume also can be controlled using the touch Panel.

Demo

Equipment

/media/uploads/pramodnataraja/_scaled_mp3_player_setup.jpg /media/uploads/pramodnataraja/_scaled_touch_panel.jpg /media/uploads/pramodnataraja/_scaled_lcd_display.jpg

TouchPanel Options

Mute/UnMuteVolume+Volume-Play/Pause
PreviousNextSong 6Song 5
Song 4Song 3Song 2Song 1

Connections

SpeakerVS1053mBedMicroSDMPR121TextLCD
PositiveLeft
NegativeGBUF
CSp14
SCLKp13
SIp11
SOp12
VCC3.3V
GNDGND
BSYNCp21
DREQp22
RESETp23
p6DO
GNDGND
p7SCK
3.3VVCC
p5DI
p8CS
GNDGND
p9SDA(Pull Up 1k)
p10SCL(Pull Up 1k)
p26IRQ
3.3VVCC
GNDGND
5VVCC
GND via 1kVO
p30RS
GNDRW
p29E
D0(NC)
D1(NC)
D2(NC)
D3(NC)
p17D4
p18D5
p19D6
p20D7

Code

Import programMP3_Player_Touch_Panel_Input_LCD_Display

MP3 Player with touch panel interface and LCD display.

References

Below is the references of programs and libraries that the present project was based on

Possible Improvements

  • This project assumes the songs are fixed and always 6 songs are available to Play so this might be improved to detect the songs in the specific folder and play it.
  • The names of songs can be decoded from the filename and displayed rather than assuming the song names in a character array.


1 comment on MP3 Player with TouchPad And TextLCD Display:

24 Nov 2015

Hello! How can I manage my code in order the SD Card and VS1053 Audio Decoder to share the same SPI bus ?? Thank you

Please log in to post comments.