Cup o' Sound Created by Becky Stern Last updated on 2015-02-18 01:30:06 PM EST
Guide Contents Guide Contents Overview Circuit Diagram Load Sound and Prepare Components Solder Circuit and Assemble Use it! 2 3 6 8 15 23 Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 2 of 24
Overview Bring the productive bustle of ambient coffee shop sounds with you anywhere by building a white noise machine in a cup! This project uses the Adafruit Audio FX Board to play a 30 minute audio file on repeat. The circuit is battery powered with the help of a lipoly backpack, which also allows for convenient recharging over USB and the easy addition of a power switch. A speaker rests inside the lip of the cup, driven by a class D audio amplifier using a 10K potentiometer for volume control. The Cup o Sound requires no programming and is excellent for practicing your through-hole and free-wire soldering skills. The result is a satisfyingly compact handful of portable sound that can be reused in many contexts or rewired to act as a speaker alone. Before you begin, familiarize yourself with the following guides: Adafruit Guide to Excellent Soldering (http://adafru.it/dvu) Adafruit Audio FX Sound Board (http://adafru.it/e8h) Adafruit Pro Trinket LiPoly/LiIon Backpack (http://adafru.it/e3w) Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 3 of 24
For this project, you will need: 16MB Audio FX Board (http://adafru.it/2220) half-size Perma-Proto board (http://adafru.it/dvr) Adafruit Lipoly Backpack (http://adafru.it/e0a) Adafruit Mono 2.5W Class D Audio Amplifier - PAM8302 (http://adafru.it/eyg) lipoly battery (http://adafru.it/dce) speaker (http://adafru.it/eyh) illuminated on/off button (http://adafru.it/eyi) 10K potentiometer (http://adafru.it/eyj)* knob (http://adafru.it/eyk) button quick-connect wires (http://adafru.it/eyi) (optional but handy) stranded wire in various colors (http://adafru.it/egk) paper coffee cup with lid pliers and soldering tools panavise (http://adafru.it/ddj) heat shrink tubing (http://adafru.it/dvd) craft or utility knife awl pencil Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 4 of 24
*Yes, we realize this is a linear taper pot. If you've got a logarithmic one, feel free to use that! Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 5 of 24
Circuit Diagram Click to enlarge. The lipoly backpack sits atop the audio FX board with the provided headers. Other connections as follows: trigger pin 2 -> GND potentiometer first leg -> GND potentiometer second leg -> audio board R potentiometer third leg -> amp A+ Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 6 of 24
amp A- -> GND amp Vin -> 5V amp GND -> GND switch leads to lipoly backpack (after cutting connecting trace) switch LED + -> 220 ohm resistor -> 5V switch LED - -> GND amp outputs to speaker Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 7 of 24
Load Sound and Prepare Components First thing's first-- load some sound on your Audio FX Board! We've formatted a mono OGG file containing close to 30 minutes of coffee shop white noise: Download 15.7MB cafe audio file http://adafru.it/eyl Follow the Audio FX Board guide (http://adafru.it/e2t) to transfer the sample file (or a file you make) to your device. Next it's time to breadboard the circuit. We highly recommend grabbing two audio boards and saving one for breadboard prototyping. It saves a lot of time and frustration to work out a circuit on a solderless breadboard before soldering your components together. Ask us how we know! Solder the headers and screw terminals onto your amp, and solder wires onto your speaker: Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 8 of 24
On the lipoly backpack, cut the trace connecting the switch pads, and solder two quick-connect wires in place. While you're there, add a solder bridge to convert the charger to 500mA where marked. Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 9 of 24
Since the switch has to be installed from the outside of the cup, it'll be hard to connect wires to it inside the cup. That's where these arcade button quick-connects come in handy! See how they tightly grip the pins without any soldering? Cool. Take a good look now, since we can't quite get our camera lens inside the cup to see them later: Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 10 of 24
Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 11 of 24
Solder the lipoly backpack to the audio board with the included long headers. Trim the rest of your headers and solder them in place on the audio board. See how the lipoly backpack headers come up short on the underside? You may want to insert the headers from underneath the audio board if you want them to be the same depth as the others (for inserting into a solderless breadboard). This was the second board we assembled for this project, and in prep for the final circuit the header depth descrepency wasn't a problem. Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 12 of 24
After prototyping, remove the potentiometer from the solderless breadboard and solder on three wires (with heat shrink tubing) to prepare for installing in the coffee cup. Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 13 of 24
Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 14 of 24
Solder Circuit and Assemble Position the audio board with the USB port at the edge of the Perma-Proto. Solder the leads in place: Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 15 of 24
Next add the amp as shown, and solder up the rest of the components according to the circuit diagram. Remember to use quick-connect wires for the LED inside the pushbutton. Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 16 of 24
Mark and cut a hole for the on/off switch at the base of the cup. Remove the switch's screw-ring and install the switch, reattaching the screw-ring on the inside. Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 17 of 24
Likewise make a hole for the volume adjustment knob at the side of the cup. The potentiometer attaches from the inside with a washer and nut on Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 18 of 24
the outside, and the knob slips over from the outside. Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 19 of 24
Use a pair of pliers to bend the flanges on the speaker to achieve a good fit inside the coffee cup. Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 20 of 24
Attach the quick connect wires to the power switch and click it on! Be sure your circuit is working properly before packing it all up inside the cup: Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 21 of 24
Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 22 of 24
Use it! Enjoy your new ambient bliss. Power up and get cracking on your novel, or code up that new hot app! Adafruit Industries https://learn.adafruit.com/cup-o-sound Page 23 of 24
You can optionally cut a hole in the base of the cup for USB recharging. Battery life will vary based on audio content and volume. Adafruit Industries Last Updated: 2015-02-18 01:30:07 PM EST Page 24 of 24