+ Reply to Thread
Results 1 to 3 of 3

Thread: SBC I2S Output

  1. #1
    Join Date: Jan 2013

    Location: Carlisle - UK

    Posts: 1,956
    I'm Ken.

    Default SBC I2S Output

    I2S – What's that all about?

    I've put this information together as a simple guide, so people can get a better understanding of what's involved when trying to use I2S Audio signals and why you might want to use them in the first place.

    I2S, or IIS or I squared S, stands for Inter-IC Sound and is the basic serial bus dedicated to shunting digital audio data from chip to chip on a typical PC board. If you consider a PC as an onion with the CPU at the centre, the I2S bus is one of the inner layers close to the CPU. Other systems like USB or SPDIF are in layers further out from the CPU. Because I2S was designed for chip to chip transfer, it only works for very short distances, a few centimeters in fact. In the past, if you wanted to transfer the audio signal to another device, over further distances, then the I2S signal would be handed over to the Universal Serial Bus (USB) which is more suited for box to box distances. The problem with this is the Universal Bus carries lots of other information around the system, not just audio, so the system has to be shared.

    Several manufactures have started taking advantage of I2S as a purer audio data source and transfer it directly between devices, typically from a CD Transport to a DAC. I2S as a box to box system is in its infancy and does not have a standard to draw from regarding cables/connectors or pinout. To save cost manufactures have therefore used their own pinouts on whatever cable/connector system they thought appropriate. So some used BNC, some RJ45/ENet and some use HDMI. They are only using these as a connecting method and not using the interface system for which they were intended. Don't for instance expect an I2S signal over HDMI cable to be understood by an HDMI compliant device, it wont.

    When the Rpi Single Board Computer (SBC) came along the designers didn't know all the uses it might be put to, as a learning vehicle that was the point. So they brought all the available methods of communicating with the device to the surface, much of it, including the I2S bus, in a single multi pin header, the GPIO port. Unwittingly they had opened the door to high quality audio. As computers go, there is nothing clever about a SBC, they are built to a low cost so many on board parts are adequate rather than best quality, but by having access to the I2S bus on the GPIO port, it offered a way round the distance limitation of this bus. Manufacturers were soon supplying DAC boards that could be plugged directly into this port (Hats) and use the I2S data without having to go through additional interfaces like USB or SPDIF. The resulting sound quality is superb, not because of any ground breaking developments in the design of these DAC's, but simply because they were dealing with the purer I2S signal closer to the source. The Rpi and other SBC's are therefore fostering a better approach to handling Digital Audio and promoting I2S as the transfer system to use. Many people have since adopted a SBC as the heart of their Digital Audio System, as the bang per buck ratio is extremely high.

    The question is, how to export this I2S signal and the Audio goodness it brings, to High End external boxes over greater distances. If you connect wires between the GPIO header and another piece of equipment the signal will be lost and not reach it.

    The manufacturers sending I2S signals between their boxes have sorted this, by using a simple line driver circuit. They can send the I2S signal much further, in principle for Meters rather than Centimeters. One such manufacturer, PS Audio, decided to use HDMI sockets and cables as the ideal vehicle for high speed I2S data transfer. They came up with a pinout arrangement and output driver circuit and published it on the internet for anyone else to use, should they wish. Other manufacturers, Audio-GD for one, have adopted this arrangement on their own Digital Products. The PS-Audio schematic is shown below, I have added my own notes and colour coding to make things clearer for the none electrically minded. My colour key for the I2S signals is:

    Blue = DATA
    Purple = BCK
    Orange = WCK
    Yellow = MCK
    Black = GND
    Red = Vdc

    Most, but not all DAC's act as Slave not Master and do not need the MCK connection. So just the DATA, BCK and WCK would be needed for these. You will need a Ground connection and a power connection for the driver which may be separately connected if desired.




    The next picture is the Audio-GD pin out (off their website) for their I2S over HDMI Connectors and I've added the same colour scheme to make it easy to see its identical to the PS-Audio Drg.





    This is all useful information for those of us that are reasonably happy with electrical DIY, but what about the rest, who would not attempt to build their own line driver? Well there is a simple solution, Audio-GD produce an Output Module for people wanting to send I2S to their DAC's. It is available from Audiophonics (Linked below) for 24.90 Euro. Part Ref 9347 should they move the product page.

    https://www.audiophonics.fr/en/diy-i...le-p-9347.html

    Here is a picture of it.



    This can be connected to the GPIO header on most SBC's, though the socket shown will need removing and the individual wires connected. The 3.3Vdc required to power the module can usually be found there as well. Although this arrangement will work, it would be better to first put the SBC I2S output through an Allo Kali I2S Reclocker, then out through the Audio-GD Module. You could then connect Your SBC to an Audio-GD or PS Audio DAC using an HDMI cable and benefit from using the I2S signal.

    This is the pinout of the Audio-GD Output Module as the supplied cable is not pin compatible with a GPIO header and you will have to make the individual connections.




    I've gathered all this info during my research into making my own SBC based Streamer, I've not actually built this I2S arrangement yet, but others have and it works. I just thought I would pull all the information together for anyone that wants to try it.
    Last edited by Qwin; 11-06-2018 at 08:20.

  2. #2
    Join Date: Feb 2013

    Location: W Lothian

    Posts: 99,005
    I'm Grant.

    Default

    Nice report. Top marks A+
    Regards,
    Grant .... ؠ ......Don't be such a big girl's blouse

    I've said it before and I'll say it again: democracy simply-doesn't-work
    .... ..... ...... ...... ................... ..... ..... ..... ..... .....
    FIIO K7 BT, M11 PLUS, BTR7, KA5 - OPPO BDP-103D - PANASONIC UB450 - PANASONIC 4K ULTRA HD TV - PIXEL 6 - AVANTREE LR BLUETOOTH - 2* X600 SOUNDCORE - HEADPHONES INCLUDE, FIIO, NURAPHONES', FOCAL, OPPO, BOSE, CAMBRIDGE, BOWER & WILKINS, DEVIALET, MARSHALL, SONY, MITCHELL & JOHNSTON - 2*ZBOOK'S- MERCURY BD ROM, ROON, QOBUZ, TIDAL, PLEX, CYBERLINK, JRIVER - MULTI HDD'S -

    Oh my god! There's nothing wrong with the bidet is there?

    “Nothing discloses real character like the use of power. It is easy for the weak to be gentle. Most people can bear adversity. But if you wish to know what a man really is, give him power. This is the supreme test. It is the glory of Lincoln that, having almost absolute power, he never abused it, except on the side of mercy".

    “You see these dictators on their pedestals, surrounded by the bayonets of their soldiers and the truncheons of their police ... yet in their hearts there is unspoken fear. They are afraid of words and thoughts: words spoken abroad, thoughts stirring at home -- all the more powerful because forbidden -- terrify them. A little mouse of thought appears in the room, and even the mightiest potentates are thrown into panic.”

    "You don't have free will. You have the appearance of free will.”

    “There's a war out there, old friend. A world war. And it's not about who's got the most bullets. It's about who controls the information. What we see and hear, how we work, what we think... it's all about the information!”


    ***SMILE, BE HAPPY***

  3. #3
    Join Date: Oct 2016

    Location: London

    Posts: 313
    I'm David.

    Default

    Hi,
    If I'm connecting the i2s input to my DAC which only needs:
    DATA
    BCK
    WCK
    and GND

    Do I just use the + connections for these and ignore the - or ground the -"?

    Thanks
    David

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •