# Boombox Beach Bag with Audio Amp and Speakers

## Overview

http://youtu.be/ovPgqgNYxGg

![](https://cdn-learn.adafruit.com/assets/assets/000/015/409/medium800/3d_printing_bag-hero.jpg?1395155980)

Summer is coming up, so why not build a project just for the beach? Upgrade your old beach bag into a hi-tech beat blastin' bag with one of our mini stereo amplifiers and mini speakers.  
You can use either the:

- [TS2012 stereo amplifier](http://www.adafruit.com/products/1552 "Link: http://www.adafruit.com/products/1552")  
- [MAX98306 stereo amplifier](http://www.adafruit.com/products/987)

We'll be using the MAX98306 in this tutorial.  
![](https://cdn-learn.adafruit.com/assets/assets/000/015/410/medium800/3d_printing_hero.jpg?1395156009)

A flexible 3d printed enclosure will hold the electronics and this [3.7 watt amp](http://www.adafruit.com/products/987) will power a pair of these [3W stereo enclosures speakers](http://www.adafruit.com/products/1669).

![](https://cdn-learn.adafruit.com/assets/assets/000/015/453/medium800/3d_printing_comp-parts.jpg?1395169709)

## Parts & Supplies

- [Stereo 3.7w class D amplifier](http://www.adafruit.com/products/987)
- [Stereo enclosured 3W speakers](http://www.adafruit.com/products/1669 "Link: http://www.adafruit.com/products/1669")
- [Lithium Polymer 1200mAh battery](http://www.adafruit.com/products/258 "Link: http://www.adafruit.com/products/258")
- [JST Extension cable](http://www.adafruit.com/products/1131 "Link: http://www.adafruit.com/products/1131")
- [Slide Switch](http://www.adafruit.com/products/805 "Link: http://www.adafruit.com/products/805")
- [3.5m Plug to Pintail audio cable](http://www.adafruit.com/products/1700 "Link: http://www.adafruit.com/products/1700")
- [Male/Female Jumper wires](http://www.adafruit.com/products/824 "Link: http://www.adafruit.com/products/824")

## Tools

- [Wire Strippers](http://www.adafruit.com/products/527)
- [3D Printer](http://www.adafruit.com/category/128)
- [Soldering Iron](http://www.adafruit.com/category/8_84)
- [PanaVise](http://www.adafruit.com/products/151)
- [NinjaFlex filament](http://www.adafruit.com/products/1690)

# Boombox Beach Bag with Audio Amp and Speakers

## 3D Printing

![](https://cdn-learn.adafruit.com/assets/assets/000/015/412/medium800/3d_printing_3d-parts.jpg?1395158595)

[Download STLs](http://www.thingiverse.com/thing:274815)
## NinjaFlex filament
The enclosure design was optimized for printing with flexible material like [ninjaflex](http://www.adafruit.com/products/1690), filaflex or makerbot flexible filament. The lip tightly grips onto the box, making a secure enclosure for the components. The tabs on the corners allow you to easily pin the enclosure to any type of textile.  
  
For tips and more detail, check out our guide on [getting started](http://learn.adafruit.com/3d-printing-with-ninjaflex) with NinjaFlex.# Boombox Beach Bag with Audio Amp and Speakers

## Circuit Diagram

![](https://cdn-learn.adafruit.com/assets/assets/000/015/509/medium800/3d_printing_circuit-layout.jpg?1395327141)

The circuit diagram above illustrates how the components connect together. Although the components aren't to scale, the outline of the beach bag gives you an idea of where to place the components.

## Beach Bag Wiring
Depending on the design of the beach bag, you will need to plan the location of the speakers and amplifier. Our beach bag has two pockets on the side and one in the middle. The two speakers can fix inside the left and right pocket while the audio playing device can rest in the middle pocket. The amplifier enclosure will be pined to the inside of the bag, right bend the middle pocket.   
# Boombox Beach Bag with Audio Amp and Speakers

## Assembly

![](https://cdn-learn.adafruit.com/assets/assets/000/015/505/medium800/3d_printing_jumpers-board2.jpg?1395323209)

Start by mounting the MAX98306 to a panavise or third-helping-hand. Tin the pins listed below with solder to the board. Using a small piece of wrapping wire, solder one end to **R-** and the other to **L-** on the MAX98306 board.

## TPA2016
VDD  
GND  
R+  
L+  
R-  
L-  
Right+  
Right-  
Left+  
Left-  
## Pin Reference
The list below is a reference for the wire connections. ![](https://cdn-learn.adafruit.com/assets/assets/000/015/506/medium800/3d_printing_amp2-soldered.jpg?1395323602)

## Add Gain Selection

Use [third hand](http://www.adafruit.com/products/291) to help hold the 2x4 pin header for gain selection to the top of the board as shown below. 
![](https://cdn-learn.adafruit.com/assets/assets/000/015/510/medium800/3d_printing_solder-gains.jpg?1395327380)

## Powering the Amplifier
To power the amplifier, we'll need to cut the female end of the JST extension cable and solder it to the **VDD** and **GND** pin. To make powering efficient, we'll create a slide switch adapter to make the lithium polymer battery turn off and on with the slide switch using another JST extension cable.  
![](https://cdn-learn.adafruit.com/assets/assets/000/015/469/medium800/3d_printing_power-switch-circuit.jpg?1395178186)

## Slide Switch Adapter
Use a JST extension cable to create a slide switch adapter. The positive cable will split a connection to the two terminals of the slide switch. You will need to shorten the length of the JST extensions as short as possible. To avoid soldering the JST extension that is connected to the switch, use another JST extension to solder into **VDD** and **GND** pins. ![](https://cdn-learn.adafruit.com/assets/assets/000/015/507/medium800/3d_printing_soldered-mx98306.jpg?1395323639)

## 3.5mm Stereo Plug to Pigtail
Use a wire stripper to expose a small piece of each wire at the end of the cable. The white wire needs to be soldered to the **L+ pin**. The red wire will connect to the **R+ pin**. The black wire connects to the **L- pin**. You will need to jump the **R-** and **L-** pins with a separate wire.  
## Stereo Speaker Set
A male jumper wire soldered to each channel allows you to quickly connect and disconnect the speakers. Female jumper cables will need to be soldered to the **left+** and **right+** pins on the TPA2016. Each channel will need a red and black wire soldered to the pin.   
## Modify Speakers
Snip off the connector at the end of the speaker set. Use a wire stripper to exposure each wire. Tin the exposed wires to make the connections easier. Solder the male jumper cables to each of the speaker wires. Use a piece of shrink tubing to secure the soldered connections.![3d_printing_tin-speaker.jpg](https://cdn-learn.adafruit.com/assets/assets/000/015/420/medium640/3d_printing_tin-speaker.jpg?1395159145)

![3d_printing_speaker-wires.jpg](https://cdn-learn.adafruit.com/assets/assets/000/015/421/medium640/3d_printing_speaker-wires.jpg?1395159172)

![3d_printing_cut-speaker-wire.jpg](https://cdn-learn.adafruit.com/assets/assets/000/015/503/medium640/3d_printing_cut-speaker-wire.jpg?1395322721)

![](https://cdn-learn.adafruit.com/assets/assets/000/015/422/medium800/3d_printing_headphone-cable.jpg?1395159379)

## Wiring the amplifier enclosure
Place the 1200mAh lithium polymer battery inside the enclosure. Stretch the hole in the center side of the enclosure and squeeze the headphone plug through. ![](https://cdn-learn.adafruit.com/assets/assets/000/015/508/medium800/3d_printing_amp2-board-install.jpg?1395325109)

Thread each of the female jumper wires one by one through the same hole. Pull all the wires through until the amplifier can fit inside the enclosure, on top of the lithium polymer battery.

![](https://cdn-learn.adafruit.com/assets/assets/000/015/511/medium800/3d_printing_slide-switch2.jpg?1395328985)

Carefully position the slide switch adapter into the rectangle hole located on the side of the enclosure. Gently adjust and arrange the wires so they aren't bunched up. You should be able to fit all the components and cover the lid.

![](https://cdn-learn.adafruit.com/assets/assets/000/015/481/medium800/3d_printing_hero.jpg?1395182517)

## Testing Circuit
Plug in the speaker wires to the female jumpers that are soldered to the amplifier. Ensure the negative and positive wire match up. Slide the switch on and plug an audio device to the 3.5mm stereo cable. ![](https://cdn-learn.adafruit.com/assets/assets/000/015/424/medium800/3d_printing_cut-holes.jpg?1395159605)

## Beach Bag Wiring
The shortest distance of the speaker wiring to the amplifier is near the bottom of the side pockets. Use scissors or a cutting blade to cut/poke a hole in the bag small enough to fit the wires through. ![](https://cdn-learn.adafruit.com/assets/assets/000/015/427/medium800thumb/3d_printing_jumper-pull.jpg?1448311540)

Pull the wires all the way through until the speakers are right up against the inside of the pocket. The excess speaker wire can be tucked away or hidden with tape or whatever else you can think of.

![](https://cdn-learn.adafruit.com/assets/assets/000/015/452/medium800/3d_printing_pin-pads.jpg?1395168690)

## Attaching Amplifier Enclosure
The enclosure has tabs on the sides for easily safety pinning to textiles. For a more permanent and stable installation, sew the tabs into the textile.  
![](https://cdn-learn.adafruit.com/assets/assets/000/015/425/medium800/3d_printing_safty-pin.jpg?1395159919)

Wires run along the bottom of the bag with the slide switch positioned near the middle, facing the top of the bag for easy access. Flip the switch on and plug in your phone or audio player in and test it out!

![](https://cdn-learn.adafruit.com/assets/assets/000/015/426/medium800/3d_printing_cabling.jpg?1395159932)

Take this beach blasting bag to the next level and attach a flexible solar panel to keep the tunes rocking for hours! Follow the [Solar Charging Bag tutorial](http://learn.adafruit.com/solar-charging-handbag) for all the steps need.

![](https://cdn-learn.adafruit.com/assets/assets/000/015/429/medium800/3d_printing_solar-panle.jpg?1395162117)


## Featured Products

### Stereo 3.7W Class D Audio Amplifier - MAX98306

[Stereo 3.7W Class D Audio Amplifier - MAX98306](https://www.adafruit.com/product/987)
This incredibly small stereo amplifier is surprisingly powerful - able to deliver 2 x 3.7W channels into 3 ohm impedance speakers. Inside the miniature chip is a class D controller, able to run from 2.7V-5.5VDC. Since the amp is a class D, its incredibly efficient (over 90% efficient when...

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

[Stereo Enclosed Speaker Set - 3W 4 Ohm](https://www.adafruit.com/product/1669)
Listen up! This set of two 2.8" x 1.2" speakers are the perfect addition to any audio project where you need 4 ohm impedance and 3W or less of power. We particularly like these speakers as they are small and enclosed for good audio volume and quality. The pair have a handy SPK input...

In Stock
[Buy Now](https://www.adafruit.com/product/1669)
[Related Guides to the Product](https://learn.adafruit.com/products/1669/guides)
### Right-Angle 3.5mm Stereo Plug to Pigtail Cable

[Right-Angle 3.5mm Stereo Plug to Pigtail Cable](https://www.adafruit.com/product/1700)
One of the most common converter cables you'll want in your cable collection - this 32" long cable converts a standard 3.5mm stereo jack to pigtail wires. Ground ring is black, middle ring is white and tip is red.  
  
 Cable is 32"/81cm long from end to end.  
<br...></br...>

In Stock
[Buy Now](https://www.adafruit.com/product/1700)
[Related Guides to the Product](https://learn.adafruit.com/products/1700/guides)
### Breadboard-friendly SPDT Slide Switch

[Breadboard-friendly SPDT Slide Switch](https://www.adafruit.com/product/805)
These nice switches are perfect for use with breadboard and perfboard projects. They have 0.1" spacing and snap in nicely into a solderless breadboard. They're easy to switch no matter what size fingers you have, but not so easy that they'll get flipped by accident. Work great as...

In Stock
[Buy Now](https://www.adafruit.com/product/805)
[Related Guides to the Product](https://learn.adafruit.com/products/805/guides)
### 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)
### Lithium Ion Polymer Battery - 3.7v 1200mAh

[Lithium Ion Polymer Battery - 3.7v 1200mAh](https://www.adafruit.com/product/258)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of 1200mAh for a total of about 4.5 Wh. If you need a larger battery, <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/258)
[Related Guides to the Product](https://learn.adafruit.com/products/258/guides)
### Premium Female/Male 'Extension' Jumper Wires - 40 x 3" (75mm)

[Premium Female/Male 'Extension' Jumper Wires - 40 x 3" (75mm)](https://www.adafruit.com/product/825)
Handy for making wire harnesses or jumpering between headers on PCB's. These premium jumper wires are approximately 3" (75mm) long and come in a 'strip' of 40 (4 pieces of each of ten rainbow colors). They have 0.1" male header contacts on one end and 0.1" female...

In Stock
[Buy Now](https://www.adafruit.com/product/825)
[Related Guides to the Product](https://learn.adafruit.com/products/825/guides)
### "Wire Wrap" Thin Prototyping & Repair Wire - 200m 30AWG Blue

["Wire Wrap" Thin Prototyping & Repair Wire - 200m 30AWG Blue](https://www.adafruit.com/product/1446)
This stuff is called "wire-wrap wire" because it used to be used for wire-wrapping high-speed digital circuits on a special kind of contact board. It's pretty rare to see wire-wrapping in these days of low-cost PCB fabrication but the wire is still really handy for prototyping work. It's...

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

## Related Guides

- [Raspberry Gear](https://learn.adafruit.com/raspberry-gear.md)
- [Adafruit TPA2012 2.1W Stereo Audio Amplifier](https://learn.adafruit.com/adafruit-ts2012-2-8w-stereo-audio-amplifier.md)
- [Trinket Audio Player](https://learn.adafruit.com/trinket-audio-player.md)
- [Overwatch Prop Gun: Lucio's Blaster Pt. 2](https://learn.adafruit.com/overwatch-lucio-gun-pt-2.md)
- [3D Printed Bone Conduction Transducer Box](https://learn.adafruit.com/3d-printed-bone-conduction-transducer-box.md)
- [Mini Mac Pi](https://learn.adafruit.com/mini-mac-pi.md)
- [Pathfinder Robot Companion](https://learn.adafruit.com/pathfinder.md)
- [Adafruit VS1053 MP3/AAC/Ogg/MIDI/WAV Codec Breakout Tutorial](https://learn.adafruit.com/adafruit-vs1053-mp3-aac-ogg-midi-wav-play-and-record-codec-tutorial.md)
- [Flora-Powered TARDIS Costume (for Dogs!)](https://learn.adafruit.com/wearable-flora-powered-tardis-costume-dogs.md)
- [Electronic Demon Costume](https://learn.adafruit.com/electronic-demon-costume.md)
- [Overwatch Prop Gun: Lucio's Blaster Pt. 3](https://learn.adafruit.com/overwatch-prop-gun-lucios-blaster-pt-3.md)
- [Han Solo Blaster Cosplay](https://learn.adafruit.com/han-solo-blaster-cosplay.md)
- [Wave Shield Voice Changer](https://learn.adafruit.com/wave-shield-voice-changer.md)
- [ Analog IC Insights On-the-Go by Maxim Integrated](https://learn.adafruit.com/maxim-app.md)
- [FunHouse 3D Printed Stand](https://learn.adafruit.com/funhouse-3d-printed-stand.md)
