I2S Stereo DAC (UDA1334A)

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
jimv206
 
Posts: 5
Joined: Sat Dec 09, 2017 4:05 am

I2S Stereo DAC (UDA1334A)

Post by jimv206 »

EDIT 1: I tried redoing this with a new "pi zero w" and a new "adafruit i2s audio decoder" and the outcome is the same. Everything looks right but there is no sound. Please help.

I've recently purchased 3 of these little breakout boards for use with a raspberry pi zero w. I can't get any sound out f it at all.

I initially installed stretch lite and went through the setup procedure. All went well but no sound during any of the speaker tests. I noticed that the adafruit tutorial used jessie lite so installed that and went through the setup procedure again but still no sound.

I used the i2samp.sh script and then went through the manual install method just to make certain that the script did everything correctly ... it did.

No errors or weird messages in the log files during reboots or from the speaker tests ... they seem to be running and sending data to the left/right channels alternately.

I used a 'scope to check the 3 i/o lines between the pi zero and the DAC but see nothing during the speaker tests so the pi zero doesn't seem to be sending data/clock to the DAC.

lsmod seems to show a reasonable set of modules: snd_soc_bcm2835_i2s, snd_soc_hifiberry_dac, and snd_soc_pcm5102a are all loaded along with the lower level snd modules.

I can't see anything out of place here. Am I missing something obvious?

Thank you...
Last edited by jimv206 on Wed Dec 13, 2017 5:51 pm, edited 1 time in total.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: I2S Stereo DAC (UDA1334A)

Post by adafruit_support_mike »

Post a photo showing your hardware and connections and we'll take a look. 800x600 images usually work best.

User avatar
jimv206
 
Posts: 5
Joined: Sat Dec 09, 2017 4:05 am

Re: I2S Stereo DAC (UDA1334A)

Post by jimv206 »

pi-zero-w-cropped.jpg
pi-zero-w-cropped.jpg (133.33 KiB) Viewed 487 times
Thanks for the reply. I've uploaded the image you've requested. I'm sure I've overlooked something silly ;-)

User avatar
jimv206
 
Posts: 5
Joined: Sat Dec 09, 2017 4:05 am

Re: I2S Stereo DAC (UDA1334A)

Post by jimv206 »

OK, I looked at some more things. I installed mpg123 and executed:

Code: Select all

mpg123 -vvv http://ice1.somafm.com/u80s-128-mp3 > mpg123-output.txt 2>&1
and let it run for a few seconds. Naturally, it created a rather large file. In that file, I saw these lines:

Code: Select all

Trying output module alsa.
Using default module dir: /usr/lib/arm-linux-gnueabihf/mpg123
Module dir: /usr/lib/arm-linux-gnueabihf/mpg123
Module path: ./output_alsa.so
Output module 'alsa' chosen.
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.20.1; written and copyright by Michael Hipp and others
        free software (LGPL) without any warranty but with best wishes
Decoder: generic
Followed by some checks like:

Code: Select all

Note: Disabling all formats.
Note: checking support for 8000Hz/1ch.
Note: result 0x77ff
Note: Want to enable format 8000/1 for encodings 0x77ff.
Note: checking support for 11025Hz/1ch.
Note: result 0x77ff
... etc, and then interestingly:

Code: Select all

Audio driver: alsa
Audio device: <none>
Audio capabilities:
The "Audio device: <none>" doesn't seem right.

Hope this helps.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: I2S Stereo DAC (UDA1334A)

Post by adafruit_support_mike »

Your wired connections don't match the ones shown in the tutorial:

viewtopic.php?f=24&t=54246&start=15#p630193

The RasPi's I2S interface only exists on GPIO 18, 19, and 21.

User avatar
jimv206
 
Posts: 5
Joined: Sat Dec 09, 2017 4:05 am

Re: I2S Stereo DAC (UDA1334A)

Post by jimv206 »

OK silly me. I thought the tutorial meant "pins" 18, 19, 21. Maybe the tutorial could indicate "GPIO18", etc rather than just "#18", etc? I really thought it was pin numbers.

Will try this tomorrow.

Thank you so much.

Jim

User avatar
jimv206
 
Posts: 5
Joined: Sat Dec 09, 2017 4:05 am

Re: I2S Stereo DAC (UDA1334A)

Post by jimv206 »

Just to let you know, all is working well now. Thank you.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: I2S Stereo DAC (UDA1334A)

Post by adafruit_support_mike »

Glad to hear that did it. Happy hacking!

User avatar
waiyung
 
Posts: 2
Joined: Mon Sep 17, 2012 6:49 pm

Re: I2S Stereo DAC (UDA1334A)

Post by waiyung »

Dear all, what is the mount hole size for UDA1334A? I tried 4-40, it did not fit. Thank u

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: I2S Stereo DAC (UDA1334A)

Post by adafruit_support_mike »

The holes are drilled 0.1", but lose a few thousandths when the through-holes are plated.

4-40 threads have a major diameter of 0.1120", so they are a bit too big. You'd need #2 screws (2-56 or 2-64) if you want to stick to imperial sizes. 3-48 or 3-56 might work, but the major diameter is 0.99", which is pretty close to the diameter of the plated hole.

In metric sizes, M2 screws will definitely work. M2.5 threads are slightly narrower than #3 imperial, so those might work if you're lucky.

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”