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
History
Surface Transducer Jukebox
2018-12-12, by jrod1096 [Wed, 12 Dec 2018 05:17:58 +0000] rev 3
Surface Transducer Jukebox
Old libraries for SD,filesystem,mbed,RTOS were needed to get the waveplayer to work with the RTOS. Don't update at present time code always gets an SD card open error - but this version works
2017-04-18, by 4180_1 [Tue, 18 Apr 2017 13:00:09 +0000] rev 2
Old libraries for SD,filesystem,mbed,RTOS were needed to get the waveplayer to work with the RTOS. Don't update at present time code always gets an SD card open error - but this version works
ver 1.0
2013-01-24, by 4180_1 [Thu, 24 Jan 2013 02:59:05 +0000] rev 1
ver 1.0
First commit of SDFileSystem Hello World
2012-12-07, by mbed_official [Fri, 07 Dec 2012 11:25:01 +0000] rev 0
First commit of SDFileSystem Hello World