I designed this project as part of a Star Wars contest for Hackster.io. You can see the full details of this project on Hackster.io
This was a really fun project. I especially enjoyed trying to figure out how to use the built in ADC on the Photon to drive a Class C amp and a pair of small speakers. There's a little python script I wrote to take any WAV file and unpack it to get it to fit in the small memory and limited bit space of the Photon's ADC. I basically converts it to a very large header file. See one sample file here Super hacky, but it was a contest on a deadline. Here's the python script that does the conversion
I hope I can hack on something like this again soon.
The easy way I found to tap into an appliance w/o dealing with junction boxes and outlets and such. Take a 3ft appliance extension cable (15 Amp rated) and cut it, pass a transducer over the hot lead, re-crimp it and you are set. Bingo!
Here you can see the 60Hz AC line running between 1.0-2.0V approx. The circuit I built shifts the AC power signal to that range so it can be sampled with DAC on the Photon. The circuit was tuned to get the right range to maximize sampling resolution.
Oh the hot glue! Looks horrible but it really was the best way to keep those appliance cords from wiggling around and such. Speakers on the rear plate. Automotive store decal of BB-8... check! Officially licensed I assume. After some careful x-acto knifing Here is little BB, faithfully monitoring my electric kettle. Glam shots...