[IDC]Dragon
Posts: 41
Joined: Mon Dec 16, 2013 9:47 pm

TinyTOSLINK (digital audio output) now for B+, too

Mon Dec 08, 2014 8:31 pm

Hi there,

some people may know my "TinyTOSLINK" addon for the classic rev. B board:
http://www.raspberrypi.org/forums/viewt ... 45&t=75225
(optical audio output, optional S/PDIF output and input)

I now have created a B+ variant. It is larger, because the required pins are all over the connector. But it still is a relatively small strip of PCB, can be installed without soldering.
Logically it can be a HAT, because I added a footprint for the ID EEPROM. Mechanically it isn't, because I wanted all to fit in a normal case, no buildup for an extra board ontop. The TOSLINK transmitter is mounted downwards, to not add height. Like with my other board, it could be mounted "deep" and soldered directly to the header, the transmitter on the top side. But I guess since plugging with 40 pins is quite rigid and needs no soldering, nobody will go for that with B+.

I chose a smaller transmitter this time, to leave more room for the LEDs underneath. And it has 25 MHz bandwidth, which is needed to transmit 192 kHz sample rate audio. Until recently, I didn't know such is possible for TOSLINK, thought it would require S/PDIF. The receiver needs to be capable, too, which had a ripple effect in my household, replacing switchbox and DAC input receivers...
However, these components are hard to find, I ordered them from china.

Finally, some pictures, click them to enlarge:

Image

Image

Image

I can build some of these, for people who appreciate my work and have good use for it. Before doing so, I need to find a source for the 40 pin connector with a reasonable price.

So long,
Jörg


Jörg

dan.mcmullen
Posts: 1
Joined: Fri Jan 02, 2015 9:09 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Fri Jan 02, 2015 9:19 pm

do you have any idea when you will have any of these made/available? Will these work with the "B" model? I will be upgrading to a "B+" soon. How much are you selling them for and can you ship to Canada?

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: TinyTOSLINK (digital audio output) now for B+, too

Tue Jan 06, 2015 1:14 pm

[IDC]Dragon wrote:
I can build some of these, for people who appreciate my work and have good use for it. Before doing so, I need to find a source for the 40 pin connector with a reasonable price.

Jörg
Hi Jörg,

I found some on Amazon, £6.85 for 10. These would also be shipped from China.

I hope this helps.
Doug.
Building Management Systems Engineer.

Man in a van
Posts: 54
Joined: Sat Dec 27, 2014 2:41 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Tue Jan 13, 2015 7:36 pm

Please include me for one of these. :)

PM sent.

atb

Ronnie.

jnetode
Posts: 3
Joined: Wed Jan 14, 2015 6:42 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Wed Jan 14, 2015 6:47 pm

Hi, Jörg,

awesome work. I am very interested on getting also one.
An alternative (although more expensive) would be to use shield stacking headers. Since the PCB will use all the 40 pin connector, there will be nothing else available for further usage.

I will also try to find something in reasonable price too.

Joel

[IDC]Dragon
Posts: 41
Joined: Mon Dec 16, 2013 9:47 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Thu Jan 15, 2015 8:55 pm

Thanks for you help about connector sources. Meanwhile I'm settled, got a batch of them for like 0.50€ each.
The kind with normal pins, so you can't stack another board on top. Joel has sent me a list of suppliers for longer pins.

Jörg

richw2000
Posts: 1
Joined: Thu Jan 15, 2015 10:08 am

Re: TinyTOSLINK (digital audio output) now for B+, too

Fri Jan 16, 2015 2:32 pm

This is really awesome. Great work.
I've been searching all over for this type of solution.
I have a project that I could use this in.
If you have a spare, I'd be willing to buy 1 or 2.

chrismccallum
Posts: 1
Joined: Sat Jan 17, 2015 1:00 am

Re: TinyTOSLINK (digital audio output) now for B+, too

Sat Jan 17, 2015 1:59 am

This is just what I've been looking for. Amazing. I would be very interested in getting on of these from you!

