-
11Test out the Meditation Pod script on the speaker
From this project's page (Files section) or from my GitHub, download the MehtapSculpture.ino sketch and flash it to your Feather. You will likely have to change the PIR sensor pin number at the top of the sketch and the song file name at the top of the main loop to match your needs.
Put your hand in front of the sensor to test it out! Your audio file should play.
-
12A shoutout is in order
We're not done yet. I just want to pause for a minute to give a huge thanks to madbodger for helping me out when I got stuck in a weird place with the software on this project. The sketch I created above would not be possible without his help in debugging. It turned out that the Huzzah32 Feather did not support the standard way of playing audio using interrupts, so my PIR sensor reads kept stopping the audio from playing. With his advice, I was able to use the lower level feedBuffer() method between PIR reads to play the audio and it worked! Thankfully, you as the reader don't have to deal with this.
-
13Test both speakers
OK we're over the obstacle and back on track! Now connect both speakers to the FeatherWing and see if you get the full binaural sound experience. It's likely not going to be as amazing as a store-bought music speaker but hey, at least it's hackable and you can change what you like.
-
14Time to solder everything!
If you're happy with the whole experience (i.e. wires are long enough, response time is good, speakers stay on for how long you want, etc) it's time to connect everything together! I find soldering a lot of fun so it's one of my favourite parts of any hardware project.
First, solder the wires to the speakers.
Then, solder the PIR sensor wires to the inner holes of the Feather board (5V, Gnd and GPIO pin).
Do one last test to make sure everything works!
-
15Put a solder blob on the iron
Once you've confirmed everything still works, put a solder blob on your soldering iron before switching it off. This protects the tip of the iron from corrosion.
-
16Wash your hands!
Solder has lead in it, and once lead enters our bodies, it flows around till its final destination - the brain. There it remains until the day we die. In the meantime, it causes brain damage because it is a neurotoxin.
I say all of this not simply to scare you, but to make sure you always wash your hands after soldering! The alternative is not worth the convenience.
-
17Plug your invention into the wall and show the world!
Use the micro-USB wall wart to power the Feather, and the setup is complete.
The Meditation Pod sculpture premiered on display at Centennial College and has moved to a cute Toronto coffee shop since then. Check out its rain sounds in action:
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.