Prank an easy button to say unexpected things... because "That was easy" is just stupid.
See the wiki for pictures of the modifications.
This uses a modified PCM audio driver: https://github.com/gvb/PCM
Create your own .wav files or download selected Simpsons' .wav files from http://www.richmolnar.com/simpsnd.htm (not included). There is a Makefile that uses sox to resample the .wav file(s) to 6KHz (or other rates) and xxd to convert the .wav file(s) to a C include file.
- Bart - Cool Man
- Bart - I didn't do it
- Homer - D'oh!
- Homer - Everyone is stupid except me
- Homer - Giggles
- Homer - Woohoo!
- Lisa - Noooo!
- Nelson - Ha ha!
- Arduino Pro Mini 328 - 3.3V/8MHz - use the 3.3v one with the on-board linear regulator disabled. This allows it to run directly off the two AAA batteries of the easy button, minimizing current draw.
- SparkFun Mono Audio Amp Breakout - TPA2005D1 - Audio amp to drive the speaker from the Arduino output.
Arduino Pins:
- 2 - Button. The button input uses the weak pullup capability of the Arduino and needs it to be grounded when the switch is pressed. This is configured to interrupt when it goes low, waking up the Arduino and starting the playback.
- 7 - Wired to the amplifier shutdown pin. This is used to minimize current draw when it isn't active.
- 11 - Audio output to drive the speaker (defined in PCM.c).