Assembly and first power-on
Build the electronics on the bench first. Then test each stage with the speakers disconnected before anything goes into the box.
1. Prepare the boards
- DAC (UDA1334A). Solder the pin header. It needs no jumpers or pads; 3VO stays unconnected.
- Amplifier (MAX98306).
- Set the gain to 12 dB on the gain jumper; the board ships at 9 dB, which is safe but quieter (see Gain and signal level). On a TPA2012 instead, bridge G1 to GND and leave G0 open (12 dB); the board ships at 24 dB. Do this now, before the amplifier ever sees a signal.
- Solder the input/power header and the screw terminals or wires for the speaker outputs.
- Solder the 470–1000 µF capacitor across VDD/GND, stripe (−) to GND.
- Radxa ZERO 3W. Solder the 40-pin header if it came unpopulated.
2. Flash and boot without audio hardware
Do the software setup (Device setup) with nothing attached to the header. A board that boots, joins Wi-Fi and shows hci0 proves the base works, before wiring can confuse the picture.
ip link show wlan0 # Wi-Fi interface present
bluetoothctl show # "Powered: yes", an address that is not 00:00:...3. Connect the DAC and test it
Power off, wire the DAC as in Wiring, and boot. install.sh --dac=uda1334a has added the UDA1334A overlay (reboot once if it asked you to).
aplay -l # a card named UDA1334A
speaker-test -D boombox -c 2 -t sine -f 440 -l 1Plug headphones into the DAC's 3.5 mm jack: you hear a 440 Hz tone on the left and then the right. If you hear nothing, see Troubleshooting → no sound.
4. Connect the amplifier, speakers last
- Power off. Wire the amplifier's power, the enable line and the DAC outputs, as in Wiring.
- Connect one driver to the left output.
- Boot. Set the volume limit to 50 % in the web interface first, then run
speaker-test -D boombox -c 2 -t sine -f 440 -l 1. The tone plays on the left driver only. - Connect the right driver. Repeat, and check that both sides play.
- Play music from a phone. Raise the volume limit as described in Gain and signal level, but stop below audible distortion (about 90 % with the MAX98306 at 12 dB, 80 % with the TPA2012 at 12 dB).
5. Enable amplifier standby (optional)
If the amplifier's SD pin (SDL/SDR on a TPA2012) is wired to pin 15:
sudo sed -i 's/^# BOOMBOX_AMP_GPIO=.*/BOOMBOX_AMP_GPIO=gpiochip3:8/' /etc/boombox/agent.env
sudo systemctl restart boombox-agentThen set Settings → Audio → Standby to, for example, 15 minutes. After that much silence the amplifier switches off, and it switches on again as soon as a phone plays. To check the line: gpioinfo gpiochip3 | grep -w 8 shows output active-high while the speaker is on.
6. Into the enclosure
- Mount each driver airtight in its own sealed chamber, filled loosely with damping material. Size the chambers for 3-inch drivers (see Enclosure), and measure the drivers' cutout and depth before you build.
- Mount the boards in a separate compartment with some ventilation. Use M2 standoffs; the Radxa ZERO 3W has two mounting holes.
- Route the speaker wires through tight, sealed holes; air leaks cost bass.
- Keep the Radxa's antenna side away from the driver magnets and any metal. Inside a closed box an external antenna on the U.FL connector reaches much further; it is used only after
install.sh --antenna=externaland a reboot. - Bring the USB-C socket to the outside, or use a panel-mount USB-C extension rated for 3 A.
- Put a label with the setup secret printed by
install.shon the bottom of the box. It is the setup network's Wi-Fi password and theownerlogin, and it stays valid after a factory reset.