# Stereo 3.7W Class D Audio Amplifier

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/003/718/medium800/components_2013_01_24_IMG_1254-1024.jpg?1396801098)

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 driving an 8Ω speaker at over a Watt).  
  
This amplifier is perfect for portable and battery-powered projects. It has built in thermal and over-current protection, but you really have to drive it hard before it even gets warm! This board is a welcome upgrade to basic "LM386" amps!

## Specifications:

- Output Power: 3.7W at 3Ω, 10% THD, 1.7W at 8Ω, 10% THD, with 5V Supply
- Passes EMI limit unfiltered with up to 12 inches (30 cm) of speaker cable
- High 83dB PSRR at 217Hz
- Spread-Spectrum Modulation and Active Emissions Limiting
- Differential Inputs
- Five pin-selectable gains: 6dB, 9dB, 12dB, 15dB and 18dB. Select with a jumper or by setting the G and G' breakout pins (see [schematic for breakout board showing gain pin settings](http://www.adafruit.com/datasheets/MAX98306schem.png) for details)
- Excellent click-and-pop suppression
- Thermal and short-circuit/over-current protection
- Low current draw: 2mA quiescent and 10uA in shutdown mode

## What is a Class D Amplifier?
  
A Class D Amplifier uses PWM to generate high-frequency square waves with a duty-cycle proportional to the voltage level of the input audio signal. By minimizing the transition time between fully on and fully off, the MOSFET drivers are able to operate at a very high efficiency. Class D amplifiers such as this one typically operate at over 90% efficiency, compared to efficiencies of 50% or less for typical class AB amplifiers.  
  
The high frequency square-wave component of the output signal is filtered by the inductance of the speaker voice coil, leaving only the amplified audio signal.  
  
# Other Audio amps available at Adafruit
  
We have a few choices of audio amplifiers, here's how you can compare them  
  

