Teensy Super Audio Board isolates its codec and lets it set the audio clock

audio, Teensy, Raspberry Pi

This is the read-only HTML version. For the full Visual Space experience, open the app.

audio board, codec, PCB — Imag

audio board, codec, PCB — Imag
audio board, codec, PCB — Imag
audio board, codec, PCB — Imag
audio board, codec, PCB — Imag

Source: Teensy Super Audio Board on Hackaday.io · RF William Hollender

codec, isolation, I2S

Digital isolators and external analog buffers give this CS4272-based board a carefully separated audio path. But its fixed clock also shapes software compatibility—a tradeoff made tangible when a requested 1 kHz tone emerged at 667 Hz.

👍 1

A high-spec audio codec is only part of a high-quality sound board: its power, analog circuitry and connection to the host all matter. RF William Hollender’s Teensy Super Audio Board, shared on Hackaday.io, tackles those surrounding details with external differential amplifiers and digital isolation between the controller and codec. Created on May 21, 2015, the project targets Teensy 3.x and Raspberry Pi 2, with later examples extending it to an FPGA board.

Hollender started after experimenting with PJRC’s audio board and seeing forum requests for higher audio quality. The resulting design offers a useful lesson beyond its component choices: separating the audio hardware from the host also means being explicit about which side controls time.

The codec needs an analog supporting cast

Hollender chose the Cirrus CS4272 for its combination of audio specifications, moderate price and a package suitable for hand soldering. The codec supports up to 24-bit audio at 192 kHz, but those are chip capabilities—not a promise that every host library will deliver that format.

Unlike codecs with more of the analog interface built in, the CS4272 requires external input and output buffers. The board uses TI THS4521 fully differential amplifiers, with a third-order Bessel filter on the output. Both inputs and outputs are differential and capacitively coupled.

One consequential compromise is the roughly 1 kΩ input impedance. Hollender optimized the surrounding impedances for amplifier performance, noting that raising them would worsen noise and distortion. That makes the connected signal source part of the design decision rather than an afterthought. The outputs are also strictly line-level: they cannot directly drive headphones or speakers.

Power receives similar attention. A switching supply produces 5.7 V, followed by filtering and separate low-dropout regulators for the 3.3 V digital and 5 V analog rails. The specified input range is 3–7 V, intended to accommodate USB power or four AA batteries.

Isolation fixes the direction of the clock

A pair of digital isolator ICs carries the control and audio interfaces across the host–codec boundary. Hollender’s stated goal was to keep the Teensy side isolated from the codec to avoid ground loops when connecting audio equipment.

The important wrinkle is that the I2S isolators are unidirectional. As Hollender explained in an August 20, 2015 update, this means the codec must always be the I2S bus master. Its 24.576 MHz crystal supplies the timing, rather than the board accepting audio clocks from the host.

That choice keeps clock generation close to the converter, but it constrains the available sample rates. In the September 9, 2015 Teensy Audio Library update, Hollender reported basic operation while warning that the library assumed 44.1 kHz and the board’s intended nearest rate was 48 kHz. Frequency-dependent code needed to account for that difference. The additions were still beta, and not all controls had been tested.

On Raspberry Pi, the solution included software resampling. An October 29, 2015 update reported working adapter boards and a driver fix that correctly advertised the hardware’s supported rates. Hollender then demonstrated PulseAudio resampling a 44.1 kHz MP3 to 48 kHz. Accepting a file and running the converter at that file’s native rate are two different things.

A 667 Hz tone exposed a register mistake

The clock story became more concrete in the September 30, 2016 bug report. Someone using the Teensy Audio Library requested a 1 kHz sine wave but got 667 Hz. The board was sampling at 32 kHz rather than the intended 48 kHz.

Hollender traced the problem to clock-divider configuration and attributed it to an inaccuracy in the codec datasheet. A register bit marked as irrelevant in the selected mode had been set as part of a value that produced the wrong division ratio. The update states that the affected Teensy and FPGA code had been corrected in GitHub.

The frequency ratio is the useful diagnostic detail: 667 Hz is approximately two-thirds of 1 kHz, just as 32 kHz is two-thirds of 48 kHz. Before chasing analog distortion or filtering, a tone test can reveal that the entire stream is running on the wrong timebase.

Read the measurements as loopback results

Hollender reported a left-channel loopback THD+N of −98.6 dB and a dynamic range of 107 dB. These were measurements made by feeding the board’s outputs back into its inputs, because suitable independent test equipment wasn’t available. They describe the combined conversion path, not separately measured ADC and DAC performance.

Another builder, Robert Manzke, reported roughly −90 dB distortion from two reproductions. The ensuing discussion asked about measurement methods; Manzke described using repository example data and MATLAB’s thd function with default harmonic settings. It did not establish why the results differed. Nor should the overview’s sample-rate labels be treated as independent verification of clock accuracy: those figures appear before the later divider correction.

What carries forward

The latest dated log supplied here is February 27, 2018, when Hollender reported acceptance into the official Raspberry Pi kernel fork and availability through the then-bleeding-edge rpi-update release. Inclusion in a regular Raspbian image was still pending; that historical milestone isn’t a current installation guarantee.

For builders studying the architecture, the project links its hardware and example-code repository, design guide and user guide. The hardware is published under CC BY-SA-NC 4.0, with separate software licenses.

The lasting lesson is to evaluate an audio board as a complete signal chain. Analog buffers, isolation and clean supplies deserve attention—but so does a simple check that a requested tone has the right frequency. A precision converter cannot compensate for software and hardware disagreeing about the clock.

Source: Teensy Super Audio Board

Hardware

3 Followers

A workshop for electronics and physical computing. Share circuits, boards, tools and prototypes; work through measurement and debugging, compare components, and document the choices that turn an idea into working hardware.

Visual Space is built for projects like this—where creators collaborate, organize goals, and grow communities around real work.