Qwiic Speaker Amp (TPA2016D2) Hookup Guide

Pages
Contributors: QCPete, bboyho
Favorited Favorite 2

Introduction

The SparkFun Qwiic Speaker Amp includes the Texas Instruments TPA2016D2 stereo, filter-free class-D audio power amplifier. Its efficient class-D operation also means low heat and long battery life when driving 4Ω speakers at up to 2.8W in stereo, and 8Ω speakers at up to 1.7W in stereo. It won't shake a stadium but it will provide plenty of volume for your audio projects.

SparkFun Qwiic Speaker Amp

SparkFun Qwiic Speaker Amp

DEV-20690
$10.95

Required Materials

To follow along with this tutorial, you will need the following materials at a minimum. You may not need everything though depending on what you have. Add it to your cart, read through the guide, and adjust the cart as necessary.

Minimum Parts

At a minimum, you will need a cable and differential speaker with the Qwiic Speaker Amp. You will also need a power supply and some wires. This is assuming that you have a media player (i.e. smartphone, computer, or portable digital player) with a TRS audio output and the speakers have wires connected to the terminal.

DC Barrel Jack Adapter - Female

DC Barrel Jack Adapter - Female

PRT-10288
$3.50
1
Wall Adapter Power Supply - 5VDC, 2A (Barrel Jack)

Wall Adapter Power Supply - 5VDC, 2A (Barrel Jack)

TOL-15312
$6.50
2
SparkFun Qwiic Speaker Amp

SparkFun Qwiic Speaker Amp

DEV-20690
$10.95
Thin Speaker - 0.5W

Thin Speaker - 0.5W

COM-15350
$1.05
Audio Cable TRS - 1m

Audio Cable TRS - 1m

CAB-18983
$1.95
Jumper Wires Premium 6in. M/M - 2 Pack (Red and Black)

Jumper Wires Premium 6in. M/M - 2 Pack (Red and Black)

PRT-16662
$1.05
Note: Click below for a wishlist of the minimum parts.

Connecting with an Arduino

For users that want to configure the TPA2016D2 with the Arduino Library, you will need an Arduino microcontroller. We'll be using the RedBoard Plus with the ATmega328P. Make sure to add two speakers to your cart if you decide to have stereo output.

Flexible Qwiic Cable - 200mm

Flexible Qwiic Cable - 200mm

PRT-17258
$1.60
SparkFun RedBoard Plus

SparkFun RedBoard Plus

DEV-18158
$21.50
6
DC Barrel Jack Adapter - Female

DC Barrel Jack Adapter - Female

PRT-10288
$3.50
1
Wall Adapter Power Supply - 5VDC, 2A (Barrel Jack)

Wall Adapter Power Supply - 5VDC, 2A (Barrel Jack)

TOL-15312
$6.50
2
Reversible USB A to C Cable - 2m

Reversible USB A to C Cable - 2m

CAB-15424
$8.95
1
SparkFun Qwiic Speaker Amp

SparkFun Qwiic Speaker Amp

DEV-20690
$10.95
Thin Speaker - 0.5W

Thin Speaker - 0.5W

COM-15350
$1.05
Audio Cable TRS - 1m

Audio Cable TRS - 1m

CAB-18983
$1.95
Jumper Wires Premium 6in. M/M - 2 Pack (Red and Black)

Jumper Wires Premium 6in. M/M - 2 Pack (Red and Black)

PRT-16662
$1.05
Note: Click below for a wishlist when connecting an Arduino.

Accessories

There are many ways to connect to the Qwiic Speaker Amp. Below are a few accessories that you could use.

Speakers

Below are a few speakers from the catalog that you could use as an output. You will want to choose differential speakers like the following listed below (not to be confused by the piezo buzzers). Note that some speakers may perform better than others at certain frequencies while others operate around a certain frequency range. Make sure to check out the speaker's datasheet when choosing a speaker.

Speaker - 0.5W (8 Ohm)

Speaker - 0.5W (8 Ohm)

COM-09151
$2.45
Thin Speaker - 0.5W

Thin Speaker - 0.5W

COM-15350
$1.05
Speaker - PCB Mount

Speaker - PCB Mount

COM-11089
$2.10
3
Through-Hole Speaker

Through-Hole Speaker

PRT-20660
$2.95

Note that some speakers may be rated as a higher wattage (more than what the Qwiic Speaker Amp can output). Higher wattage speakers will still play sound but they won't be fully powered.

Surface Transducer - Large

Surface Transducer - Large

COM-19102
$24.95
Wide Frequency Range Speaker - 3in. (Polypropylene Cone)

Wide Frequency Range Speaker - 3in. (Polypropylene Cone)

COM-18379
$11.95 $6.95

Connectors, Wires, and Cables