- [MAX98306](http://www.adafruit.com/products/987) - This class D audio amplifier has selectable gains of 6dB, 9dB, 12dB, 15dB and 18dB that you can choose with a jumper. It can do up to 3.7W into 3Ω, 2.8W into 4Ω and 1.7W into 8Ω. However, you cannot shut down each speaker separately. Its a good choice where you don't mind setting the gain with a jumper and if you do not need to ever turn off only one audio channel and you do not need more than 18dB. Its an excellent amplifier that can driver down to 3Ω speakers  
Like the TS2012, it has differential inputs, bridge tied outputs, and can run from 2.7V to 5.5V  
  
- [TS2012](http://www.adafruit.com/products/1552) - This class D audio amplifier has selectable gains of 6dB, 12dB, 18dB and **24dB** that you can choose with a jumper (the MAX98306 goes up to 18dB only). It can do up to 2.8W into 4Ω and 1.7W into 8Ω. It cannot drive 3Ω. You can shut down each channel separately. Setting the gain is easy on the onboard DIP switches. Its a good choice where you don't need to drive 3Ω speakers or if you ever want to turn off only one audio channel. If you need 24dB gain this amp can do it.  
Like the MAX98306, it has differential inputs, bridge tied outputs, and can run from 2.7V to 5.5V  

  
  
**[Available from Adafruit!](https://www.adafruit.com/products/987)**# Stereo 3.7W Class D Audio Amplifier

## Assembly

![](https://cdn-learn.adafruit.com/assets/assets/000/003/726/medium800/components_987_LRG.jpg?1396801170)

The amplifier breakout board is fully assembled and tested. To easily integrate the amplifier into your project, we include the following:  

- A 9-pin header for use with breadboard or connectors  
- 3.5mm screw-terminal blocks for your speakers  
- A 2x4 header + jumper for setting the gain

## Solder the header:
Cut the header to size (9 pins) and insert it into a breadboard (long pins down!) to hold it steady.![components_2013_01_18_IMG_1218-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/719/medium640/components_2013_01_18_IMG_1218-1024.jpg?1396801102)

## For breadboard use:
Place the amplifier module face-up over the headers. Prop the back-edge up with the leftover header strip to align it.![components_2013_01_18_IMG_1219-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/720/medium640/components_2013_01_18_IMG_1219-1024.jpg?1396801109)

## For use with connectors:
If you are going to build this into a project and want to connect from the front side, place the amplifier module face down for soldering.![components_2013_01_18_IMG_1220-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/721/medium640/components_2013_01_18_IMG_1220-1024.jpg?1396801116)

## And Solder!
For tips on soldering, see our [Adafruit Guide to Excellent Soldering.](http://learn.adafruit.com/adafruit-guide-excellent-soldering "Link: http://learn.adafruit.com/adafruit-guide-excellent-soldering")![components_2013_01_18_IMG_1222-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/723/medium640/components_2013_01_18_IMG_1222-1024.jpg?1396801133)

## Add Gain Selection and Speaker Terminals
Solder the 2x4 pin header for gain selection to the top of the board as shown. Also solder in the 3.5mm screw terminals for the speakers.![components_2013_01_26_IMG_1278-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/724/medium640/components_2013_01_26_IMG_1278-1024.jpg?1396801142)

# Stereo 3.7W Class D Audio Amplifier

## Connections and Settings

## Inputs:
The amplifier inputs are coupled via 1.0uF capacitors so they can handle single ended or differential signals.   
  
For Single Ended signals (shown on left), connect:  

- R+ to R+  
- GND to R-  
- L+ to L+  
- GND to L-

For differential signals, connect:  

- R+ to R+  
- R- to R-  
- L+ to L+  
- L- to L-

For volume control, a dual 50K audio taper pot can be wired in series with the inputs as shown.  
![components_Inputs.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/730/medium640/components_Inputs.jpg?1396801185)

## Outputs:
**T**** his amplifier is designed to drive moving coil loudpeakers only. Speaker impedence must be 3ohms or more.** The output signal is a 360KHz PWM square wave with a duty cycle proportional to the audio signal. The inductance of the speaker coil serves as a low-pass filter to average out the high-frequency components. Do not try to use this as a pre-amplifier.  
  
The outputs of _each channel_ are "Bridge-Tied" with no connection to ground. This means that for each of the two channels, the + and - alternate polarity to create a single channel amplifier with twice the available power.   
However, that means **you cannot bridge R and L together** , so don't try to connect ROUT to LOUT, it will damage the amp! If you only need one speaker, just connect to either ROUT _or_ LOUT and leave the other output set alone  
  
Connect your speakers using the 3.5mm screw-terminal blocks.  
![components_Speakers_bb-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/735/medium640/components_Speakers_bb-1024.jpg?1396801221)

## Gain:
Gain is configurable for 9, 12, 15 or 18 dB. For higher level outputs such as from a WaveShield, you will want to select a lower gain. For low-level outputs such as from an iPod or MP3 player, a higher gain setting works best. To set the gain, install the jumper in one of the 4 marked positions on the 4x2 header.  
![components_2013_01_26_IMG_1273-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/736/medium640/components_2013_01_26_IMG_1273-1024.jpg?1396801231)

## Power:
The amplifier can be powered by 2.7 to 5.5v DC. Good power sources are:  

- [5v 2A power supply](http://www.adafruit.com/products/276)  
- [3xAA (4.5v) battery holder](http://www.adafruit.com/products/771)  

Connect the negative wire to GND and the positive wire to VDD.  
![components_Power_bb-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/737/medium640/components_Power_bb-1024.jpg?1396801237)

# Stereo 3.7W Class D Audio Amplifier

## Build a Portable Sound System

![](https://cdn-learn.adafruit.com/assets/assets/000/003/717/medium800/components_2013_01_20_IMG_1251-1024.jpg?1396801092)

## Materials:
To build a portable sound system, you will need:  

- 1 [Adafruit Stereo Class-D Amplifier](http://www.adafruit.com/products/987 "Link: http://www.adafruit.com/products/987")  
- 2 speakers (3 ohm minimum. 3" to 4" is a good size)  
- 1 [3xAA Battery Pack](https://www.adafruit.com/products/771 "Link: https://www.adafruit.com/products/771")  
- 1 [Power Switch](https://www.adafruit.com/products/482)  
- 1 Phono Jack (We used a 1/4" here)  
- 1 50kOhm Stereo Audio-taper pot  
- 1 knob  
- [Jumper wires](https://www.adafruit.com/products/266)  
- 1 Box (We used the case from a power tool. But any lunch-box sized enclosure will work as well)  
- 2 Speaker Grilles (We used some 4" fan grilles here)  
- Screws & nuts to mount the speakers.  
- Polyester batting or pillow stuffing  

  
![](https://cdn-learn.adafruit.com/assets/assets/000/003/716/medium800/components_2013_01_20_IMG_1253-1024.jpg?1396801091)

## Mount The Speakers
Cut holes in the box to fit your speakers and mount them in the box with screws. Here we used 4" speakers with 4" fan grilles and mounted them with 3/4" 6-32 machine screws and nuts.![components_2013_01_26_IMG_1274-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/738/medium640/components_2013_01_26_IMG_1274-1024.jpg?1396801246)

## Mount the Controls
Drill holes to fit your power switch, volume pot and phono jack in a convenient location and mount the controls.  
  
Here we used a 1/4" phono jack. Smaller plugs can be accomodated via adapters. Our volume pot has a Spinal-Tap compliant volume scale that "goes to eleven".![components_2013_01_24_IMG_1259-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/739/medium640/components_2013_01_24_IMG_1259-1024.jpg?1396801256)

## Wire it up!
Make all connections as shown on the diagram to the left. We used these [pre-terminated jumper wires](https://www.adafruit.com/products/266 "Link: https://www.adafruit.com/products/266") to simplify connections to the amplifier.![components_Wiring.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/741/medium640/components_Wiring.jpg?1396801265)

## Mount the Amplifier
Some double-sided foam tape will hold it securely inside the box.![components_2013_01_24_IMG_1257-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/742/medium640/components_2013_01_24_IMG_1257-1024.jpg?1396801271)

## Add some stuffing
Loosely stuff the back of the box with some polyester batting or pillow stuffing for a less 'hollow' sound.![components_2013_01_24_IMG_1261-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/744/medium640/components_2013_01_24_IMG_1261-1024.jpg?1396801281)

## Plug And Play!
For an iPod or similar player, you will want to use the highest gain setting. ![components_2013_01_20_IMG_1253-1024.jpg](https://cdn-learn.adafruit.com/assets/assets/000/003/745/medium640/components_2013_01_20_IMG_1253-1024.jpg?1396801291)

# Stereo 3.7W Class D Audio Amplifier

## Downloads

# Files

- [MAX98306 Datasheet](http://www.adafruit.com/datasheets/MAX98306.pdf)
- [Fritzing object in Adafruit Fritzing library](https://github.com/adafruit/Fritzing-Library)
- [EagleCAD PCB files on GitHub](https://github.com/adafruit/Adafruit-MAX98306-Class-D-Amp-PCB)
- [3D models on GitHub](https://github.com/adafruit/Adafruit_CAD_Parts/tree/main/987%20MAX98306%20Stereo%20Amp)

# Schematic
![](https://cdn-learn.adafruit.com/assets/assets/000/020/684/medium800/components_max98306sch.png?1414506741)

# PCB Fabrication Print

Dimensions in inches

![](https://cdn-learn.adafruit.com/assets/assets/000/020/683/medium800/components_max98306print.png?1414506716)

# 3D Models
![](https://cdn-learn.adafruit.com/assets/assets/000/121/743/medium800/components_987_MAX98306-Stereo-Amp.jpg?1686576233)


## 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)
### Rugged Metal On/Off Switch with Green LED Ring

[Rugged Metal On/Off Switch with Green LED Ring](https://www.adafruit.com/product/482)
These chrome-plated metal buttons are rugged and look real good while doing it! Simply drill a 16mm hole into any material up to 1/2" thick and you can fit these in place, there's even a rubber gasket to keep water out of the enclosure. On the front of the button is a flat metal...

In Stock
[Buy Now](https://www.adafruit.com/product/482)
[Related Guides to the Product](https://learn.adafruit.com/products/482/guides)
### Waterproof 3xAA Battery Holder with On/Off Switch

[Waterproof 3xAA Battery Holder with On/Off Switch](https://www.adafruit.com/product/771)
Keep your power source safe and toasty in these waterproof 3xAA battery holders. They're just like classic switched battery holders, but designed for survival! The case has a rubber gasket around the edge of the case (its black and hard to see in the photos but it is there) and attaches...

In Stock
[Buy Now](https://www.adafruit.com/product/771)
[Related Guides to the Product](https://learn.adafruit.com/products/771/guides)
### Premium Female/Female Jumper Wires - 40 x 6"

[Premium Female/Female Jumper Wires - 40 x 6"](https://www.adafruit.com/product/266)
Handy for making wire harnesses or jumpering between headers on PCB's. These premium jumper wires approximately 6" (150mm) long and come in a 'strip' of 40 (4 pieces of each of ten colors). They have 0.1" sockets on either end and fit cleanly next to each other on...

In Stock
[Buy Now](https://www.adafruit.com/product/266)
[Related Guides to the Product](https://learn.adafruit.com/products/266/guides)
### Rugged Metal On/Off Switch with Blue LED Ring

[Rugged Metal On/Off Switch with Blue LED Ring](https://www.adafruit.com/product/915)
These chrome-plated metal buttons are rugged and look real good while doing it! Simply drill a 16mm hole into any material up to 1/2" thick and you can fit these in place, there's even a rubber gasket to keep water out of the enclosure. On the front of the button is a flat metal...

In Stock
[Buy Now](https://www.adafruit.com/product/915)
[Related Guides to the Product](https://learn.adafruit.com/products/915/guides)
### Rugged Metal On/Off Switch with Red LED Ring

[Rugged Metal On/Off Switch with Red LED Ring](https://www.adafruit.com/product/916)
These chrome-plated metal buttons are rugged and look real good while doing it! Simply drill a 16mm hole into any material up to 1/2" thick and you can fit these in place, there's even a rubber gasket to keep water out of the enclosure. On the front of the button is a flat metal...

In Stock
[Buy Now](https://www.adafruit.com/product/916)
[Related Guides to the Product](https://learn.adafruit.com/products/916/guides)
### Rugged Metal On/Off Switch with White LED Ring

[Rugged Metal On/Off Switch with White LED Ring](https://www.adafruit.com/product/917)
These chrome-plated metal buttons are rugged and look real good while doing it! Simply drill a 16mm hole into any material up to 1/2" thick and you can fit these in place, there's even a rubber gasket to keep&nbsp;water out of the enclosure. On the front of the button is a flat metal...

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

## Related Guides

- [ Analog IC Insights On-the-Go by Maxim Integrated](https://learn.adafruit.com/maxim-app.md)
- [Raspberry Gear](https://learn.adafruit.com/raspberry-gear.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)
- [LedGames - a BeagleBone Black 64x64 LED Game](https://learn.adafruit.com/ledgames-beaglebone-black-64x64-led-game.md)
- [Overwatch Prop Gun: Lucio's Blaster Pt. 3](https://learn.adafruit.com/overwatch-prop-gun-lucios-blaster-pt-3.md)
- [Overwatch Prop Gun: Lucio's Blaster Pt. 2](https://learn.adafruit.com/overwatch-lucio-gun-pt-2.md)
- [Wave Shield Voice Changer](https://learn.adafruit.com/wave-shield-voice-changer.md)
- [Boombox Beach Bag with Audio Amp and Speakers](https://learn.adafruit.com/boombox-beach-bag-with-audio-amp-and-speakers.md)
- [3D Printed Bone Conduction Transducer Box](https://learn.adafruit.com/3d-printed-bone-conduction-transducer-box.md)
- [Electronic Demon Costume](https://learn.adafruit.com/electronic-demon-costume.md)
- [Pathfinder Robot Companion](https://learn.adafruit.com/pathfinder.md)
- [Adafruit QT 5V to 3V Shifter Breakout](https://learn.adafruit.com/adafruit-qt-5v-to-3v-shifter-breakout.md)
- [Custom Bluetooth Cherry MX Gamepad](https://learn.adafruit.com/custom-wireless-bluetooth-cherry-mx-gamepad.md)
- [Arduino Lesson 7. Make an RGB LED Fader](https://learn.adafruit.com/adafruit-arduino-lesson-7-make-an-rgb-led-fader.md)
- [Arduino Lesson 9. Sensing Light](https://learn.adafruit.com/adafruit-arduino-lesson-9-sensing-light.md)
