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.
Pinouts The UDA1334A is an I2S amplifier - it does not use analog inputs, it only has digital audio input support! Don't confuse I2S with I2C, I2S is a sound protocol whereas I2C is for small amounts of data. Power Pins The UDA1334A requires 3.3V power but can take 3-5V...
(https://adafru.it/nFy) Run the following from your Raspberry Pi with Internet connectivity: curl -sS https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/i2samp.sh | bash We've added an extra helper systemd script that will play quiet audio when the I2S peripheral isn't in use. This removes popping when playback starts or stops. It uses a tiny amount of CPU time (on a Pi Zero, 5%, on a Pi 2 or 3 its negligible).
Basic Test To test things out, try running the demo below. It comes with the library installation, so you can find it by going to: File -> Examples -> Adafruit Zero I2S Library -> basic Be sure to change this line: Adafruit_ZeroI2S i2s(0, 1, 9, 2);...
Page 34
// Connect an I2S DAC or amp (like the UDA1334A) to the Arduino Zero // and play back simple sine, sawtooth, triangle, and square waves. // Makes your Zero sound like a NES! // NOTE: The I2S signal generated by the Zero does NOT have a MCLK / // master clock signal.
Page 37
And then you can use the DMA example found in the Zero I2S library: File -> Examples -> Adafruit Zero I2S Library -> dma #include <Adafruit_ZeroI2S.h> #include <Adafruit_ZeroDMA.h> #include "utility/dma.h" #include <math.h> /* max volume for 32 bit data */ #define VOLUME ( (1UL <<...
Need help?
Do you have a question about the UDA1334A and is the answer not in the manual?
Questions and answers