Build it step by step
0 of 8 doneCheck the supply
Measure 5 V at the USB breakout.
Wire the power
5V and GND to the amplifier.
Wire the input
Jack left, right and ground to the amplifier input.
Add the volume pot
Between the jack and the amplifier.
Wire the speakers
Both wires of each speaker to its own channel.
Turn volume to minimum
Then connect the phone.
Play a quiet song
Raise the volume slowly.
Build the box
Mount each speaker in a closed box.
How do you build an USB-powered desk speakers?
A small stereo amplifier board drives two speakers from a phone cable and a USB supply. You need PAM8403 stereo amplifier module, Speaker 4 Ω 3 W × 2, Audio jack 3.5 mm (PCB, stereo), Micro USB breakout board, 5 V 2 A USB adapter and Potentiometer 10 kΩ. It takes 8 steps and about 90 minutes.
- Level
- Beginner
- Time
- About 90 min
- Parts
- 6
Parts list
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| USB breakout 5V | Amplifier VCC | Use short, thick wires |
| USB breakout GND | Amplifier GND | Power ground |
| Audio jack left | Amplifier L input | Through a 10 kohm volume pot, or the board pot |
| Audio jack right | Amplifier R input | Same, second channel |
| Audio jack ground | Amplifier input GND | Signal ground |
| Left speaker | Amplifier L+ and L- | Both speaker wires to the amplifier |
| Right speaker | Amplifier R+ and R- | Both speaker wires to the amplifier |
| Speaker minus wires | Not to ground | The outputs are bridged, never ground them |
Code
The PAM8403 is a small stereo class-D amplifier chip on a board that runs from 5 volts. Because it is class-D it makes much less heat than older linear amplifiers and it is efficient enough to run from a USB adapter. The outputs are bridged, which means both speaker wires are driven and neither one is ground: connect each speaker with both wires to the plus and minus terminals of its channel, and never connect either output to ground or to the other channel. Power the board from a 5 volt adapter with a micro USB breakout and use short thick wires so the supply does not drop when the music gets loud. The audio comes in through a stereo jack, and a volume knob is either the little pot on the board or a 10 kilohm pot between the jack and the input. Start at the minimum volume, since a phone output can be surprisingly loud. This build has no microcontroller, so it is a good first audio project. Place the speakers in a box or a baffle to improve the bass, keep the board in free air so it can cool, and do not run it at full power for long.
No code is needed. This is an audio build with no microcontroller. Power check before connecting speakers 1. Plug the adapter into the USB breakout and measure 5 V between VCC and GND. 2. Switch off the adapter before wiring the speakers. Listening checks 1. Turn the volume to the minimum before you play anything. 2. Play a quiet song from the phone. 3. Raise the volume slowly. Stop if you hear crackling or if the board gets hot. Notes - The board has a class-D amplifier, so the speaker outputs are not ground. Connect both wires of each speaker to the amplifier, never to a shared ground or to each other. - Each channel gives about 3 W into 4 ohm at 5 V, which is loud in a small room. - A shared USB supply that is also powering a laptop can add hum. Use a separate adapter.
Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| Power on, no audio | Silent, no hum |
| Phone playing, volume low | Clear quiet sound |
| Left cable only | Sound from the left speaker only |
| Volume raised | Louder without crackling |
| After ten minutes | Board warm, not hot |
If it does not work
No sound
Check the 5 V supply and the input ground.
Crackling
The supply is too weak, use a 2 A adapter and shorter wires.
Hum
A ground loop, use a separate adapter or a battery.
Only one speaker
Check that channel wiring.
Board very hot
Lower the volume and turn off, check for a shorted speaker wire.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the USB-powered desk speakers?
PAM8403 stereo amplifier module, Speaker 4 Ω 3 W × 2, Audio jack 3.5 mm (PCB, stereo), Micro USB breakout board, 5 V 2 A USB adapter and Potentiometer 10 kΩ.
How long does the USB-powered desk speakers take to build?
About 90 minutes for a beginner maker, in 8 steps.
How do I know the USB-powered desk speakers works?
Power on, no audio: Silent, no hum. Phone playing, volume low: Clear quiet sound. Left cable only: Sound from the left speaker only.
No sound: what should I check?
Check the 5 V supply and the input ground.
Crackling: what should I check?
The supply is too weak, use a 2 A adapter and shorter wires.
Hum: what should I check?
A ground loop, use a separate adapter or a battery.
Only one speaker: what should I check?
Check that channel wiring.
