# Ride & Rock - DIY Bike Stereo System with 20W Speaker

## Overview

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

![](https://cdn-learn.adafruit.com/assets/assets/000/015/997/medium800/3d_printing_clips-hero.jpg?1398359964)

If you're looking for a way to geek out your ride, you can 3d print yourself this sweet bass-thumpin speaker upgrade!

![](https://cdn-learn.adafruit.com/assets/assets/000/016/005/medium800/3d_printing_parts.jpg?1398361886)

Parts:

- [20W Speakers](http://www.adafruit.com/products/1732)
- [MAX9744 Class D Amp](http://www.adafruit.com/products/1752)
- [8 x AA battery holder](http://www.adafruit.com/products/875)  
- [1k Potentiometer](http://www.adafruit.com/product/1789) 

Tools & Supplies  

- [3D Printer](http://www.adafruit.com/category/128)
- [Soldering Iron](http://www.adafruit.com/categories/84 "Link: http://www.adafruit.com/categories/84")
- [30AWG Wire Wrap](http://www.adafruit.com/product/1446 "Link: http://www.adafruit.com/product/1446")
- [NinjaFlex](http://www.adafruit.com/products/1690)
- [Male/Female Jumpers](http://www.adafruit.com/products/825 "Link: http://www.adafruit.com/products/825")
- Flat Phillips Screws with Nuts #6-32 x 1/2 in

![](https://cdn-learn.adafruit.com/assets/assets/000/016/218/medium800/3d_printing_speaker-hero.jpg?1398698604)

# Ride & Rock - DIY Bike Stereo System with 20W Speaker

## 3D Printing

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

These mounting parts were designed for a beach cruiser style bicycle. You can modify the parts with Autodesk 123D Design to fit your ride with some minor adjustments.

[Edit Design](http://www.thingiverse.com/download:2827424)
[Download STLs](http://www.thingiverse.com/thing:310062)
# Ride & Rock - DIY Bike Stereo System with 20W Speaker

## Circuit Diagram

We're only using one speaker here but you could connect two if you like (and mount them in two locations)

![](https://cdn-learn.adafruit.com/assets/assets/000/016/003/medium800/3d_printing_circuit-diagram.png?1398361728)

## Analog Control
In this project, we'll use analog control since it's the easiest way to get going with the amplifier board. By default, the amplifier breakout is in digital mode. To put it in analog mode we need to close the three solder jumpers labeled **Analog**** , AD1 **and** AD2**. ![](https://cdn-learn.adafruit.com/assets/assets/000/016/228/medium800/3d_printing_analogSolder.jpg?1398715286)

![](https://cdn-learn.adafruit.com/assets/assets/000/016/229/medium800/3d_printing_terminals-soldering.jpg?1398715316)

## Adding Terminal Blocks
The terminal blocks will be used to connect the speaker to the audio output of the MAX9744. Follow the negative and positive symbols and insert them appropriately. Solder them in to place for a solid connection. We chose the RIGHT channel.  
![](https://cdn-learn.adafruit.com/assets/assets/000/016/230/medium800/3d_printing_power-filter-capacitor.jpg?1398715359)

## Adding Capacitor
Insert the capacitor with the longer lead going into the pad marked **+** Push it in all the way and bend the leads to keep it in place while you solder it in.  
![](https://cdn-learn.adafruit.com/assets/assets/000/016/232/medium800/3d_printing_1kpot-wires.jpg?1398715482)

## 1K Potentiometer
Add pieces of shrink tuning to the wrapping wire for a safe and secure wire connection. Tin the three leads of the potentiometer to make the wrapping wire stick to the leads better. Solder the wrapping wire to the potentiometer. Position the pieces of shrink tubing over the terminal leads and use a heat source to shrink the tubing. ![](https://cdn-learn.adafruit.com/assets/assets/000/016/231/medium800/3d_printing_vol-pots-pin.jpg?1398715426)

## Volume Control
We're using a panel mount style potentiometer which is a bit bigger than the 1k pot that comes with the kit. Solder three strands of wrapping wire to the pin outs labeled **Pot. Vol.** Line up the leads of the pot with the pins to ensure turning it to the right will encase the values. Solder the far right lead of the pot to **Pot. Vol. pin 3** ## Adding Speakers
![](https://cdn-learn.adafruit.com/assets/assets/000/016/233/medium800/3d_printing_terminals.jpg?1398715872)

Since the amplifier can pump 20 watts of power, you should use some equally capable [speakers](http://www.adafruit.com/product/1732). The positive and negative connections of the speakers should align up with the terminal blocks on the side. Use a small screw driver to loosen and tighten the screws of the terminal.

In this tutorial project we're only using one speaker, which is just fine and nothing needs to be done to put the speaker in 'mono' mode, it'll just play out of one speaker only. You can also connect two speakers for 2 x the noise!  
  
To ensure a secure connection, gently yank on each wire after clamping it into the terminal block, it should be a solid connection, not possible to yank out of place. Loose wires will be a problem!

![](https://cdn-learn.adafruit.com/assets/assets/000/016/004/medium800/3d_printing_circuit.jpg?1398361788)

# Ride & Rock - DIY Bike Stereo System with 20W Speaker

## Assembly

## Amp Enclosure
Start by setting the **1k potentiometer** into the **amp-box.stl** part with the knob facing the outside. Mount the pot with the washer and screws.   
![](https://cdn-learn.adafruit.com/assets/assets/000/016/213/medium800/3d_printing_box-knob.jpg?1398698593)

![](https://cdn-learn.adafruit.com/assets/assets/000/016/214/medium800/3d_printing_snap-pieces.jpg?1398698595)

Insert the **amp-connector.stl** part to the **amp-box-cover.stl** part with the cutouts lined up. The connector clip should protrude out facing the printed side of the **amp-box-cover.stl** part.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/194/medium800/3d_printing_amp-in-box.jpg?1398698543)

![](https://cdn-learn.adafruit.com/assets/assets/000/016/196/medium800/3d_printing_ampbox-align-holes.jpg?1398698544)

Place the **MAX9744** amplifier into the **amp-box-cover.stl** part with the mounting holes lined up. Position the **amp-box.stl** part on top of the MAX9744, snapping to the **amp-box-cover.stl** part with the cutouts aligned up to the ports on the board.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/195/medium800/3d_printing_ampbox-screws.jpg?1398698544)

Use 4 Philips screws to mount the **amp-box-cover.stl** and **amp-box.stl** together, the screws should fasten the MAX9744 to both parts. Use one hand to press the three parts together while you tighten the Philips screws.

Firmly slide the **amp-clamp.stl** part into the clip of the **amp-connector.stl** part so both pieces are flush with each other.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/197/medium800/3d_printing_know-attached.jpg?1398698552)

Align up the bottom of **amp-knob.stl** part and with the **1k potentiometer** so it slides in and press it down.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/198/medium800/3d_printing_AMP-BOX-SNAP.jpg?1398698552)

Position the amp box with the power port facing the right side, and the headphone jack facing the front of the bike.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/199/medium800/3d_printing_ampbox-screw.jpg?1398698552)

Clip the fully assembled amp enclosure to the bike frame. Insert a phillips screw through the hole in both tabs and secure it with the nut. If the clamps doesn't quite match up with the radius of your bike frame, you will need to edit the model.

## Speaker Box
Hook up the wires first and then place the 20w speaker inside the **speaker-bottom.stl** part with the mounting tabs aligned up. Fasten 4 Philips screws to the holes and add a nut to secure it into place.![](https://cdn-learn.adafruit.com/assets/assets/000/016/200/medium800/3d_printing_speaker-insert.jpg?1398698559)

Align up the **speaker-bracket.stl** part to basket mounting bracket located in the front of the handle bars. Use 2 Phillips screws and nut to secure the **speaker-bracket.stl** part to the basket mounting bracket.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/201/medium800/3d_printing_ampbox-screwBrac.jpg?1398698559)

![](https://cdn-learn.adafruit.com/assets/assets/000/016/202/medium800/3d_printing_speaker-wire.jpg?1398698559)

Thread the speaker wires through the **speaker-cap.stl** part. Make sure to have a good connect with the jumper wires to the speaker's left and right terminals. Snap the **speaker-cap.stl** part into the **speaker-bottom.stl** part.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/217/medium800/3d_printing_speaker-brac.jpg?1398698602)

Attach **speaker-bracket.stl** to the front basket mount with two phillips screws and nuts.

## Power
  
![](https://cdn-learn.adafruit.com/assets/assets/000/016/215/medium800/3d_printing_battery-holder.jpg?1398698596)

Insert the **phone-battery-connector.stl** part into the **battery-clip.stl** part with the cut outs lined up. Connect the **battery-clamp.stl** part to the **phone-battery-connector.stl** part. Fit the 8 X AA Batter pack to the **battery-clip.stl** with the cable facing closest to the amp box. Use a phillips screw and nut to secure the **battery-clamp.stl** part to the top frame of the bike.

## Phone Clip
![](https://cdn-learn.adafruit.com/assets/assets/000/016/216/medium800/3d_printing_phone-clip.jpg?1398698601)

Insert the **phone-battery-connector.stl** part into the **phone-clip.stl** part with the cut outs lined up. Connect the **phone-clamp.stl** part to the **phone-battery-connector.stl** part. Use a phillips screw and nut to secure the **phone-clamp.stl** part to the handle bars. Fit your Phone to the **phone-clip.stl** part with the cables facing closest to the amp box.

![](https://cdn-learn.adafruit.com/assets/assets/000/016/219/medium800/3d_printing_hero-wide.jpg?1398698604)

Ensure all the screws are tightly fastened. The parts should not interfere with any parts of the bike frame when turning the wheeling.

Plug in the power connector to the amplifier and turn on the switch. Use a [3mm stereo audio cable](http://www.adafruit.com/products/876) to connect the MAX9744 amplifier to your audio device. Turn up the volume by turning the potentiometer and play your tunes while you cruise in style!


## Featured Products

### Stereo 20W Class D Audio Amplifier - MAX9744

[Stereo 20W Class D Audio Amplifier - MAX9744](https://www.adafruit.com/product/1752)
Pump up the volume with this 20W stereo amplifier! This slim little board has a class D amplifier onboard that can drive 2 channels of 4-8 ohm impedance speakers at 20W each. Power it with 5-12VDC using the onboard DC power jack and plug stereo line level into the 3.5mm stereo headphone jack...

In Stock
[Buy Now](https://www.adafruit.com/product/1752)
[Related Guides to the Product](https://learn.adafruit.com/products/1752/guides)
### 20W 4 Ohm Full Range Speaker

[20W 4 Ohm Full Range Speaker](https://www.adafruit.com/product/1732)
Listen up! This high power 4" diameter speaker will amp up any audio project where you need loud sound! It is 4 ohm impedance, rated for 20W continuous power. (This thing is really loud) It also has four handy mounting tabs 3 inches apart, and a grill that fits on top. The grill is to...

In Stock
[Buy Now](https://www.adafruit.com/product/1732)
[Related Guides to the Product](https://learn.adafruit.com/products/1732/guides)
### Panel Mount 1K potentiometer (Breadboard Friendly)

[Panel Mount 1K potentiometer (Breadboard Friendly)](https://www.adafruit.com/product/1789)
This **1K** potentiometer is a two-in-one, good in a breadboard or with a panel. It's a fairly standard linear taper 1K ohm potentiometer, with a grippy shaft. It's smooth and easy to turn, but not so loose that it will shift on its own. We like this one because the legs are...

In Stock
[Buy Now](https://www.adafruit.com/product/1789)
[Related Guides to the Product](https://learn.adafruit.com/products/1789/guides)
### Stereo 3.5mm Plug/Plug Audio Cable - 6 feet

[Stereo 3.5mm Plug/Plug Audio Cable - 6 feet](https://www.adafruit.com/product/876)
This basic cable comes with two 3.5mm (1/8" headphone jack size) stereo connectors. It's fairly straight forward, you'll commonly need these to connect two audio devices together.  
  
 Cable is 6 ft long.

In Stock
[Buy Now](https://www.adafruit.com/product/876)
[Related Guides to the Product](https://learn.adafruit.com/products/876/guides)
### 8 x AA battery holder with 5.5mm/2.1mm Plug and On/Off Switch

[8 x AA battery holder with 5.5mm/2.1mm Plug and On/Off Switch](https://www.adafruit.com/product/875)
Make a portable power brick with plenty of juice! Use Alkaline AA's for a 12V 3000-4000mAh power supply, or rechargeable NiMH for 2000mAh 9.6V supply. Either one is good for running electronics that have a 5V voltage regulator (thus requiring a 7V+ supply) or perhaps some motors or...

In Stock
[Buy Now](https://www.adafruit.com/product/875)
[Related Guides to the Product](https://learn.adafruit.com/products/875/guides)
### NinjaFlex - 1.75mm Diameter - Midnight Black - 0.5Kg

[NinjaFlex - 1.75mm Diameter - Midnight Black - 0.5Kg](https://www.adafruit.com/product/1690)
Looking beyond ABS? Tired of PLA? Open a world of possibilities, limited only by your imagination. NinjaFlex, a cutting-edge filament for 3D printers, is a specially formulated thermoplastic elastomer (TPE) that produces flexible prints with elastic properties. Patent pending technology allows...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1690)
[Related Guides to the Product](https://learn.adafruit.com/products/1690/guides)
### MakerBot Adafruit Edition

[MakerBot Adafruit Edition](https://www.adafruit.com/product/1292)
[Please see our post](https://www.adafruit.com/blog/2013/11/27/breaking-news-stratasys-sues-afinia-ramifications-for-the-desktop-3d-printing-industry/) - Is Adafruit going to continue to sell Stratasys/MakerBot products and use their services? **We do not know yet.**...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1292)
[Related Guides to the Product](https://learn.adafruit.com/products/1292/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)

## Related Guides

- [Adafruit 20W Stereo Audio Amplifier - MAX9744](https://learn.adafruit.com/adafruit-20w-stereo-audio-amplifier-class-d-max9744.md)
- [Overwatch Prop Gun: Lucio's Blaster Pt. 1](https://learn.adafruit.com/overwatch-lucio-gun-pt1.md)
- [Overwatch Prop Gun: Lucio's Blaster Pt. 3](https://learn.adafruit.com/overwatch-prop-gun-lucios-blaster-pt-3.md)
- [ Analog IC Insights On-the-Go by Maxim Integrated](https://learn.adafruit.com/maxim-app.md)
- [3D Printed 20w Amplifier Box](https://learn.adafruit.com/3d-printed-amp-box.md)
- [Overwatch Prop Gun: Lucio's Blaster Pt. 2](https://learn.adafruit.com/overwatch-lucio-gun-pt-2.md)
- [3D Printed Gunblade](https://learn.adafruit.com/3d-printed-gunblade.md)
- [LED Neon Signs with NeoPixels](https://learn.adafruit.com/led-neon-signs-with-neopixels.md)
- [3D Printed Tesla Cable Holder](https://learn.adafruit.com/3d-printed-tesla-cable-mount.md)
- [PyBadge Thermal Camera Case](https://learn.adafruit.com/pybadge-thermal-camera-case.md)
- [Desk Calculator with CircuitPython](https://learn.adafruit.com/desk-calculator-with-circuitpython.md)
- [Rezz-Inspired NeoPixel Glasses](https://learn.adafruit.com/rezz-inspired-neopixel-glasses.md)
- [DIY Custom American Girl Doll Prosthetics](https://learn.adafruit.com/diy-custom-american-girl-doll-prosthetics.md)
- [How to Use PVA Filament](https://learn.adafruit.com/how-use-to-pva.md)
- [LED Drone Matrix](https://learn.adafruit.com/led-matrix-drone.md)
