Audio shield for Teensy 3.0 - 3.6

20.40 € inc. VAT
17.00 € ex. VAT

This audio adaptor lets you easily add high quality 16 bit, 44.1 kHz sample rate (CD quality) audio to your projects with Teensy 3.0, 3.1, 3.2, 3.5, 3.6 (Rev B).

 

All versions of the audio shield support stereo headphone and stereo line-level output, and also stereo line-level input or mono microphone input.

DescriptionSchematicsPinout

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.

 

Teensy 3.x have the Cortex-M4 DSP instructions which provide plenty of computational power for real-time FFT (spectrum analysis), opening up the possibility of creating advanced sound-reactive projects.

 

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.

 

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.

      

 

MCLK 23 11 Audio Master Clock, 11.29 MHz
BCLK 21 9 Audio Bit Clock, 1.41 or 2.82 MHz
LRCLK 20 23 Audio Left/Right Clock, 44.1 kHz
DIN 7 22 Audio Data from Teensy to Audio Shield
DOUT 8 13 Audio Data from Audio Shield to Teensy
SCL 19 19 Control Clock (I2C)
SDA 18 18 Control Data (I2C)
SCK 13 14 Data Storage (SPI) Clock
MISO 12 12 Data Storage (SPI) from SD/MEM to Teensy
MOSI 11 7 Data Storage (SPI) from Teensy to SD/MEM
SDCS 10 10 Chip Select (SPI) for SD Card
MEMCS 6 6 Chip Select (SPI) for Memory Chip
Vol 15 / A1 15 / A1 Volume Thumbwheel (analog signal)