ECE 4180 Final Project
Dependencies: mbed wave_player 4DGL-uLCD-SE SDFileSystem_OldbutworkswithRTOS PinDetect
Portable Surface Transducer Jukebox
ECE 4180 Final Project
Team members
- Bruna Correa
- Lance Hudson
- Javier Rodriguez
Jukebox Overview
This unique jukebox uses a surface transducer to essentially turn any hard surface (table, etc) into a resonant speaker. The user has the option to select one of out ten songs which were preselected and loaded onto the SD card. To begin, the user types their song choice into the keypad and is prompted to press “START” to begin the song. The user can end the song at any time by pressing “STOP,” which will redirect them back to the original selection menu.
Parts Required
- 1x Mbed (LPC1768)
- 1x MicroSD card breakout (Sparkfun)
- 1x Class D Amp (Sparkfun TPA2005)
- 1x Surface conduction transducer speaker (Generic)
- 1x Breadboard speaker
- 2x standard pushbuttons
- 1x uLCD (Sparkfun 4DGL)
- 1x Touch capacitance keypad (Sparkfun MPR121)
- 2x 6-volt breadboard battery packs
- 1x Standard 8x4x4 project box
Design Challenges and Tradeoffs
One of the major challenges experienced when developing the Jukebox user interface was the synchronous playback function of the music. This required several instances of interrupt handling and pin detects. More specifically, regarding the “STOP” button, we realized that it was initially not possible to perform any pushbutton polling while the waveplayer function play() is active; if the “STOP” button was pressed while a song is playing, it would only be recognized when the song was finished. Therefore, we looked into editing the waveplayer library itself by passing an extern bool named “play” that was switched to true when “START” is pressed and false when “STOP” is pressed. Inside the play() function we added a logical check to ensure that this play variable is true, and if switched to false, it immediately breaks from the loop, thereby stopping the playback.
Several design tradeoffs had to be made for the benefit of portability. For example, we chose to not implement the original RGB LED strip because it added too much weight and occupied too much space inside the housing for the portable implementation desired. We believe that portability was a more valuable feature for the end user than an LED light show.
Schematic
The schematic used is shown below. For more detailed information on connection declarations and classifications in the software, refer to the code repository.
Demonstration Video
Files at revision 3:74066405c9fc
Name | Size | Actions |
---|---|---|
[up] | ||
4DGL-uLCD-SE.lib | 64 | Revisions Annotate |
PinDetect.lib | 59 | Revisions Annotate |
SDFileSystem.lib | 92 | Revisions Annotate |
main.cpp | 10088 | Revisions Annotate |
mbed.bld | 65 | Revisions Annotate |
mpr121.cpp | 5684 | Revisions Annotate |
mpr121.h | 4935 | Revisions Annotate |
wave_player.lib | 66 | Revisions Annotate |