Adafruit I2S Stereo Decoder - UDA1334A
Created by lady ada
Last updated on 2018-08-22 04:04:12 PM UTC
Guide Contents
Guide Contents
Overview
Pinouts
Power Pins
I2S Pins
Audio Outputs
Optional Control Pins
Assembly
Installing Standard Headers
Raspberry Pi Wiring
Raspberry Pi Setup
Fast Install
Detailed Install
Update /etc/modprobe.d (if it exists)
Disable headphone audio (if it's set)
Create asound.conf file
Add Device Tree Overlay
2
3
6
6
6
7
7
9
9
13
14
14
15
15
17
18
20
Raspberry Pi Test
Speaker Tests!
Simple white noise speaker test
Simple WAV speaker test
Simple MP3 speaker test
22
22
22
22
22
Volume adjustment
Pi I2S Tweaks
Reducing popping
Step 1
22
24
24
24
Add software volume control
Play Audio with PyGame
Install PyGame
Run Demo
Arduino Wiring & Test
CircuitPython Wiring & Test
Wiring
Code Examples
Tone Generation
Wave File
Where's my I2S?
26
29
29
29
32
34
34
36
36
37
38
Downloads
Files
Schematic & Fabrication Print
41
41
41
© Adafruit Industries
https://learn.adafruit.com/adafruit-i2s-stereo-decoder-uda1334a
Page 2 of 42
Overview
This fully-featured UDA1334A I2S Stereo DAC breakout is a perfect match for any I2S-output audio interface. It's
affordable but sounds great! The NXP UDA1334A is a jack-of-all-I2S-trades: you can use 3.3V - 5V logic levels (a rarity),
and can process multiple different formats by setting two pins to high or low. The DAC will process data immediately,
and give you a clear, analog, stereo line level output. It's even cool with MCLK-less I2S interfaces such as the
Raspberry Pi (which it's ideal for) - a built in PLL will generate the proper clock from the incoming signal.
© Adafruit Industries
https://learn.adafruit.com/adafruit-i2s-stereo-decoder-uda1334a
Page 3 of 42
For inputs, you can use classic I2S (the default) or 16-bit, 20-bit or 24-bit left justified data. You can set it up to take an
input system/master clock but we default-set it to just generate it for you, so you only need to connect Data In, Word
Select (Left/Right Clock) and Bit Clock lines. If you want, there's a mute pin and a de-emphasis filter you can turn on.
© Adafruit Industries
https://learn.adafruit.com/adafruit-i2s-stereo-decoder-uda1334a
Page 4 of 42
We put in plenty of ferrite beads, a low-dropout regulator, and the recommended band-pass filter so you get a very
nice clean output. With a sine-wave generator we swept through 20-20KHz and saw no attenuation or distortion. Plug
into either the 3.5mm stereo headphone jack or the breadboard-friendly pads. We think you'll be pleased with this
DAC!
Each order comes with one I2S Stereo DAC breakout and some header you can solder on.
© Adafruit Industries
https://learn.adafruit.com/adafruit-i2s-stereo-decoder-uda1334a
Page 5 of 42