Interfacing Raspberry Pi and TPA3116D2 amp - diyAudio
Go Back   Home > Forums > Amplifiers > Class D

Class D Switching Power Amplifiers and Power D/A conversion

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 2nd August 2014, 02:19 PM   #1
xrk971 is offline xrk971  United States
diyAudio Member
 
xrk971's Avatar
 
Join Date: Oct 2012
Location: Virginia
Default Interfacing Raspberry Pi and TPA3116D2 amp

There has been a lot of OT discussions in the main 3116 thread and I wanted to give this topic it's own thread. Very interesting discussions so far from here:
TPA3116D2 Amp

Let's restart the discussion here.
Thanks,
X

Here was the last significant post from previous thread to get things going.
Originally Posted by Downunder55 You are so right about the Raspberry Pi ! Interesting, .....I am in the process of building an all-in-one music server based on an Audiobah, Rasp PI, HiFiBerry Dac etc. There will be no other inputs other than directly from the HiFiBerry DAC PCB to the amp via an Alps Pot. http://i0.wp.com/www.hifiberry.com/w...size=251%2C167 Based on your comment would I need to ground this connection ? .. maybe from the pot ? Hi, well, I can share my experience as I have a Rapsberry, a hifiberry and a TP3116. In fact, I have two configurations: 1) for home, another minipc with a 9023 DAC + TPA 3116 2) for wy wife, Yoga teacher, raspberrypi + hifiberry + TPA3116 in a box with a battery (not finished yet) Be carrefull with Hifiberry, it is loud, and there is no hardware volume control. What I can say, is for a cheap equipment, it sounds good, except it is full of electric noise. The raspberry architecture is not good for that. A new raspberry pi is coming, well, some people say this issue is solved. So wait and see.....

Last edited by xrk971; 2nd August 2014 at 03:16 PM.
  Reply With Quote
Old 2nd August 2014, 09:05 PM   #2
diyAudio Member
 
Join Date: Jul 2005
Location: Aotearoa
Quote camelator:
"One on the USB port, and it is correct to say by using I2S there is less noise.
Another problem on the power filter. For this one, Same noise issue with I2S and USB. Improvements done on new Raspberry."

I have used Rpi with both USB and I2s and got no noise unless there was a SW issue.

Agree USB is poorly implemented on the Pi and better not sharing the DAC with Wifi or other use.
I2S is theoretically cleaner but the way the I2S clock is derived is not the best on the Pi. So unfortunately neither USB or I2S are perfect by any means but you still can get very good results at a lower cost.

An improved PS filter may help tho a good linear PS supplying the Pi (and DAC) is probably a better approach.

I have moved to the Beagelbone Black which I prefer. At the moment via USB but once the "Botic Cape" is available (see Building an open embedded audio applicance.) will use I2S.

Obviously this is not specific to the TPA3116 and there are plenty of threads around covering these topics so I won't post further.

Last edited by ChrisMmm; 2nd August 2014 at 09:23 PM.
  Reply With Quote
Old 2nd August 2014, 10:27 PM   #3
diyAudio Member
 
Join Date: Feb 2013
Quote:
Originally Posted by ChrisMmm View Post
Quote camelator:


I have used Rpi with both USB and I2s and got no noise unless there was a SW issue.
Agree with your post, and lucky you are.
I have a cubie board, and a raspberry.
Definitely, cubieboard sounds better with an external dac:
there is a small "hmmm" in the speaker with raspberry ... Same DAC.
how to explain that?


I would like to try BBB but not very confident yet about I2S and external DAC.


Maybe I have to read more posts for feedbacks....
  Reply With Quote
Old 2nd August 2014, 10:49 PM   #4
diyAudio Member
 
Join Date: Jul 2005
Location: Aotearoa
Well I know I said I wouldn't post any more but...

I have Rpi, Wandboard and BBB. All sound same to me using USB DACs.

No platform is ideally set up for I2S connection as far as I know, in terms of using a clean pair of clocks specific to audio. I think the Cubi uses PLL, Rpi has this weird division system using a single clock, BBB has a single clock and converts 44.1 to 48k internally before sending to I2S.

But the BBB is the only one with the ability to use an external clock(s) which is what the Botic Cape is all about. Seems to me this is the only real serious contender for use with I2S.

OTOH USB based connection with a good USB interface (Amanero etc.) and DAC sounds great to me!
  Reply With Quote
Old 3rd August 2014, 12:11 AM   #5
xrk971 is offline xrk971  United States
diyAudio Member
 
xrk971's Avatar
 
