MBED Bluetooth Controlled Party Bus
Malik Russell/Jared Thompson
Description
This was a project for a Georgia Tech ECE 4180 Lab Spring 2016. The following project uses Bluetooth Low Energy to interact with song selection saved on an SD card. A uLCD displays menu options for selecting the songs which are then played through a speaker. Once the music starts playing the robot 'dances' (spins in a circle) and the album artwork of the selected song is displayed on the uLCD.
To add music to the Mbed, songs were modified in the music editing tool Audacity to a 16-bit mono .wav file at 16000 Hz. The songs were then saved to the sd card under the folder myMusic. The album artwork was placed onto an unformatted sd card and loaded onto the onboard sd card slot of the uLCD screen. Use the tool 4D workshop tool to add the images to the sd. Make sure the images are down-scaled to 128x128 for the uLCD. The link to the workshop tool is below.
http://www.4dsystems.com.au/product/10/120/Development/4D_Workshop_4_IDE/
For the bluetooth connection, download the Bluefruit LE app and connect to the Adafruit bluetooth device. Once you press connect, press the controller button and then control pad to command the buttons on the mBed.
Hookup Guide
SD Card
mbed | SparkFun MicroSD |
---|---|
8 | CS |
5 | DI |
Vout | VCC |
7 | SCK |
GND | GND |
6 | DO |
9 | CD |
uLCD
mbed | uLCD |
---|---|
5V=VU | 5v |
GND | GND |
TX = 28 | RX |
RX = 27 | TX |
29 | Reset |
H-bridge
mbed | H-bridge | DC motor | External Supply (5v) |
---|---|---|---|
Vcc | Vcc | ||
GND | GND | ||
AO1 | Right Red | ||
AO2 | Right Black | ||
BO1 | Left Black | ||
BO2 | Left Red | ||
VMOT | 5v | ||
P26 | PWMA | ||
P25 | AIN2 | ||
P24 | AIN1 | ||
VCC (pullup) | STBY | ||
P23 | BIN1 | ||
P22 | BIN2 | ||
P21 | PWMB |
Class D high-efficiency audio amp
mbed | TPA2005D1 | Speaker | Potentiometer |
---|---|---|---|
GND | pwr - (gnd), in - | ||
Vout(3.3V) | pwr + | ||
P18 (AnalogOut) | in + | ||
out + | + | ||
out - | - | ||
Volume (All Three) | Bridges facing TPA Board |
Adafruit BLE
mbed | Adafruit BLE |
---|---|
GND | GND |
VU (5V) | Vin |
nc | RTS |
GND | CTS |
P13 | RXI |
P14 | TXO |
Finished Board
The above image shows the Party Bus powered on while displaying the album artwork.
Demo
Import programMbed_Party_Bus
MBED Bluetooth Controlled Party Bus
Please log in to post comments.