Skip to main content

USB-C speaker

Assembled USB-C speaker PCB with the speaker cable plugged into J2

With the USB-C port facing you, plug the speaker straight down into J2, the white connector near the upper-left edge. Then connect the board to a computer with a USB-C data cable, and select USB AUDIO DAC in the computer’s sound output settings. Music, voice and notification sounds play through the speaker. The board mixes left and right into mono.

The CAD downloads contain the populated PCB. The assembly view above shows one way to route the speaker lead.

Download datasheet (PDF)

Playback test​

Start at low system volume. Play the short chime below to check that the sound comes from the attached speaker. The player uses your computer’s selected output.

Speaker connection​

J2 accepts the Same Sky CMS-23558N-L152B, the 8 Ω, 1 W speaker used for the tscircuitboy advance. The 23 mm diameter speaker is 5.5 mm thick. Its 152 mm lead ends in a JST SH SHR-02V-S-B cable housing. It mates with the BM02B-SRSS-TB top-entry board header (two pins, 1.0 mm pitch). Align the keyed housings and press the plug straight down. Allow room above J2 to remove the plug and leave an opening in the enclosure over the speaker.

J2 pinSpeaker wireSignal
1RedSpeaker +
2BlackSpeaker −

Both wires are driven by the amplifier. Keep both isolated from enclosure ground. The speaker’s 1 W rating describes its power handling. This board limits gain for a low-power USB port.

JST connector drawing (PDF) · Speaker dimensions and cable drawing (PDF)

Protocol​

The computer’s USB Audio Class 1 driver handles playback and identification. Use the normal audio output API in an app. The RP2350 USB Motherboard would need a USB Audio host driver to stream to this board.

OperationHost interfaceDevice behavior
IdentifyEnumerate USB devicesReports USB AUDIO DAC, VID 08BB, PID 27C4.
Play audioSelect the playback output and stream PCMAccepts 16-bit stereo at 32, 44.1 or 48 kHz. Both channels feed the speaker.
Set volumeSystem or application volume controlAdjusts playback level.
MuteSystem mute controlSilences the speaker.
SuspendUSB bus suspendDisables the amplifier.

USB audio interface datasheet · Amplifier datasheet

Mounting​

The PCB is 26 × 30 × 1.6 mm. All components mount on top of the two-layer board. J2 reaches 4.3 mm above the PCB before the speaker is plugged in. Four Ø2.2 mm holes accept M2 screws on a 20 × 20 mm grid. With J1 at the bottom and the components facing you, the hole centres are at X = 3 and 23 mm, Y = 2.5 and 22.5 mm, measured from the lower-left corner.

Mounting holes and connector locations. J1 USB-C at the bottom and the J2 speaker header near the upper-left. The isometric view identifies J2 as a 2-pin JST SH connector.

Full-size drawing · Drawing TSX · PCB source · Prototype fabrication files