Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed wave_player 4DGL-uLCD-SE SDFileSystem_OldbutworkswithRTOS PinDetect
You are viewing an older revision! See the latest version
Homepage
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. 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¶
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.
Schematic¶
The schematic used is shown below. For more detailed information on connection declarations and classifications in the software, refer to the code repository.
Photos and Videos¶
Insert here