MP3 Player with Bluetooth Control
Project by Chris Jones and Patrick Wu
Purpose
This project allows the user to play music from an SD card using a Bluetooth module and the user's phone. Additionally included are an LCD display for user interfacing and an output speaker.
Description
- The SD card has .wav music files already on it. Wave files can be used via Audacity http://www.audacityteam.org/
- The program will read the files on the SD into a string vector
- The LCD display will output up to 4 songs on the screen
- Using the bluetooth controller, one can: select 1 of the 4 displayed songs, page up / down the song list, play and stop songs
- NOTE: Sometimes certain songs will cause the amp to draw a lot of current and for this we use an external power supply, but this is not always necessary
Demo
Program
Import programECE4180Lab4
Bluetooth MP3 Player with uLCD, Speaker, and SD card hardware components
Equipment / Wiring
uLCD wiring
https://developer.mbed.org/users/4180_1/notebook/ulcd-144-g2-128-by-128-color-lcd/
mbed | uLCD Header | uLCD cable |
---|---|---|
5V=VU | 5V | 5V |
Gnd | Gnd | Gnd |
TX=28 | RX | TX |
RX=P27 | TX | RX |
N/A | Reset | Reset |
SD Card wiring
https://developer.mbed.org/cookbook/SD-Card-File-System
mbed | SD breakout |
---|---|
MOSI=P5 | DI |
MISO=P6 | DO |
SCK=P7 | SCK |
P8 | CS |
VOUT | VCC |
GND | GND |
Bluetooth wiring
https://developer.mbed.org/users/4180_1/notebook/adafruit-bluefruit-le-uart-friend---bluetooth-low-/
mbed | Adafruit BLE |
---|---|
TX=P9 | RXI |
RX=P10 | TXO |
5v=VU | VIN |
GND | GND |
N/A | RTS |
GND | CTS |
Speaker Wiring
https://developer.mbed.org/users/4180_1/notebook/using-a-speaker-for-audio-output/
mbed | Class D amp | Speaker |
---|---|---|
GND | PWR- | |
VOUT(3.3V) OR VU(5V) | PWR+ | |
GND | IN- | |
ANALOGOUT=P18 | IN+ | |
OUT+ | + | |
OUT- | - |
Please log in to post comments.