Join Date: Oct 2012
Location: Virginia
you can post all you want in this thread...
  Reply With Quote
Old 3rd August 2014, 12:31 AM   #6
xrk971 is offline xrk971  United States
diyAudio Member
 
xrk971's Avatar
 
Join Date: Oct 2012
Location: Virginia
For us noobs getting into Rpi and DAC's etc to interface with our 3116's can someone give some links for some good pi SBC's and DAC's, etc - everything one would need to make a nice sounding player for low cost?
Thanks,
X
  Reply With Quote
Old 3rd August 2014, 12:59 AM   #7
diyAudio Member
 
Join Date: Jul 2005
Location: Aotearoa
Quote:
Originally Posted by xrk971 View Post
For us noobs getting into Rpi and DAC's etc to interface with our 3116's can someone give some links for some good pi SBC's and DAC's, etc - everything one would need to make a nice sounding player for low cost?
Thanks,
X
BIG subject!

I have been playing with Rpi, BBB etc. for a while now and it has evolved over that time.

I2S is the holey grail for connecting these platforms to your DAC but no real winner here, all are flawed at the moment. The Botic Cape for the BBB is our best bet there Building an open embedded audio applicance.

But, good news, USB sounds pretty darned good to me. My latest USB DAC has an Amanaro interface with Subbu DAC modified to accept I2S from the Amanero, I am very happy with that as I await the Botic.

Here are some links:
H i F i D U I N O | Lot of Value, Little Money some excellent info on the BBB and other platforms in this blog
http://volumio.org/ has some good stuff in the forums even if you aren't using Volumio
If you use LogitechMediaServer as I do then here are some further links
https://sites.google.com/site/picoreplayer/home SW I use for the Pi
Announce: Squeeze on Arch - developer version SW I use on the BBB and Wandboard. This is the guy who wrote Squeezelite which is the player SW to use if using LMS on your server.

Have fun!

Last edited by ChrisMmm; 3rd August 2014 at 01:01 AM.
  Reply With Quote
Old 3rd August 2014, 04:10 AM   #8
diyAudio Member
 
Join Date: Jul 2005
Location: Aotearoa
Soundcheck has a good blog also soundcheck's - audio@vise: Ride my Truck
  Reply With Quote
Old 3rd August 2014, 07:33 AM   #9
Morfeus is offline Morfeus  Germany
diyAudio Member
 
Join Date: Feb 2006
Location: Berlin
Quote:
Originally Posted by xrk971 View Post
For us noobs getting into Rpi and DAC's etc to interface with our 3116's can someone give some links for some good pi SBC's and DAC's, etc - everything one would need to make a nice sounding player for low cost?
Thanks,
X
I would always use Raspbian for audio. Some of the core developers for i.e. the USB stuff work on Raspbian, so further development is seen there first.

DAC: the easiest way and also low cost is wether Hifiberry DAC or Hifiberry Digi:

HiFiBerry - High quality Raspberry Pi Audio | Audiophile 24/96, 24/192 sound cards (Audio DAC and SPDIF out) for the Raspberry Pi, audio out, audio cards, audio projects

Both are clip on, drivers are included in Raspbian. The DAC gives you direct analogue output, the digi gives you s/pdif output, both optical and cinch to connect any s/pdif DAC you want.

I would avoid USB audio on the raspberry, at least if you want to play highres files.
  Reply With Quote
Old 3rd August 2014, 08:05 AM   #10
NICKEL is offline NICKEL  New Zealand
diyAudio Member
 
Join Date: Aug 2005
Default Another Flavour - IQaudIO DAC

ChrisMmm built me Rpi & IQaudIO DAC combo using I2S.

He said its was a close run thing with his 9023.

Big thread here

IQaudIO Pi-DAC 24/192 DAC for Raspberry Pi

Currently, I'm using one of Chris's modified 3116s with a BuffaloII SPDIF to a BBB via XMOS with my Fostex 168 BIBs. Fantastic SQ
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
My DAC for the Raspberry Pi usul27 Digital Source 140 15th August 2014 11:53 AM
DSP for the Raspberry Pi usul27 Digital Line Level 28 25th June 2014 06:44 AM
miniAMP and raspberry pi kp93300 miniDSP 0 3rd March 2014 03:38 AM
Raspyfi (raspberry pi) regulators kentdream Digital Source 0 18th November 2013 07:59 AM
Raspberry Pi & accessories Nikitas Swap Meet 5 5th July 2013 11:47 AM


New To Site? Need Help?

All times are GMT. The time now is 02:30 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2