For users connecting from a media player, you will need a TRS cable. Users can also make their own and wire the connection up with the TRS audio plug.

Audio Cable TRS - 1m

Audio Cable TRS - 1m

CAB-18983
$1.95

TRS Audio Plug - 3.5mm (Metal)

COM-15438
1 Retired

Depending on the connection, you will need jumper wire for the power, audio input, and/or speaker output. Below are a few wires from the catalog. Note that other wire might be too thick and may not fit the screw terminals. If the terminals on the speaker are big enough, you could also use spade quick disconnects as well.

Alligator Clip with Pigtail (4 Pack)

Alligator Clip with Pigtail (4 Pack)

CAB-13191
$3.50
Hook-up Wire 2-Conductor - Clear (22AWG-7x30, Stranded, 25ft)

Hook-up Wire 2-Conductor - Clear (22AWG-7x30, Stranded, 25ft)

PRT-18382
$5.95
Hook-up Stranded Wire - Red (22 AWG)

Hook-up Stranded Wire - Red (22 AWG)

PRT-08865
$3.50
Hook-up Stranded Wire - Black (22 AWG)

Hook-up Stranded Wire - Black (22 AWG)

PRT-08867
$3.50
Spade Connector Wire - 3ft, Female (2 Pack)

Spade Connector Wire - 3ft, Female (2 Pack)

CAB-14166
$2.10
Quick Disconnects - Female 1/4" (Pack of 5)

Quick Disconnects - Female 1/4" (Pack of 5)

PRT-14407
$0.50
Jumper Wires Premium 6in. M/M - 2 Pack (Red and Black)

Jumper Wires Premium 6in. M/M - 2 Pack (Red and Black)

PRT-16662
$1.05

For those that want to take advantage of Qwiic-enabled devices, you'll want to grab a Qwiic cable.

SparkFun Qwiic Cable Kit

SparkFun Qwiic Cable Kit

KIT-15081
$8.95
21
Qwiic Cable - 100mm

Qwiic Cable - 100mm

PRT-14427
$1.50

Qwiic Cable - 500mm

PRT-14429
1 Retired
Qwiic Cable - Breadboard Jumper (4-pin)

Qwiic Cable - Breadboard Jumper (4-pin)

PRT-14425
$1.50

Power

To power the board, you could use a separate power supply for the Qwiic Audio Amp. For installations, you could use a 5V wall wart and a barrel jack adapter. For portable applications, you could use a LiPo battery and boost converter for a constant voltage input.

Lithium Ion Battery - 1250mAh (IEC62133 Certified)

Lithium Ion Battery - 1250mAh (IEC62133 Certified)

PRT-18286
$10.95
1
SparkFun LiPo Charger/Booster - 5V/1A

SparkFun LiPo Charger/Booster - 5V/1A

PRT-14411
$17.50
3
DC Barrel Jack Adapter - Female

DC Barrel Jack Adapter - Female

PRT-10288
$3.50
1
Wall Adapter Power Supply - 5VDC, 2A (Barrel Jack)

Wall Adapter Power Supply - 5VDC, 2A (Barrel Jack)

TOL-15312
$6.50
2

Tools

To secure the wires in the screw terminals, you will need the pocket screwdriver set. Note that some screwdriver flat heads might be too large to drive the screws. The pocket screwdriver set includes a drive bit that is compatible with the screw terminals that are soldered on the Qwiic Speaker Amp. There is also another drive bit that you could use to secure wire to the barrel jack adapter as well.

Pocket Screwdriver Set

Pocket Screwdriver Set

TOL-12891
$4.50
5

You may need a soldering iron, solder, and general soldering accessories when soldering wires to the speakers or to modify the jumpers.

Soldering Iron - 60W (Adjustable Temperature)

Soldering Iron - 60W (Adjustable Temperature)

TOL-14456
$16.50
16
Solder Lead Free - 15-gram Tube

Solder Lead Free - 15-gram Tube

TOL-09163
$3.95
4
Hobby Knife

Hobby Knife

TOL-09200
$3.50
2

Wire Strippers - 20-30AWG

TOL-15220
1 Retired

Suggested Reading

If you aren't familiar with the Qwiic system, we recommend reading here for an overview if you decide to take advantage of the Qwiic connector.

Qwiic Connect System
Qwiic Connect System

We would also recommend taking a look at the following tutorials if you aren't familiar with them.

How to Power a Project

A tutorial to help figure out the power requirements of your project.

Working with Wire

How to strip, crimp, and work with wire.

I2C

An introduction to I2C, one of the main embedded communications protocols in use today.

RedBoard Plus Hookup Guide

This tutorial covers the basic functionality of the RedBoard Plus. This tutorial also covers how to get started blinking an LED and using the Qwiic system.