Free UK Shipping option for orders over £35+VAT (<1.8kg)           Orders placed by 1pm usually dispatched same day - More Info

Testimonials Testimonials

Teensy 4 Audio Adapter Board

(£16.70 UK, incl VAT)
Price in points: 2784 points
8 g
In stock

This audio adaptor lets you easily add high quality 16 bit, 44.1 kHz sample rate (CD quality) audio to your projects with Teensy 4.0 or 4.1 (Rev D).

The audio shield supports stereo headphone and stereo line-level output, and also stereo line-level input or mono microphone input.

The Teensy Audio Library lets you use the input and output simultaneously together with a toolkit of audio processing objects, to easily create all types of sophisticated audio applications. You can play multiple sound files, create synthesized waveforms, apply effects, mix multiple streams and output high quality audio to the headphones or line out pins.

Two 14x1 pin header / sockets can be used to easily solder the Teensy 4.x and audio board together.

A Thumbwheel Potentiometer can be added for volume or control an audio parameter.

Function Teensy 4.x Pins
Rev D
Audio Data 7, 8, 20, 21, 23  
Audio Control 18, 19 SDA, SCL (other I2C chips)
Volume Pot 15 (A1) -
SD Card 10, 11, 12, 13 MOSI, MISO, SCK (other SPI chips)
Memory Chip 6, 11, 12, 13 MOSI, MISO, SCK (other SPI chips)

Teensy Audio Adapter PCB 

Signals to Teensy

The audio chip, part number SGTL5000, connects to Teensy using 7 signals. The I2C pins SDA and SCL are used to control the chip and adjust parameters. Audio data uses I2S signals, TX (to headphones and/or line out) and RX (from line in or mic), and 3 clocks, LRCLK (44.1 kHz), BCLK (1.41 MHz) and MCLK (11.29 MHz). All 3 clocks are created by Teensy3. The SGTL5000 operates in "slave mode", where all its clock pins are inputs.

Teensy Audio Adapter Signals


Audio Shield
Rev D
(Teensy 4.x)
Audio Master Clock, 11.29 MHz
Audio Bit Clock, 1.41 or 2.82 MHz
Audio Left/Right Clock, 44.1 kHz
Audio Data from Teensy to Audio Shield
Audio Data from Audio Shield to Teensy
SCL 19 Control Clock (I2C)
SDA 18 Control Data (I2C)
SCK 13 Data Storage (SPI) Clock
MISO 12 Data Storage (SPI) from SD/MEM to Teensy
MOSI 11 Data Storage (SPI) from Teensy to SD/MEM
SDCS 10 Chip Select (SPI) for SD Card
MEMCS 6 Chip Select (SPI) for Memory Chip
Vol 15 / A1 Volume Thumbwheel (analog signal)


The SD socket is accessed with 4 SPI pins. SCLK and MOSI are used at alternate locations. See the audio library examples for details on how to select these different pins. The SD card is useful for playing music. Sandisk and other good quality SD cards are capable of playing 2 WAV files simultaneously.

Wires for MCLK, BCLK, LRCLK, TX & RX should be kept short. The audio shield is meant to connect to Teensy through short pins. Wires can be used, but wires must be short to avoid problems.

The line in/out header uses a pinout compatible with the AC97 audio header on PC motherboards. The front panel cables from most PCs can be connected, or wires can be soldered directly to the pins.

Optional Memory Chip(s)

W25Q128JV or W25Q128FV flash memory chip may be added on the bottom side. The Teensy Audio Library can play audio clips from this memory, using the SerialFlash library. This flash memory has much lower access latency than SD cards, which allows many sounds to be played simultaneously.

Future versions of the audio library may also use this low latency flash memory for wavetable synthesis.

Alteratively, a 23LC1024 RAM memory chip may be added. The Teensy Audio Library can use the RAM chip for a multi-tap delay line, up to 1.5 seconds. See this demo video for details.

Recommended SD Card

Most SD cards are optimized for sequential access, where a camera or camcorder reads or writes a single large file. All SD cards work well for playing a single WAV file at a time.

For simultaneous playing of 2, 3 or 4 stereo WAV files, many common "class 10" cards perform poorly. Even though they can support many megabytes per second in sequential access, they have high latency for non-sequential access.

PJRC has tested several brands of SD cards. We recommend SanDisk Ultra for projects where multiple WAV files will be played at the same time. SanDisk Ultra is more expensive, but its non-sequential speed is much faster.

The Arduino SD library supports up to 32 GB size. Do not use 64 & 128 GB cards.

The audio library includes a simple benchmark to test SD cards. Open it from File > Examples > Audio > HardwareTesting > SdCardTest.

Customers also bought....

£4.52 £2.41 (£2.89 UK, incl VAT)
This is an interface cable for the Bus Pirate (see related products below), designed to connect to its 2x5 I/O header. The cable's connector is composed of...
3 item(s)
End of line

£0.80 £0.40 (£0.48 UK, incl VAT)
Miniature surface mount momentary button. These are great, low-profile momentary switches. Perfect as a tactile reset switch. Rated up to 50mA....
3 item(s)
End of line

£0.35 £0.18 (£0.22 UK, incl VAT)
A low profile crystal suitable for use in microprocessors and other industrial applications. Overall height when PCB mounted of just 4mm All types...
2 item(s)
End of line

£0.86 £0.46 (£0.55 UK, incl VAT)
One 8-way and one 6-way PCB mounting female header strip, ideal for Arduino board extensions. Dimensions: plastic body 8.5mm - pins 15mm - total 23.5mm....
15 item(s)
End of line

£1.12 £0.73 (£0.88 UK, incl VAT)
These transition connectors provide fast, permanent termination of flat cable to printed circuit boards and offer a very reliable mass termination and cost...
5 item(s)
End of line