PCM5102 I2S DAC module guide for working with a Raspberry Pi
HTML-код
- Опубликовано: 15 сен 2024
- A low-cost DAC module from Aliexpress has been tested on a Raspberry Pi 4B. Inter-IC Sound, or I2S Digital to Analog converter is a chip component that converts a digital audio source to an analog signal. The chip in this module is TI PCM5102. In the video, I started with modification to the board for use with a Pi, and covered set-up information in Raspbian. In the end, I tried out Volumio. This video guide has been a part of on-going Raspberry music player project, so please stay tuned.
Module in the video:
www.aliexpress...
The forum and the blog in the video:
raspberrypi.st...
blog.himbeer.m...
Thank you for this great tutorial,
I bought one for my pi3 and I was blown away!
Thanks!
This is a really great video for this little card, and I appreciate you took the time to put it together. It *really* helped me out with a RPi Zero project I had going!
Yes I was really amazed with this little thingy too. I'm glad my video helped you out!!
And sorry for this late response..
Hello friend, great job,
the sound is louder than the raspberry 4's built-in jack
Hi, actually I have no idea because I didn't really think of using a built-in jack. I'll post a comment if I get to try that.
By the way, the sound level from the DAC is controlled by the source device, the iPhone or a computer, and it isn't too loud or too low.
Thanks, man! really helped when setting up mine. Cheers
The last one of these I bought had no audio. I thought it was broken, but comparing with another board I found that the four sets of pads on the back (H1L - H4L) had not been soldered. After adding the solder blobs, the board worked perfectly. I wonder if the person who commented that their board had no audio had the same issue.
Oh my god! You’re the author of the MPD OLED!! Thanks for the info about the board. It’s good to know there are differences among the same boards. And thanks for visiting my channel.
Obviously you’ve watched my latest video, in which I built a Volumio player with your OLED display. What did you think about it??
@@Tinker_Box I have finished watching this morning. It is a very cool project. I'll mention it on the Volunmio forum.
@@AdrianRossiter Thanks, that’ll be nice. I really appreciate your efforts in the MPD OLED project. 😊👍
Omg!!! Thank you so much!! I've been troubleshooting these and I just saw this and they are indeed not soldered!!!! That's the end of my headache!
For some reason these boards are a pain when using them with RetroPie
This is great tutorial. Anyway if using MPD, the volume control i think is still possible to set it "mixer_type "software" instead of "mixer_type "None" in the mpd.conf file. However, not sure the quality got different or not, not able to differentiate.
Yes, that’s right. In fact I couldn’t tell much difference in quality. However I think it’s better off with a bluetooth modules that are really cheaper and easier path if you’re willing to sacrifice the sound quality. :)
Hello, is there any noise , when the audio is on, but the song is in pause , or how is the sound quality? Thank you!
There’s no noise as far as I can tell. It’s dead silent!
@@Tinker_Box Great! Thank you!
Why do we set HiFIBerry DAC how it is linked with PCM5102
They are obviously compatible, I guess :)
Great, this works for the Adafruit UDA1334 board (unlike the Adafruit instructions which connect to different pins and have some broken software??)
I guess it’ll work mostly the same, but since I haven’t tried that board, I can’t say for sure. Good luck with you!
Hi, I came across your video and seems like you might know the answer to my question. I wonder if I can get digital audio out of an iphone and stream and record it to a raspberry pi via the usb cable. So, imagine the iphone and rpi are connected to each other via usb. and any audio app on the iphone is playing. I press a button on rpi and it will start recording the audio digitally. It will store the data and ideally it will be able to stream it back to iphone if needed. So, it will basically act like a usb audio interface+recorder. Is this possible? Can rpi do this alone? I suspect that's not the case. if then, what do i need to enable this? a dac? would really appreciate if you can give some guidance. thanks.
I never thought about this topic. Sorry for that.
Привет из России! Ваше видео очень помогло. Спасибо!
감사합니다 ^^
안녕하세요 ^^ 영상 잘 봤습니다 질문하나 드립니다 혹시 라즈베리 제로에서 inmp441 i2s 마이크를 사용해 보셨나요.. 요즘 이거 설치하고 있는데 쉽지 않네요 혹 아시면 도움을 주실 수 있나요
음. 안 써봐서 잘 모르겠네요. i2s니까 어쩌면 간단한 문제일 수도 있지 싶은데... 죄송합니다 ㅠㅠ
Does it can place on top of Raspberry pi Zero W without wiring only connect with with the Header same as Pcm 5122
Hi, I have no experience with PCM 5122 nor the Raspberry Pi Zero and I’m sorry for that. Thanks for bringing this issue to my attention, though.
Is it possible to use diferent pins with this? I have 2 of the required ones already taken by another board (lcd, gamepad) but I have 2 gpio pins free.
I2S is a special channel that can only work on specific pins, unlike gpio pins.
@@Tinker_Box thx for the response, lcd manufacturer had a workaround for the audio out. Is it possible to get decent audio levels using this dac with a small speaker (unpowered)?
@@Ludanc0 I think the audio volume will be very small.
@@Tinker_Box do you know of any small amp (same size or smaller than this one) that I could use with this? Im working on a tiny handheld console.
@@Ludanc0 Why don’t you search Aliexpress for ‘amplifier module’ or something similar? I have seen some that are very small.
I don't know how to connect power supply and audio input🥺
You play music from your Pi, and sound will come out through the headphone jack/output ports on this module, which is powered by you guess what, Pi again. 👌
@@Tinker_Box so it cannot use without pi? I thought it can use without that and can also use with 5v power supply like charger and connect to cellphone to input of that DAC and out to connect to amplifier
@@user-uk8fo5ol4q okay now I see where you’re coming from.
This and other modules like this are very primitive and simple ones than the DACs in a more everyday meaning. This one can only function by piggybacking on another computer. It cannot even be connected to USB or Bluetooth by itself.
@@Tinker_Box oh that's why ok ok thank you for the info😉
Got mine connected the same way as Yours yet the audio is really distorted ¯\_(ツ)_/¯
Did you solder the pads that appear at 1:55? This is all I could think of.
@@Tinker_Box yup. I am using raspbian lite so only other idea is that this somehow doesnt include required drivers.
@@Tinker_Box Tested it today with another pi - works perfectly fine. I guess the other one has to be broken.
Are you willing to sell these already setup and ready to go?
Do I wish to sell this as a kit? I don't think so. You can always purchase one of the 'shields' that does the same job.
I just finished test my Pi Zero w but no sound how about Dac model in playback option choose ?
Choose Hifiberry DAC. See 7:48
TinkerBox Does it need to config dtoverlay of /boot/config.txt
@@chatchanaphonsri1123 Yes. I have added a couple of websites in the description, and you can find information there.
@@chatchanaphonsri1123 You don't need anything if you are using Volumio. Volumio does it for you!
TinkerBox still the same no sound but i see the red led of my Dac not blue ,any idea ?may be my Something wrong with my Dac
can i use this on esp32???
I have seen I2S projects with ESP32 and other MCUs, but haven't tried yet. It should work, but can't say for sure.
May i have to ask please,Are you short SCK to BCK on the front side ?For Raspberry pi Zero w
Nope. SCK is shorted to the Ground, and BCK is connected to the Pi.
1:56 The bridge pad on the front side shorts SCK to the GROUND, not BCK. Afterwards, SCK is left unconnected to the Pi.
Alternatively, if you don't want to solder the bridge, you can always connected it to one of the ground pins on the Pi.
3:03 BCK is connected to the pin 12 on the headers on the Pi. (Pin 12 = GPIO 18)
Again, I have done this on the Pi 4b, but I think it's the same for the Pi Zero W. Let me know how your project turns out!
Hi
volume control doesn't work for me in Volumio
any chances anybody know what to do?
If you're speaking about the same setup with the same DAC module, it doesn't offer any volume control itself. However, I didn't have a problem because I could control the volume from the source device. I hope this helps!
@@Tinker_Box I'm using an Raspberry Pi ZeroW, the exact same I2S Module as shown in the Video and a Volumio Image
and within volumio I can't change the volume of the music playing. And I have absolutely no idea why this is
@@fabiant.8760 You're right. Volume couldn't be controlled within Volumio, when you use an I2S DAC. It's designed to be connected to a power amplifier/speaker which has the volume control.
@@Tinker_Box Okay, thanks a lot for your quick response.
@@fabiant.8760 I know this is old, but if anyone else has this problem... go to Settings / Playback Options, scroll down to the Mixer Type and choose Software (and save). The Volumio volume control will then work.
Is that hifi? I guess no
Try it and you’ll be surprised!
May i connect you with Telegram ?
Why don't you leave your questions here? Because Telegram needs the telephone numbers, I prefer not to use that...
Sorry,i need to send picture of my Pi,i shall leave SCK blank connect it with wire to ground ,is that right?
Chatchanaphon sri can you post your picture on somewhere like Google Drive and leave the link here?
Chatchanaphon sri Shorting it to the ground means to connect it to the ground. And what I did was to use the bridge provided on the PCB to do exactly that. One pad on the solder bridge is SCK and the other one is the ground. You just drop a solder blob to connect these pads. It’s the easiest way because you don’t need any wires.
TinkerBox Thank you so much, i connect it with wired ,if i Done will send you picture later