Overview
A commissioned wearable audio device: a small tag with its own speaker and microphone that pairs with a phone over Bluetooth. It plays music and other media, takes media controls from its buttons, and works as a hands-free unit for phone calls. NexivoLabs designed the hardware over three board revisions and wrote the firmware.
We don't name clients for commissioned work, and we only share the details each engagement allows.
Problem
A wearable audio tag puts a 2.4 GHz radio, a class-D power amplifier and a sensitive microphone on one small board, next to the battery. If the design is careless, the amplifier's switching currents show up as hiss in the microphone, the antenna is detuned by the enclosure and the body, and the battery runs flat in an afternoon.
The tag also has to work with the phone the user already owns. That ruled out anything except standard Classic Bluetooth audio profiles.
Requirements
- Play media from any phone over Bluetooth (A2DP), with play, pause, track and volume control (AVRCP)
- Answer and end calls as a hands-free unit (HFP), using the tag's own microphone and speaker
- Three physical buttons, usable without looking
- Rechargeable battery, with a power design that keeps idle drain low
- Wearable size and weight
System architecture
Hardware
Three revisions
Revision 1 started from Nordic's nRF5340 audio reference architecture. It used an nRF5340 with a Cirrus Logic CS47L63 codec and DSP, an nPM1100 power-management IC and a 5 V boost for the amplifier. The nRF5340 only supports Bluetooth LE, so this design depended on LE Audio, and most phones in use today don't support it.
Revision 2 moved to the ESP32-PICO-V3-02. That system-in-package supports Classic Bluetooth, which gives the tag the A2DP and HFP profiles every phone supports. It also puts the crystal, flash and RF matching inside the package, which saves board area. The codec and its DSP were dropped: the ESP32 handles audio processing itself, and a digital microphone feeds it directly.
Revision 3 has been started as the next iteration.
Revision 2 board
| Function | Part | Notes |
|---|---|---|
| SoC | ESP32-PICO-V3-02 | Dual-core, Classic Bluetooth + BLE, flash in package |
| Microphone | TDK T5848 | Digital MEMS microphone, I²S output, so no analogue path across the board |
| Speaker amplifier | TI TPA2005D1 | Mono class-D amplifier with an enable pin, switched off when idle |
| Charger | TI BQ24085 | Single-cell Li-ion linear charger |
| Main rail | TI TPS63900 | Buck-boost converter with very low quiescent current, holds a steady rail from full to empty battery |
| Clean rails | TI TPS7A02 / TPS7A03 | Ultra-low-quiescent LDOs for the quieter supply rails |
| Board | 4-layer, Altium Designer | Top · GND · PWR · Bottom, 100% routed |
The layer stack was chosen for audio. A solid ground plane directly under the top layer gives the antenna a clean reference and gives the amplifier's switching currents a short return path, so they don't wander under the microphone. The digital microphone helps too: its output is a digital I²S stream, which is far less sensitive to that noise than an analogue microphone trace would be.
Firmware
The firmware is built on ESP-IDF 5 and the ESP-ADF audio framework. It runs two audio pipelines that are switched depending on what the phone is doing.
Media playback. Audio arrives over A2DP, passes through a resampler and a 10-band equalizer, and goes out over I²S to the amplifier. The equalizer lifts the 125–500 Hz bands by 4 dB, which gives voices and music more body through a small speaker. When the phone reports the stream's sample rate, the firmware updates the I²S clock and the equalizer to match.
Calls. When a call's audio opens, the firmware switches the Bluetooth stream to 16 kHz mono and starts the microphone pipeline. That pipeline reads the T5848 over I²S, resamples it to 16 kHz and sends it back to the phone over HFP. Wideband speech is enabled in the Bluetooth stack, so calls aren't limited to old 8 kHz phone quality.
During a call the speaker volume is held to half the media volume, kept between 20% and 50%. The speaker and microphone sit centimetres apart on a tiny device, and without that limit the far-end caller would hear their own voice come back as echo.
Buttons
| Button | Short press | Long press |
|---|---|---|
| Play | Play / pause, or answer / end a call | — |
| Volume + | Volume up | Next track |
| Volume − | Volume down | Previous track |
The buttons are active-low with internal pull-ups and a 300 ms debounce. The play button checks the call state first, so the same button answers an incoming call, ends an active one, or toggles playback.
Results & lessons
- Revision 2 hardware is fully routed, with manufacturing files generated. The firmware handles A2DP playback with equalization, AVRCP media control from the buttons, and the HFP call flow.
- Use the Bluetooth every phone supports. LE Audio on the nRF5340 is technically elegant, but a wearable that pairs with any phone needs Classic A2DP and HFP. Moving to the ESP32 traded a little power efficiency for compatibility that actually works.
- A digital microphone simplifies the layout. Swapping the analogue microphone and codec for an I²S MEMS microphone took the most noise-sensitive trace off the board.
- Echo cancellation is the next step. Capping call volume is a stop-gap. Acoustic echo cancellation, using SpeexDSP or Espressif's audio front-end, is being evaluated so the call volume can go back up.


