Raspberry Pi I2S to SPDIF Hat

Discussion in 'Digital: DACs, USB converters, decrapifiers' started by Michael Kelly, Apr 30, 2016.

  1. gixxerwimp

    gixxerwimp Professional tricycle rider

    Friend
    Joined:
    Sep 30, 2015
    Likes Received:
    3,777
    Dislikes Received:
    15
    Trophy Points:
    113
    Location:
    small island claimed by China
    This is why I went with piCorePlayer. Volumio would keep getting corrupted and I'd have to continually reflash the image (maybe crappy SD cards?). I don't remember setting anything specifically, but pCP doesn't perform and writes to the SD card at all and the image stays stable forever.
     
  2. shabta

    shabta Facebook Friend

    Contributor
    Joined:
    Jan 14, 2016
    Likes Received:
    208
    Dislikes Received:
    0
    Trophy Points:
    43
    PCP does writes if you are using it as the LMS server. If you are just using PCP as a player, then it doesn't do many writes, it still writes it's state so that if you reboot it comes back to the song etc. I have found with LMS that, at least on bigger libraries, you need once in a rare while rebuild the library. But on my pi running exclusively as a player ( with picoreplayer) i almost never have to reboot and I have never had to reflash a card (except for updates).
     
  3. gixxerwimp

    gixxerwimp Professional tricycle rider

    Friend
    Joined:
    Sep 30, 2015
    Likes Received:
    3,777
    Dislikes Received:
    15
    Trophy Points:
    113
    Location:
    small island claimed by China
    I run LMS on my NAS so once I have everything set up on the rPi, I back up the image and pretty much never have to touch it again.
     
    shabta and Michael Kelly like this.
  4. goreshade

    goreshade Rando

    Joined:
    Jun 10, 2019
    Likes Received:
    1
    Dislikes Received:
    1
    Trophy Points:
    3
    Location:
    Earth
    Deleted
     
    Last edited: Nov 30, 2020
  5. 7seven

    7seven Rando

    Joined:
    Oct 28, 2018
    Likes Received:
    7
    Dislikes Received:
    3
    Trophy Points:
    8
    Location:
    UK
    saying the USB is polluted and automatically = bad sound and then using a DAC hat that receives I2S directly from Pi and sits in the most ideal place to be hit by RF emitted by the Pi.
     
  6. hallgard

    hallgard Rando

    Joined:
    Jul 15, 2019
    Likes Received:
    4
    Dislikes Received:
    0
    Trophy Points:
    3
    Location:
    Iceland
    Hi @famish99 I'm waiting on an Audiobyte Black Dragon dac, which has the same original i2s pinout as the Rockna dacs, and looking forward to finally be able to use my PI2AES i2s output. they have updated But still confused whether the original PI2AES HDMI output works with the original Audiobyte/Rockna input pinout.
     
    Michael Kelly likes this.
  7. Michael Kelly

    Michael Kelly MOT: Pi 2 Design

    Friend
    Joined:
    Apr 22, 2016
    Likes Received:
    2,265
    Dislikes Received:
    1
    Trophy Points:
    93
    Location:
    Rhode Island, USA
    Home Page:
    Do you have a manual for the wavebyte? The I2S pinout for the PI2AES is in the HW reference manual:
    http://www.pi2design.com/uploads/4/8/5/3/48531975/pi2aes_hw_ref_manual_p3_4.pdf
     
  8. SoupRKnowva

    SoupRKnowva Official SBAF South Korean Ambassador - Friend

    Friend
    Joined:
    Sep 26, 2015
    Likes Received:
    3,058
    Dislikes Received:
    6
    Trophy Points:
    93
    Location:
    Austin, TX
    The hdmi i2s output of the pi2aes works with both the Wavedream and the Wavelight, but they required firmware updates to do so. If the Black Dragon got a similar update it should work.
     
    Michael Kelly likes this.
  9. Scott Kramer

    Scott Kramer Friend

    Friend
    Joined:
    May 3, 2016
    Likes Received:
    1,299
    Dislikes Received:
    4
    Trophy Points:
    93
    Screen Shot 2020-12-02 at 11.53.37 AM.jpg
    FYI-- There's a provision to move the pCP LMS database off the sdcard to your media drive, for 0 writes to it.
     
    Last edited: Dec 2, 2020
  10. famish99

    famish99 Friend

    Friend
    Joined:
    Dec 26, 2017
    Likes Received:
    1,391
    Dislikes Received:
    7
    Trophy Points:
    93
    Location:
    Austin, TX
    I believe this is true for PCM, I've not gotten DSD working in either Rockna or PS Audio mode yet so I'm looking forward to seeing if the new mini-HAT will fix that.
     
    SoupRKnowva and neogeosnk like this.
  11. shabta

    shabta Facebook Friend

    Contributor
    Joined:
    Jan 14, 2016
    Likes Received:
    208
    Dislikes Received:
    0
    Trophy Points:
    43
    Thanks! Someone else up thread also mentioned this. I wish I had know about this 4 years ago when I last had pcp as my LMS server.
     
    Michael Kelly and Scott Kramer like this.
  12. hallgard

    hallgard Rando

    Joined:
    Jul 15, 2019
    Likes Received:
    4
    Dislikes Received:
    0
    Trophy Points:
    3
    Location:
    Iceland
    Thanks! SoupR
     
    Michael Kelly likes this.
  13. ofilippov

    ofilippov Rando

    Joined:
    Mar 16, 2018
    Likes Received:
    20
    Dislikes Received:
    0
    Trophy Points:
    3
    Location:
    Eastern Europe
    Hi @Michael Kelly,

    Happy New Year!

    May I ask a tricky question? It's regarding 502DAC. I plugged +5V from my PSU directly to the W1 point, where power is going to rPi. To both contacts. And the ground to the ground terminal. It worked well, but after a while the frequency multiplier diodes stopped working. And error appears in the app. Like it went to protection somehow. :oops:

    It appeared before, and the technician, who fixed it told me that he didn't do anything in particular, just tested circuits and it started working. Unfortunately I can't give it to him, as I'm ill with COVID. I'm fine, just not meeting anyone for a while.

    Any ideas, what can be? Thanks!
     
    Michael Kelly likes this.
  14. Michael Kelly

    Michael Kelly MOT: Pi 2 Design

    Friend
    Joined:
    Apr 22, 2016
    Likes Received:
    2,265
    Dislikes Received:
    1
    Trophy Points:
    93
    Location:
    Rhode Island, USA
    Home Page:
    Please send an email direct to me: [email protected]. there's a couple things about your question that I don't fully understand but I'd rather not chew up the bandwidth on the form.
     
    dasman66, Baten and ofilippov like this.
  15. ohshitgorillas

    ohshitgorillas Friend

    Friend
    Joined:
    Nov 27, 2015
    Likes Received:
    424
    Dislikes Received:
    2
    Trophy Points:
    63
    Location:
    Purgatory, Connecticut
    Hi all, I'm currently using foobar2k to output to the Pi2AES, running on moode. One of my DACs is limited to 44.1 and 48kHz (AudioGD DAC19mk3 w/ PMD100). I have hi-res material so I'll eventually be selling the AGD to move on, but in the meantime, what is the best way to automatically resample higher rates down to 44.1 or 48, depending on the initial rate? I assume that having the Pi2AES do the actual resampling would sound best, but I'm currently doing it through f2k via SoX resampler. How would I best pass this process off to the Pi (without having to manually set the sampling rate)?
     
    Michael Kelly likes this.
  16. YMO

    YMO it's not drinking alone if you're on Zoom

    Friend
    Joined:
    Apr 1, 2018
    Likes Received:
    5,902
    Dislikes Received:
    37
    Trophy Points:
    113
    Location:
    DUVALLL-904
    moOde > Audio > MPD Options > Edit > SoX resampling Enabled, and you can figure out the rest. Note: If you do 48k in SoX, everything regardless if 44k will go to 48k. I would do 41k and call it a day.

    Edit: After this is done, shut off resampling in Foobar.
     
    Michael Kelly likes this.
  17. Clemmaster

    Clemmaster Friend

    Friend
    Joined:
    Sep 28, 2015
    Likes Received:
    2,262
    Dislikes Received:
    3
    Trophy Points:
    113
    Better leaving the resampling on the PC. Less noise on the Pi2AES and SoX is high quality already.
     
    ohshitgorillas and Michael Kelly like this.
  18. ohshitgorillas

    ohshitgorillas Friend

    Friend
    Joined:
    Nov 27, 2015
    Likes Received:
    424
    Dislikes Received:
    2
    Trophy Points:
    63
    Location:
    Purgatory, Connecticut
    Well... having to go into settings every time I want to switch from 44.1 to 48 is what I'm trying to avoid. I am at least picky enough to keep multiples of 44.1 and 48kHz on their respective clocks.
     
    Michael Kelly likes this.
  19. YMO

    YMO it's not drinking alone if you're on Zoom

    Friend
    Joined:
    Apr 1, 2018
    Likes Received:
    5,902
    Dislikes Received:
    37
    Trophy Points:
    113
    Location:
    DUVALLL-904
    Do you use Android/BubbleUPnP?
     
    Michael Kelly likes this.
  20. haywood

    haywood Friend

    Friend
    Joined:
    Oct 22, 2015
    Likes Received:
    456
    Dislikes Received:
    4
    Trophy Points:
    63
    If you’re using moode select 24/48 for the sample rate and resample (adhere to base frequency) in the selective resampling menu and it should resample to 24/44.1 or 24/48 depending on the source rate.

    I wouldn’t worry too much about doing the sample rate conversion on the Pi but iirc SoX resampling is only affecting mpd output so keep that in mind if you’re using the Pi as a renderer.
     
    ohshitgorillas and Michael Kelly like this.

Share This Page