pomeroyb / PortalGun

Code to control a Portal Gun (From Rick and Morty)
32 stars 19 forks source link

Adding Audio Support #2

Open setiupyguppie opened 7 years ago

setiupyguppie commented 7 years ago

I'm very interested in adding audio support for this project.

I've considered extending the hardware to include an Adafruit Audio FX Board (https://www.adafruit.com/product/2210) and triggering audio playback via the GPIO, from within your code.

I was thinking of perhaps simply including a portal creation sound, but perhaps other UI sounds, too.

Any tips, or prototype code you could ping my way to help get me started? I think this would make for a great "complete" solution.

pomeroyb commented 7 years ago

Check out the SFX branch of this project. All the code, sound files, and wiring guides are in place. It wasn't compelling enough for me to continue work on it, but that was mostly due to time constraints around Halloween.

Pitfalls you'll run into: The speakers may be muffled and quiet inside the case, and the battery will drain much faster. The SFX board doesn't have a low power sleep mode, unfortunately

setiupyguppie commented 7 years ago

This is excellent news!... I'll give it a try the minute my hardware arrives! :)

MrBelm commented 7 years ago

I'm about to start this project. How did installing the SFX board work out?