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
- Mbed NXP LPC1768
- MicroSD Card Breakout Board
- VS1053 Audio Decoder Breakout
- Text LCD
- MPR121 Capacitive Touch Sensor Breakout Board
- Speaker
TouchPanel Options
Mute/UnMute | Volume+ | Volume- | Play/Pause |
Previous | Next | Song 6 | Song 5 |
Song 4 | Song 3 | Song 2 | Song 1 |
Connections
Speaker | VS1053 | mBed | MicroSD | MPR121 | TextLCD |
---|---|---|---|---|---|
Positive | Left | ||||
Negative | GBUF | ||||
CS | p14 | ||||
SCLK | p13 | ||||
SI | p11 | ||||
SO | p12 | ||||
VCC | 3.3V | ||||
GND | GND | ||||
BSYNC | p21 | ||||
DREQ | p22 | ||||
RESET | p23 | ||||
p6 | DO | ||||
GND | GND | ||||
p7 | SCK | ||||
3.3V | VCC | ||||
p5 | DI | ||||
p8 | CS | ||||
GND | GND | ||||
p9 | SDA(Pull Up 1k) | ||||
p10 | SCL(Pull Up 1k) | ||||
p26 | IRQ | ||||
3.3V | VCC | ||||
GND | GND | ||||
5V | VCC | ||||
GND via 1k | VO | ||||
p30 | RS | ||||
GND | RW | ||||
p29 | E | ||||
D0(NC) | |||||
D1(NC) | |||||
D2(NC) | |||||
D3(NC) | |||||
p17 | D4 | ||||
p18 | D5 | ||||
p19 | D6 | ||||
p20 | D7 |
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
- http://mbed.org/users/4180_1/notebook/mpr121-i2c-capacitive-touch-sensor/
- http://mbed.org/cookbook/MP3-Player
- http://mbed.org/cookbook/VS1002-MP3-Decoder
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:
Please log in to post comments.
Hello! How can I manage my code in order the SD Card and VS1053 Audio Decoder to share the same SPI bus ?? Thank you