Cheers
Chris

Man in a van
Posts: 54
Joined: Sat Dec 27, 2014 2:41 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Thu Jan 22, 2015 10:43 am

Jörg,

The board arrived Wednesday last, thanks very much.

I fixed it to a pi B+ with piCorePlayer image on the SD card.

I found out that the drivers are supported in the HiFiBerry Digi for the B and B+.

For the B+ I used … sysdefault:CARD=sndrpihifiberry …as output.

Well it works, and as a bonus I found that my DAC supports 192 kHz as default. 8-)

Only caveat I have is that the pin header is a really tight fit, as in REALLY TIGHT (I bent the end pins on removing the board :( ).

What can I say?

Many thanks for sharing your project with everyone and I wish you lots of success.

atb

Ronnie.

pleasure
Posts: 4
Joined: Tue Jan 06, 2015 8:04 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Thu Jan 22, 2015 11:25 am

HI Jörg,

I popped this on my B+ and within 5 minutes openelec was streaming DTS & AC3 in 5.1 faultlessly.

What a great little addon fits so nicely in a standard case (I just left one end off for now to plug the optical into)

What can I say apart from thanks again.

Regards,

Richard

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: TinyTOSLINK (digital audio output) now for B+, too

Thu Jan 22, 2015 12:53 pm

Man in a van wrote: Only caveat I have is that the pin header is a really tight fit, as in REALLY TIGHT (I bent the end pins on removing the board :( ).
I had the same issue with a GertVGA board, I think it's unavoidable with the 40 pin header, with so many connections it will be a tight fit and easy to become frustrated when removing it. Once one end is up you are so relieved that it's moving that you keep pulling on the end that has moved and as a result you bend the pins at the other end (I think that this is what happened in my case at least).

I think that if we are patient and careful when removing the 40 pin headers we will avoid bending the pins.
Doug.
Building Management Systems Engineer.

Man in a van
Posts: 54
Joined: Sat Dec 27, 2014 2:41 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Thu Jan 22, 2015 2:35 pm

Exactly what happened to me ;)

Maybe a spray with Servisol lubricant (or similar other product)?

markusA
Posts: 7
Joined: Thu Jan 22, 2015 9:05 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Thu Jan 22, 2015 9:17 pm

Ooh, I want one of these, it's exactly what I've been looking for. Is it possible to get one? I'm new to the forum and don't seem to be able to pm yet?

[IDC]Dragon
Posts: 41
Joined: Mon Dec 16, 2013 9:47 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Sat Jan 24, 2015 8:19 am

Yes, it's possible to get a board. Do some good postings until you have credibility to send me a PM. :D
I'm not aware of such limitation, probably it works by now, after your first post?

Jörg

markusA
Posts: 7
Joined: Thu Jan 22, 2015 9:05 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Sat Jan 24, 2015 8:56 am

Awesome, PM sent. :)

foresto
Posts: 14
Joined: Thu Feb 05, 2015 12:34 am

Re: TinyTOSLINK (digital audio output) now for B+, too

Thu Feb 05, 2015 12:40 am

Jörg, this is outstanding. It fills a gap that kept me away from the Raspberry Pi for use as a media player.

Do you know whether it will work on the Raspberry Pi 2?

markusA
Posts: 7
Joined: Thu Jan 22, 2015 9:05 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Thu Feb 05, 2015 6:45 am

I just received mine and it is a beauty. Very professionally done, impressive to say the least.
In the documentation for the Pi 2 it says it's compatible with the B+ but it would be nice to hear confirmation from IRL trials. :)

User avatar
DougieLawson
Posts: 30505
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website

Re: TinyTOSLINK (digital audio output) now for B+, too

Thu Feb 05, 2015 10:18 am

