# CircuitPython Sound Box

## Overview

https://www.youtube.com/watch?v=rt9n0YsFPMk

## DIY Switches for Assistive Tech – Big Button Audio Sound Box

In this guide you'll learn how to build an Audio Sound Box using Circuit Playground Express and CircuitPython. This device&nbsp;can play back short audio clips and features a really big arcade button that lights up when you press it. It’s a pretty simple project but it’s very useful for the assistive tech community.&nbsp;Similar products are actually quite pricey so a DIY solution can be cost effective, and of course this is customizable!

![](https://cdn-learn.adafruit.com/assets/assets/000/050/921/medium800/3d_printing_hero-1-cropped.jpg?1518538547)

## Prerequisite Guides

If your new to electronics and the&nbsp;_Adafruit Circuit Playground Express_, I suggest you walk through the following guides to get the basics. The CircuitPython guide will walk you through setting it up.

- [Welcome to CircuitPython](../../../welcome-to-circuitpython?view=all)
- [Adafruit Circuit Playground Express](../../../adafruit-circuit-playground-express)
- [Collin's Lab: Soldering](../../../collins-lab-soldering)

![](https://cdn-learn.adafruit.com/assets/assets/000/050/906/medium800/3d_printing_parts.jpg?1518481200)

## Electronic Components

The Circuit Playground Express, massive arcade button, PAM8302 amplifier and speaker are the main electronic components used in this project.

### Circuit Playground Express

[Circuit Playground Express](https://www.adafruit.com/product/3333)
 **Circuit Playground Express** is the next step towards a perfect introduction to electronics and programming. We've taken the original Circuit Playground Classic and made it even better! Not only did we pack even more sensors in, we also made it even easier to...

In Stock
[Buy Now](https://www.adafruit.com/product/3333)
[Related Guides to the Product](https://learn.adafruit.com/products/3333/guides)
![A Black woman's manicured hand holds a round microcontroller with lit up LEDs.](https://cdn-shop.adafruit.com/640x480/3333-05.jpg)

### Adafruit Mono 2.5W Class D Audio Amplifier - PAM8302

[Adafruit Mono 2.5W Class D Audio Amplifier - PAM8302](https://www.adafruit.com/product/2130)
This super small mono amplifier is surprisingly powerful - able to deliver up to 2.5 Watts into 4-8 ohm impedance speakers. Inside the miniature chip is a class D controller, able to run from 2.0V-5.5VDC. Since the amp is a class D, its very efficient (over 90% efficient when driving an...

In Stock
[Buy Now](https://www.adafruit.com/product/2130)
[Related Guides to the Product](https://learn.adafruit.com/products/2130/guides)
![Angled shot of an Adafruit Mono 2.5W Class D Audio Amplifier assembled to a speaker and white breadboard. ](https://cdn-shop.adafruit.com/640x480/2130-00.jpg)

### Mono Enclosed Speaker - 3W 4 Ohm

[Mono Enclosed Speaker - 3W 4 Ohm](https://www.adafruit.com/product/3351)
Listen up! This 2.8" x 1.2" speaker&nbsp;is&nbsp;a&nbsp;great addition to any audio project where you need 4 ohm impedance and 3W or less of power. We particularly like this&nbsp;speaker&nbsp;as it is&nbsp;small and enclosed for good audio volume and quality. It has a handy JST 2PH...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3351)
[Related Guides to the Product](https://learn.adafruit.com/products/3351/guides)
![Enclosed Speaker with JST cable](https://cdn-shop.adafruit.com/640x480/3351-01.jpg)

### Panel Mount Right Angle 10K Linear Potentiometer w/On-Off Switch

[Panel Mount Right Angle 10K Linear Potentiometer w/On-Off Switch](https://www.adafruit.com/product/3395)
This **Panel Mount Right Angle 10K Linear Potentiometer w/ On-Off Switch** is a two-in-one, with both a breadboard-friendly potentiometer _and_ a switch. For the potentiometer-half, you've got a standard linear taper 10K ohm potentiometer, with a grippy shaft. It's...

In Stock
[Buy Now](https://www.adafruit.com/product/3395)
[Related Guides to the Product](https://learn.adafruit.com/products/3395/guides)
![Panel Mount Right Angle 10K Linear Potentiometer with On-Off Switch](https://cdn-shop.adafruit.com/640x480/3395-01.jpg)

### Solid Machined Metal Knob - 1" Diameter

[Solid Machined Metal Knob - 1" Diameter](https://www.adafruit.com/product/2056)
This is really the fanciest, best-feeling knob we've ever seen. Using this knob sort of reminded us of driving along&nbsp;the Amalfi coast in a perfectly restored '65 Porsche -&nbsp;meaning we really, really liked it. &nbsp;We hand-selected the best knobs for your project in different...

In Stock
[Buy Now](https://www.adafruit.com/product/2056)
[Related Guides to the Product](https://learn.adafruit.com/products/2056/guides)
![Solid Machined Metal potentiometer or encoder Knob with rubber grip](https://cdn-shop.adafruit.com/640x480/2056-01.jpg)

### Panel Mount 1/8" / 3.5mm TRS Audio Jack Connector

[Panel Mount 1/8" / 3.5mm TRS Audio Jack Connector](https://www.adafruit.com/product/3692)
What _is_ this TRS bit? **T** urtle **R** ock **S** tudios? **T** ransmission **R** aman **S** pectroscopy? Not quite, more...

In Stock
[Buy Now](https://www.adafruit.com/product/3692)
[Related Guides to the Product](https://learn.adafruit.com/products/3692/guides)
![Panel Mount 1/8 inch / 3.5mm TRS Audio Jack Connector](https://cdn-shop.adafruit.com/640x480/3692-01.jpg)

### USB Micro-B Breakout Board

[USB Micro-B Breakout Board](https://www.adafruit.com/product/1833)
Simple but effective - this breakout board has a USB Micro-B connector, with all 5 pins broken out. Great for pairing with a microcontroller with USB support, or adding USB 5V power to a project.  
  
We use a micro-B connector with through-hole shielding pads for an excellent strong...

In Stock
[Buy Now](https://www.adafruit.com/product/1833)
[Related Guides to the Product](https://learn.adafruit.com/products/1833/guides)
![Angled shot of small, blue, rectangular USB micro-b breakout board.](https://cdn-shop.adafruit.com/640x480/1833-06.jpg)

### 3 x AA Battery Holder with On/Off Switch, JST, and Belt Clip

[3 x AA Battery Holder with On/Off Switch, JST, and Belt Clip](https://www.adafruit.com/product/3287)
This battery holder connects 3 AA batteries together in series for powering all kinds of projects. We spec'd these out because the box is compact, and 3 AA's add up to about 3.3-4.5V, a very similar range to Lithium Ion/polymer (Li-Ion) batteries, plus it has&nbsp;a nifty&nbsp;on-off...

In Stock
[Buy Now](https://www.adafruit.com/product/3287)
[Related Guides to the Product](https://learn.adafruit.com/products/3287/guides)
![Angled shot of 3 x AA battery holder with on/off switch, JST, and belt clip.](https://cdn-shop.adafruit.com/640x480/3287-00.jpg)

## Hardware and Supplies

Just a few screws, stickers and wires.&nbsp;

### JST-PH Battery Extension Cable - 500mm

[JST-PH Battery Extension Cable - 500mm](https://www.adafruit.com/product/1131)
By popular demand, we now have a handy extension cord for all of our JST PH-terminated battery packs (such as our LiIon/LiPoly and 3xAAA holders). One end has a JST-PH compatible socket, and the other end has a matching plug. Between the two, 500mm of color coded wire. Handy for wearable...

In Stock
[Buy Now](https://www.adafruit.com/product/1131)
[Related Guides to the Product](https://learn.adafruit.com/products/1131/guides)
![Front shot of JST-PH Battery Extension Cable.](https://cdn-shop.adafruit.com/640x480/1131-00.jpg)

### Part: M2.5 x .45 x 5mm
quantity: 4
Flat Head Phillips Machine Screws
[M2.5 x .45 x 5mm](https://www.albanycountyfasteners.com/2-5-MM-x-45-Phillips-Flat-Head-Machine-Screw-p/1011-1002.htm)

### Part: M3 x .45 x 5mm
quantity: 2
Flat Head Phillips Machine Screws
[M3 x .45 x 5mm](https://www.albanycountyfasteners.com/3-MM-x-5-Phillips-Flat-Head-Machine-Screw-p/1011-1006.htm)

### Silicone Cover Stranded-Core Wire - 30AWG in Various Colors

[Silicone Cover Stranded-Core Wire - 30AWG in Various Colors](https://www.adafruit.com/product/2051)
Silicone-sheathing wire is super-flexible and soft, and its also strong! Able to handle up to 200°C and up to 600V, it will do when PVC covered wire wimps out. We like this wire for being extremely supple and flexible, so it is great for wearables or projects where the wire-harness has to...

Out of Stock
[Buy Now](https://www.adafruit.com/product/2051)
[Related Guides to the Product](https://learn.adafruit.com/products/2051/guides)
![Silicone Cover Stranded-Core Wire - 30AWG in Various Colors laid out beside each other. ](https://cdn-shop.adafruit.com/640x480/2051-01.jpg)

### Solder Spool - 1/4 lb SAC305 RoHS lead-free /  0.031" rosin-core

[Solder Spool - 1/4 lb SAC305 RoHS lead-free /  0.031" rosin-core](https://www.adafruit.com/product/734)
If you want to make a kit you'll need some solder. This 1/4 lb (about 110 gram) spool is just the right amount, not too much (like 1 lb spools) and not too little (like those little 'pocket clip' vials). This spool of solder is 0.031" in diameter, with the 'industry...

In Stock
[Buy Now](https://www.adafruit.com/product/734)
[Related Guides to the Product](https://learn.adafruit.com/products/734/guides)
![Solder Spool - 1/4 lb SAC305 RoHS lead-free / 0.031" rosin-core .](https://cdn-shop.adafruit.com/640x480/734-03.jpg)

### Multi-Colored Heat Shrink Pack - 3/32" + 1/8" + 3/16" Diameters

[Multi-Colored Heat Shrink Pack - 3/32" + 1/8" + 3/16" Diameters](https://www.adafruit.com/product/1649)
Heat shrink is the duct tape of electronics which I guess makes this heat shrink the colorful and exciting duct tape they sell&nbsp;at craft stores. &nbsp;This heat shrink comes in six different colors - red, blue, green, yellow, white and the traditional black.

Each pack contains ten...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1649)
[Related Guides to the Product](https://learn.adafruit.com/products/1649/guides)
![Array of many colorful heatshrink tubes.](https://cdn-shop.adafruit.com/640x480/1649-00.jpg)

### Part: Mounting Putty Tack
quantity: 1
Loctite Fun-Tak Mounting Putty 2-Ounce
[Mounting Putty Tack](https://www.amazon.com/dp/B001F57ZPW/)

## Cool Tools!

These help make the project a smooth building experience. You don't need them all of them, but I recommend them.

### Spudger - Double Sided Prying Tool

[Spudger - Double Sided Prying Tool](https://www.adafruit.com/product/3434)
Is there something missing from your tool kit or workstation? Are you having trouble figuring out which elusive tool it is that you're lacking?&nbsp;Perhaps it's a spudger!&nbsp;"A what?"&nbsp;A&nbsp; **s-p-u-d-g-e-r**! It's&nbsp;a prying tool that has a wide...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3434)
[Related Guides to the Product](https://learn.adafruit.com/products/3434/guides)
![Stainless steel double-ended prying tool](https://cdn-shop.adafruit.com/640x480/3434-01.jpg)

### Hakko Professional Quality 20-30 AWG Wire Strippers

[Hakko Professional Quality 20-30 AWG Wire Strippers](https://www.adafruit.com/product/527)
These are the finest wire strippers we have used, and if you have to do a lot of wiring, you will agree! They have soft rounded grips - very comfortable to use, and precision ground notches that do a perfect job every time. No more yanking or twisting to strip wires cleanly and quickly.<br...></br...>

In Stock
[Buy Now](https://www.adafruit.com/product/527)
[Related Guides to the Product](https://learn.adafruit.com/products/527/guides)
![Red and black multi-size wire stripplers, closed](https://cdn-shop.adafruit.com/640x480/527-02.jpg)

### Flush diagonal cutters

[Flush diagonal cutters](https://www.adafruit.com/product/152)
These are the best diagonal cutters, large super-comfortable grip to use and have strong nippers for perfect trimming of wires and leads. I've used my pair every day for years.

In Stock
[Buy Now](https://www.adafruit.com/product/152)
[Related Guides to the Product](https://learn.adafruit.com/products/152/guides)
![Red and black diagonal flush cutters](https://cdn-shop.adafruit.com/640x480/152-02.jpg)

### Helping Third Hand Magnifier W/Magnifying Glass Tool

[Helping Third Hand Magnifier W/Magnifying Glass Tool](https://www.adafruit.com/product/291)
The classic 'third hand tool,' as seen on every desk! We have one next to our [Panavise jr](//www.adafruit.com/products/151), they complement each other well. This tool is good for holding small PCBs and wires for tinning or soldering to parts.

&nbsp;

- Every...

In Stock
[Buy Now](https://www.adafruit.com/product/291)
[Related Guides to the Product](https://learn.adafruit.com/products/291/guides)
![Third Hand Magnifier with two alligator grabbers and Magnifying Glass](https://cdn-shop.adafruit.com/640x480/291-01.jpg)

- [Next Page](https://learn.adafruit.com/circuitpython-sound-box/circuit-diagram.md)

## Guide Products

### Circuit Playground Express

[Circuit Playground Express](https://www.adafruit.com/product/3333)
 **Circuit Playground Express** is the next step towards a perfect introduction to electronics and programming. We've taken the original Circuit Playground Classic and made it even better! Not only did we pack even more sensors in, we also made it even easier to...

In Stock
[Buy Now](https://www.adafruit.com/product/3333)
[Related Guides to the Product](https://learn.adafruit.com/products/3333/guides)
### Adafruit Mono 2.5W Class D Audio Amplifier - PAM8302

[Adafruit Mono 2.5W Class D Audio Amplifier - PAM8302](https://www.adafruit.com/product/2130)
This super small mono amplifier is surprisingly powerful - able to deliver up to 2.5 Watts into 4-8 ohm impedance speakers. Inside the miniature chip is a class D controller, able to run from 2.0V-5.5VDC. Since the amp is a class D, its very efficient (over 90% efficient when driving an...

In Stock
[Buy Now](https://www.adafruit.com/product/2130)
[Related Guides to the Product](https://learn.adafruit.com/products/2130/guides)
### Mono Enclosed Speaker - 3W 4 Ohm

[Mono Enclosed Speaker - 3W 4 Ohm](https://www.adafruit.com/product/3351)
Listen up! This 2.8" x 1.2" speaker&nbsp;is&nbsp;a&nbsp;great addition to any audio project where you need 4 ohm impedance and 3W or less of power. We particularly like this&nbsp;speaker&nbsp;as it is&nbsp;small and enclosed for good audio volume and quality. It has a handy JST 2PH...

Out of Stock
[Buy Now](https://www.adafruit.com/product/3351)
[Related Guides to the Product](https://learn.adafruit.com/products/3351/guides)
### Panel Mount Right Angle 10K Linear Potentiometer w/On-Off Switch

[Panel Mount Right Angle 10K Linear Potentiometer w/On-Off Switch](https://www.adafruit.com/product/3395)
This **Panel Mount Right Angle 10K Linear Potentiometer w/ On-Off Switch** is a two-in-one, with both a breadboard-friendly potentiometer _and_ a switch. For the potentiometer-half, you've got a standard linear taper 10K ohm potentiometer, with a grippy shaft. It's...

In Stock
[Buy Now](https://www.adafruit.com/product/3395)
[Related Guides to the Product](https://learn.adafruit.com/products/3395/guides)
### Solid Machined Metal Knob - 1" Diameter

[Solid Machined Metal Knob - 1" Diameter](https://www.adafruit.com/product/2056)
This is really the fanciest, best-feeling knob we've ever seen. Using this knob sort of reminded us of driving along&nbsp;the Amalfi coast in a perfectly restored '65 Porsche -&nbsp;meaning we really, really liked it. &nbsp;We hand-selected the best knobs for your project in different...

In Stock
[Buy Now](https://www.adafruit.com/product/2056)
[Related Guides to the Product](https://learn.adafruit.com/products/2056/guides)
### Panel Mount 1/8" / 3.5mm TRS Audio Jack Connector

[Panel Mount 1/8" / 3.5mm TRS Audio Jack Connector](https://www.adafruit.com/product/3692)
What _is_ this TRS bit? **T** urtle **R** ock **S** tudios? **T** ransmission **R** aman **S** pectroscopy? Not quite, more...

In Stock
[Buy Now](https://www.adafruit.com/product/3692)
[Related Guides to the Product](https://learn.adafruit.com/products/3692/guides)
### USB DIY Connector Shell - Type Micro-B Plug

[USB DIY Connector Shell - Type Micro-B Plug](https://www.adafruit.com/product/1390)
Make your own USB connections without slicing apart a USB cable and soldering those thin wires inside. These DIY "USB shells" are available in [USB A plug](http://www.adafruit.com/products/1387), [micro B](http://www.adafruit.com/products/1390), <a...></a...>

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1390)
[Related Guides to the Product](https://learn.adafruit.com/products/1390/guides)
### USB Micro-B Breakout Board

[USB Micro-B Breakout Board](https://www.adafruit.com/product/1833)
Simple but effective - this breakout board has a USB Micro-B connector, with all 5 pins broken out. Great for pairing with a microcontroller with USB support, or adding USB 5V power to a project.  
  
We use a micro-B connector with through-hole shielding pads for an excellent strong...

In Stock
[Buy Now](https://www.adafruit.com/product/1833)
[Related Guides to the Product](https://learn.adafruit.com/products/1833/guides)

## Related Guides

- [Adafruit Circuit Playground Express](https://learn.adafruit.com/adafruit-circuit-playground-express.md)
- [Adafruit PAM8302 - Mono 2.5W Class D Audio Amplifier](https://learn.adafruit.com/adafruit-pam8302-mono-2-5w-class-d-audio-amplifier.md)
- [Professor Bubbleton’s Breathing Head in a Jar](https://learn.adafruit.com/professor-bubbleton-s-breathing-head-in-a-jar.md)
- [Magic Wand](https://learn.adafruit.com/magic-wand.md)
- [Zelda: Breath of the Wild – 3D Printed Bladesaw](https://learn.adafruit.com/bladesaw.md)
- [Monster M4SK Antenna Eyes](https://learn.adafruit.com/antenna-eyes.md)
- [Make It Plot](https://learn.adafruit.com/make-it-graph-plot.md)
- [No-Solder Faux Neon Bike Lights](https://learn.adafruit.com/no-solder-faux-neon-bike-lights.md)
- [Make It Sound](https://learn.adafruit.com/make-it-sound.md)
- [HalloWing M4 Animated Eye Candy Bowl](https://learn.adafruit.com/hallowing-m4-candy-bowl.md)
- [Space Shuttle Discovery Solder Kit by Phyx](https://learn.adafruit.com/space-shuttle-discovery-solder-kit.md)
- [Drone Claw](https://learn.adafruit.com/drone-claw.md)
- [Slider Crank Mechanism -- from Cardboard and Craft Sticks](https://learn.adafruit.com/cardboard-slider-crank.md)
- [MUNNY Glowing Friend with Bluetooth Control!](https://learn.adafruit.com/munny-lamp.md)
- [Easter Egg Light Stand](https://learn.adafruit.com/easter-egg-light-stand.md)
- [Double-sided PCB Milling](https://learn.adafruit.com/double-sided-pcb-milling.md)
- [The Scream: Interactive Screaming Painting](https://learn.adafruit.com/the-scream-munch-screaming-interactive-scream-painting.md)
