Proto-1 overview: targets and decisions
This is the first of a set of posts on the first Forge prototype. This one covers why I'm building Forge, what proto-1 has to prove, the targets, and the decisions behind all three boards. I froze the design on October 28.
This post covers the design as ordered. Before any board was built, Forge's Linux audio path and processing engine were already running on the Bela, with the same codec family and one ES9080Q.
Why I'm building it
I want to run my own DSP code in my car. Car processors only run the algorithms their vendor provides, and development boards aren't built to survive in a car. The Bela is the best development board I know, and it's what gave me the idea for Forge.
Forge has two requirements. It has to survive in a car, and it has to be hackable.
What proto-1 has to prove
Proto-1 is the smallest set of hardware that can show three things:
- The outputs measure to target.
- The power is regulated and protected.
- Every channel can run arbitrary DSP code.
Proto-1 validates the platform. Music comes in through a 2-channel analog line input on the carrier board, which can also take speaker-level signals with a resistor change. Proto-2 extends the platform with a car power input, better analog inputs and an enclosure.
Targets
| Target | Value | Why |
|---|---|---|
| Outputs | 16 line outputs | Enough for three-way fronts, a center, rears and a sub, all active, with channels left over. |
| Output level | 8 VRMS at full scale, per output | Set by the output stage. Most amplifiers need 5 V or less, so 8 VRMS drives almost any of them with headroom. |
| Dynamic range | ≥ 120 dB(A) per channel | Set by the ES9080Q DAC (with DRE). Noise is what you hear first in a quiet car. |
| Crosstalk at 1 kHz* | > 100 dB | Set by the DAC, the shared supplies and the board layout. |
| THD+N* | ≤ −108 dB | Set by the DAC and the output op-amps. |
| Processing block | 512 frames at 48 kHz (10.7 ms) | Set in software. Bigger blocks leave more CPU for long filters, and 10.7 ms is fine for playback. |
| Boot to sound | ≤ 5 s | Music should start soon after the car does. |
| Input voltage | 9 to 24 V | Covers a car's 12 to 14.4 V system with margin. Both converters regulate anywhere in that range. |
| Crank ride-through | Down to 6 V input (a later power board) | Stop-start cars crank the engine at every light. The processor should ride through without rebooting. |
| Temperature | 85 °C board ambient (long-term) | Trunks get hot, and I don't want it cutting out on a summer day. |
* Reference specs, estimated. Both are unlikely to be audible, so I'll measure them but won't optimize for them.
These are targets for Forge as a whole. Proto-1 focuses on the audio and the platform, while crank ride-through and the temperature target come with later prototypes.
Two requirements aren't numbers. The outputs will stay muted through power-up, power-down and supply dips, to prevent a stray pop from damaging a speaker. Tuning will happen in a browser over USB, from Windows or Mac. The interface will be served by Forge's own Linux computer, so there's no tuning app to install.
The dynamic range target assumes the DAC's DRE (dynamic range enhancement), which lowers its noise floor on quiet passages. The datasheet warns that DRE can pop with an output stage like Forge's, so it will take some care before I can enable it.
Noise and a flat frequency response are what I care about most. With efficient tweeters in a quiet cabin, I don't want any hiss to be audible. Most of the design effort goes there: separate linear regulators on each DAC card, a hot output level, grounded muting and an isolated USB port.
Starting from the Bela
I started prototyping algorithms on a Bela Gem Multi. Bela's idea is to use the PocketBeagle 2's processor as the DSP and run Linux on it. Forge is built on the same idea.
The Bela is a great board for prototyping, and it was never meant to go in a car. My needs outgrew it:
- I need 8 VRMS at 120 dB. Its outputs run from ±5 V rails through rail-to-rail op-amps, which suits instruments and control voltages.
- I need a quiet connection to the laptop. It takes its power and ground from the host computer's USB, so host noise reaches the audio.
- I need it to run from car power, which it was never designed for.
- I need sound soon after the car starts. My Bela setup takes about 25 seconds to boot.
Bela also puts a lot of work into low latency: it reports about 1 ms from input to output. Its real-time unit moves the samples, and a real-time co-kernel runs the audio code beside Linux. Car playback doesn't need it, so Forge doesn't use Bela's software. Audio goes through the standard Linux audio stack (ALSA) instead. ALSA works in larger blocks, so the latency is higher. That's fine for playback. Active noise cancellation would need much less, but it isn't a first goal.
Forge uses the same off-the-shelf chips on the digital side: the PocketBeagle 2, the ES9080Q DAC and a TI codec. The analog stages, power, clock and audio software are its own. Because the chips match, the Linux software can be developed on the Bela in parallel with the boards, and bring-up only has to prove the hardware.
Three boards
Proto-1 is a Linux DSP with the power, the DACs and the muting hardened around it. It's three board designs: a power board, a carrier board and a DAC card. The DAC card is built twice. The PocketBeagle 2, the power board and both DAC cards plug into the carrier on 2.54 mm headers.
- Power board: the input protection, 5 V for the digital side and ±15 V for the analog side.
- Carrier board: the PocketBeagle 2, the clock, the codec, isolated USB, and the mute logic that grounds every output if a rail drops or the audio process stops.
- DAC card: one 8-channel ES9080Q with its own low-noise regulators, output stages for 8 VRMS, and a relay on every output. Two cards make 16 channels.
I split it this way so each board can be tested on its own. Bring-up adds one board at a time:
- The power board alone, on a dummy load.
- The carrier, from bench supplies.
- The carrier with the power board.
- One DAC card, then the second.
Keeping it modular makes prototyping faster. If something fails, the fault is on the board I just added, so problems are easy to isolate. I can revise one board without remaking the others. It also keeps prototyping cheap: a new carrier can reuse the same power board and DAC cards, and inputs can come later as their own modules.
Temperature and parts
The long-term target is 85 °C board ambient. I'm assuming it gets installed in a trunk or the cabin of a car. That's why I'll use the Industrial version of the PocketBeagle 2. Seven parts are rated up to 85 °C, including the PocketBeagle 2, the ES9080Q and the output relays, so they set the ceiling.
I'm not designing to automotive qualifications (AEC-Q100 for chips and AEC-Q200 for passive parts). Car makers require them for factory-installed electronics. I use automotive and higher-temperature parts where they matter, mostly on the power board. Look at the parts in other aftermarket processors and you'll see they don't use automotive-qualified parts across the board either.
Software
All of the processing runs in Linux, on the PocketBeagle 2's main processor cores. Forge has its own ES9080Q driver, a patched codec driver, and an engine that does the processing and hosts plug-ins.
Risks
- DAC margin. The dynamic range target equals the DAC's rating, so anything the card adds shows up directly.
- Temperature margin. Seven parts are rated to exactly 85 °C, the long-term target, so there's no margin there either.
- Audio dropouts. Linux has to meet every audio deadline with everything running. The real-time kernel and a 60% CPU budget per block are meant to cover it. A benchmark on the board will check it.
- Boot time. 5 s needs a trimmed Linux image, not a stock one.
- Car electrical noise. Proto-1 runs from a bench adapter, so alternator noise, load dumps and EMC won't be tested until a later power board.
- Sample rates. The single clock covers the 48 kHz family only. 44.1 kHz sources will need resampling somewhere, in hardware or in the CPU budget.
Bring-up and measurement plan
I'll assemble the boards by hand from bare boards and stencils. Bring-up will follow the order above. Then I'll measure dynamic range, frequency response, THD+N at 2, 4 and 8 VRMS, crosstalk and output level. The results will go in their own posts in this set.