markusA wrote:I just received mine and it is a beauty. Very professionally done, impressive to say the least.
In the documentation for the Pi 2 it says it's compatible with the B+ but it would be nice to hear confirmation from IRL trials. :)
The official line I've seen is that any hardware add-on that works with a A+/B+ will work with a 2B. The board is identical to the B+ except it's got a BCM2386 chip on the top and a 1GB RAM chip on the bottom.
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
MQTT Evangelist
Twitter: @DougieLawson

Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3

Please post ALL technical questions on the forum. Do not send private messages.

orsman
Posts: 1
Joined: Thu Feb 05, 2015 10:21 am

Re: TinyTOSLINK (digital audio output) now for B+, too

Thu Feb 05, 2015 10:25 am

Hi Joerg, this looks really nice! I would love to buy a board from you. I hope I can send you an PM after I have posted this reply.
;)

testbert
Posts: 1
Joined: Fri Feb 06, 2015 8:26 am

Re: TinyTOSLINK (digital audio output) now for B+, too

Fri Feb 06, 2015 8:57 am

Hi Joerg,

is it using I2S or is the signal transferred by another mehtod (e.g. DA --> AD conversation)? I thought (because all other implementations do it like that) I2S has to be taken from the P5-Header.
In general your TinyTOSLINK for Raspy B+ seems to be a really great deal, in order to have a galvanic isolated digital out on the Raspi.

Regards,
Stefan

pleasure
Posts: 4
Joined: Tue Jan 06, 2015 8:04 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Fri Feb 06, 2015 12:15 pm

Hi Jörg,

I have tried this with a pi 2 using openelec 5.01.

It now has a newer kernel (3.18) that uses a device tree instead of modules.

No luck getting the card recognized yet.

I will report back if I have any success.

Regards,

Richard

pleasure
Posts: 4
Joined: Tue Jan 06, 2015 8:04 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Fri Feb 06, 2015 12:58 pm

Hi Jörg,

Great news, as expected this works perfectly with the Pi2. (on openelec 5.01)

With the new kernel the sound cards are configured in a different way.

This post explains it succinctly.

http://forum.kodi.tv/showthread.php?tid ... pid1916788

Once again, great little addon

Regards,

Richard

[IDC]Dragon
Posts: 41
Joined: Mon Dec 16, 2013 9:47 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Fri Feb 06, 2015 5:42 pm

Hi Richard, thanks for the pointer.

Today my Raspberry Pi 2 arrived, and wasn't working out of the box. My distro was freshly upgraded, but still it woudn't boot from the old card. I had to prepare a new one, used Noobs for that.

To summarize the device tree business:
As far as I understand, a device tree is a set of dependencies for drivers. It is defined by a binary file called overlay, placed into /boot. Since this is the FAT32 part of the card, it's now even possible to prepare that on the card under Windows. The overlay file is referenced in a to-be-added line in config.txt.
Overlays and some documentation can be found here, we need the file "hifiberry-digi-overlay.dtb" from it:
https://github.com/raspberrypi/firmware ... t/overlays
In config.txt you need to add a line:
dtoverlay=hifiberry-digi

It can be done live on the board as well, with e.g. the following:

Code: Select all

sudo su
cd /boot
wget https://github.com/raspberrypi/firmware/raw/master/boot/overlays/hifiberry-digi-overlay.dtb
echo "dtoverlay=hifiberry-digi" >> config.txt
Jörg

Macscully
Posts: 1
Joined: Sun Feb 08, 2015 1:50 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Sun Feb 08, 2015 1:56 pm

Hi Jörg,

Great Work! I'm really interested in buying one. I just bought a RaspberriPi model B and the only thing it is missing is a decent sound output.

tricky
Posts: 1
Joined: Mon Feb 09, 2015 1:28 pm

Re: TinyTOSLINK (digital audio output) now for B+, too

Mon Feb 09, 2015 1:39 pm

Hi Jörg,

I am using my Pi as a home media system and was nearly scrapping my non HDMI sound amp till I read this : )
This is a great idea for the Pi.
How could I get hold of a TinyTOSHLINK board??

Cheers
Rick

Return to “B+ addons”

Who is online

Users browsing this forum: No registered users and 2 guests