Forge DSP / Proto-1

Proto-1 overview: targets and decisions

· Proto-1 · Overview

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.

Render of the proto-1 stack: the power board, two DAC cards and the PocketBeagle 2 on the carrier board
Render of the proto-1 stack. The power board is top left, the two DAC cards are on the right, and the PocketBeagle 2 is lower left, all on the carrier board.

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:

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

TargetValueWhy
Outputs16 line outputsEnough for three-way fronts, a center, rears and a sub, all active, with channels left over.
Output level8 VRMS at full scale, per outputSet 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 channelSet by the ES9080Q DAC (with DRE). Noise is what you hear first in a quiet car.
Crosstalk at 1 kHz*> 100 dBSet by the DAC, the shared supplies and the board layout.
THD+N*≤ −108 dBSet by the DAC and the output op-amps.
Processing block512 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 sMusic should start soon after the car does.
Input voltage9 to 24 VCovers a car's 12 to 14.4 V system with margin. Both converters regulate anywhere in that range.
Crank ride-throughDown to 6 V input (a later power board)Stop-start cars crank the engine at every light. The processor should ride through without rebooting.
Temperature85 °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:

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.

I split it this way so each board can be tested on its own. Bring-up adds one board at a time:

  1. The power board alone, on a dummy load.
  2. The carrier, from bench supplies.
  3. The carrier with the power board.
  4. 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

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.