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...

Комментарии • 79

  • @stevenvogelaar8075
    @stevenvogelaar8075 Год назад +2

    Thank you for this great tutorial,
    I bought one for my pi3 and I was blown away!

  • @bander1023
    @bander1023 4 года назад +4

    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!

    • @Tinker_Box
      @Tinker_Box  4 года назад

      Yes I was really amazed with this little thingy too. I'm glad my video helped you out!!
      And sorry for this late response..

  • @chanwewtalive
    @chanwewtalive 4 года назад +1

    Hello friend, great job,
    the sound is louder than the raspberry 4's built-in jack

    • @Tinker_Box
      @Tinker_Box  4 года назад

      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.

  • @juanferreira5931
    @juanferreira5931 3 года назад +1

    Thanks, man! really helped when setting up mine. Cheers

  • @AdrianRossiter
    @AdrianRossiter 3 года назад +4

    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.

    • @Tinker_Box
      @Tinker_Box  3 года назад

      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.

    • @Tinker_Box
      @Tinker_Box  3 года назад

      Obviously you’ve watched my latest video, in which I built a Volumio player with your OLED display. What did you think about it??

    • @AdrianRossiter
      @AdrianRossiter 3 года назад +1

      @@Tinker_Box I have finished watching this morning. It is a very cool project. I'll mention it on the Volunmio forum.

    • @Tinker_Box
      @Tinker_Box  3 года назад

      @@AdrianRossiter Thanks, that’ll be nice. I really appreciate your efforts in the MPD OLED project. 😊👍

    • @rasclefire
      @rasclefire 7 месяцев назад

      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!

  • @Hundura
    @Hundura Месяц назад

    For some reason these boards are a pain when using them with RetroPie

  • @gaoqifen
    @gaoqifen 2 года назад +1

    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.

    • @Tinker_Box
      @Tinker_Box  2 года назад

      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. :)

  • @denislavpetrov4563
    @denislavpetrov4563 8 месяцев назад

    Hello, is there any noise , when the audio is on, but the song is in pause , or how is the sound quality? Thank you!

    • @Tinker_Box
      @Tinker_Box  7 месяцев назад +1

      There’s no noise as far as I can tell. It’s dead silent!

    • @denislavpetrov4563
      @denislavpetrov4563 7 месяцев назад +1

      @@Tinker_Box Great! Thank you!

  • @NihalFarhanKT
    @NihalFarhanKT 5 месяцев назад

    Why do we set HiFIBerry DAC how it is linked with PCM5102

    • @Tinker_Box
      @Tinker_Box  5 месяцев назад +1

      They are obviously compatible, I guess :)

  • @richardsewell5159
    @richardsewell5159 2 года назад

    Great, this works for the Adafruit UDA1334 board (unlike the Adafruit instructions which connect to different pins and have some broken software??)

    • @Tinker_Box
      @Tinker_Box  2 года назад

      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!

  • @overnightmares
    @overnightmares 3 года назад

    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.

    • @Tinker_Box
      @Tinker_Box  3 года назад

      I never thought about this topic. Sorry for that.

  • @konstantinpavljuchenko644
    @konstantinpavljuchenko644 4 года назад

    Привет из России! Ваше видео очень помогло. Спасибо!

  • @-samsmaker794
    @-samsmaker794 3 года назад

    안녕하세요 ^^ 영상 잘 봤습니다 질문하나 드립니다 혹시 라즈베리 제로에서 inmp441 i2s 마이크를 사용해 보셨나요.. 요즘 이거 설치하고 있는데 쉽지 않네요 혹 아시면 도움을 주실 수 있나요

    • @Tinker_Box
      @Tinker_Box  3 года назад

      음. 안 써봐서 잘 모르겠네요. i2s니까 어쩌면 간단한 문제일 수도 있지 싶은데... 죄송합니다 ㅠㅠ

  • @chatchanaphonsri1123
    @chatchanaphonsri1123 4 года назад

    Does it can place on top of Raspberry pi Zero W without wiring only connect with with the Header same as Pcm 5122

    • @Tinker_Box
      @Tinker_Box  4 года назад

      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.

  • @Ludanc0
    @Ludanc0 2 года назад

    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.

    • @Tinker_Box
      @Tinker_Box  2 года назад

      I2S is a special channel that can only work on specific pins, unlike gpio pins.

    • @Ludanc0
      @Ludanc0 Год назад

      @@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)?

    • @Tinker_Box
      @Tinker_Box  Год назад

      @@Ludanc0 I think the audio volume will be very small.

    • @Ludanc0
      @Ludanc0 Год назад

      @@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.

    • @Tinker_Box
      @Tinker_Box  Год назад

      @@Ludanc0 Why don’t you search Aliexpress for ‘amplifier module’ or something similar? I have seen some that are very small.

  • @user-uk8fo5ol4q
    @user-uk8fo5ol4q 3 месяца назад

    I don't know how to connect power supply and audio input🥺

    • @Tinker_Box
      @Tinker_Box  3 месяца назад

      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. 👌

    • @user-uk8fo5ol4q
      @user-uk8fo5ol4q 3 месяца назад

      @@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

    • @Tinker_Box
      @Tinker_Box  3 месяца назад

      @@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.

    • @user-uk8fo5ol4q
      @user-uk8fo5ol4q 3 месяца назад

      @@Tinker_Box oh that's why ok ok thank you for the info😉

  • @Shadoweee
    @Shadoweee Месяц назад

    Got mine connected the same way as Yours yet the audio is really distorted ¯\_(ツ)_/¯

    • @Tinker_Box
      @Tinker_Box  Месяц назад

      Did you solder the pads that appear at 1:55? This is all I could think of.

    • @Shadoweee
      @Shadoweee Месяц назад

      @@Tinker_Box yup. I am using raspbian lite so only other idea is that this somehow doesnt include required drivers.

    • @Shadoweee
      @Shadoweee Месяц назад +1

      @@Tinker_Box Tested it today with another pi - works perfectly fine. I guess the other one has to be broken.

  • @riku5168
    @riku5168 4 года назад

    Are you willing to sell these already setup and ready to go?

    • @Tinker_Box
      @Tinker_Box  4 года назад

      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.

  • @chatchanaphonsri1123
    @chatchanaphonsri1123 4 года назад

    I just finished test my Pi Zero w but no sound how about Dac model in playback option choose ?

    • @Tinker_Box
      @Tinker_Box  4 года назад

      Choose Hifiberry DAC. See 7:48

    • @chatchanaphonsri1123
      @chatchanaphonsri1123 4 года назад

      TinkerBox Does it need to config dtoverlay of /boot/config.txt

    • @Tinker_Box
      @Tinker_Box  4 года назад

      @@chatchanaphonsri1123 Yes. I have added a couple of websites in the description, and you can find information there.

    • @Tinker_Box
      @Tinker_Box  4 года назад

      @@chatchanaphonsri1123 You don't need anything if you are using Volumio. Volumio does it for you!

    • @chatchanaphonsri1123
      @chatchanaphonsri1123 4 года назад

      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

  • @lautungho1
    @lautungho1 Год назад

    can i use this on esp32???

    • @Tinker_Box
      @Tinker_Box  Год назад +1

      I have seen I2S projects with ESP32 and other MCUs, but haven't tried yet. It should work, but can't say for sure.

  • @chatchanaphonsri1123
    @chatchanaphonsri1123 4 года назад

    May i have to ask please,Are you short SCK to BCK on the front side ?For Raspberry pi Zero w

    • @Tinker_Box
      @Tinker_Box  4 года назад

      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!

  • @fabiant.8760
    @fabiant.8760 3 года назад

    Hi
    volume control doesn't work for me in Volumio
    any chances anybody know what to do?

    • @Tinker_Box
      @Tinker_Box  3 года назад

      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!

    • @fabiant.8760
      @fabiant.8760 3 года назад

      @@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

    • @Tinker_Box
      @Tinker_Box  3 года назад

      @@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.

    • @fabiant.8760
      @fabiant.8760 3 года назад

      @@Tinker_Box Okay, thanks a lot for your quick response.

    • @AdrianRossiter
      @AdrianRossiter 3 года назад +2

      @@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.

  • @MonaChan-im1jl
    @MonaChan-im1jl 4 месяца назад

    Is that hifi? I guess no

    • @Tinker_Box
      @Tinker_Box  4 месяца назад

      Try it and you’ll be surprised!

  • @chatchanaphonsri1123
    @chatchanaphonsri1123 4 года назад

    May i connect you with Telegram ?

    • @Tinker_Box
      @Tinker_Box  4 года назад +1

      Why don't you leave your questions here? Because Telegram needs the telephone numbers, I prefer not to use that...

    • @chatchanaphonsri1123
      @chatchanaphonsri1123 4 года назад

      Sorry,i need to send picture of my Pi,i shall leave SCK blank connect it with wire to ground ,is that right?

    • @Tinker_Box
      @Tinker_Box  4 года назад

      Chatchanaphon sri can you post your picture on somewhere like Google Drive and leave the link here?

    • @Tinker_Box
      @Tinker_Box  4 года назад

      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.

    • @chatchanaphonsri1123
      @chatchanaphonsri1123 4 года назад +1

      TinkerBox Thank you so much, i connect it with wired ,if i Done will send you picture later