tda1387 dac pcb "front end"

Member
Joined 2008
Paid Member
Update - December 14, 2018

Since starting this thread, it's gone in a lot of different directions and much ground has been covered. So with this edit, I'm trying to provide a table of contents of sorts, mostly highlighting all the different designs that have been presented, and highlighting other particularly interesting sub-threads along the way.

1. Front-end v1.0
2. Single-ended RPI HAT v1.2
3. Balanced RPI HAT v3.0
4. Abraxalito's lingDAC
5. Front-end v2.0
6. Schematic for a barebones tda1387 implementation
  • Suitable for breadboard or point-to-point implementation
  • Intent is to be cheap, quick and relatively easy to build, even for beginners
  • Post #297

7. RPI DAC Front-End v1.0.0
  • Intended to capture some of the concepts of the Front-End boards, but in a form factor that is suitable for use with a Raspberry Pi (but can also be used standalone)
  • Build pics in post #236
  • post #402 has schematic, Gerbers, BOM and KiCad files

8. RPI DAC HAT (also standalone) single-ended v1.6
  • Uses MAX6071 precision voltage reference instead of tl431 for I/V transistor base voltage (2.5v)
  • Other small tweaks
  • See post #409 for schematic, Gerberes, BOM, KiCad files, and prototype build pics


Original Post - October 12, 2017

Based on this tda1387x8 thread, I developed a bit of an affinity for the sound of the old tda1387 DAC chip. The topic of the linked thread was a standalone DAC that had eight of those chips paralleled; it also had optical or coaxial SPDIF input (and optional USB input), single-ended output, and a basic op-amp IV circuit. Some fairly simple mods (detailed in the wiki) made it go from just OK to quite engaging and enjoyable (at least to my ears).

Taking all the lessons learned from modding that DAC, and some of my personal goals, I wanted to create a basic "front end" DAC with these chips. Attached are images of what I came up with, with the following features/goals in mind:
  • I2S input: use an SBC, SPDIF receiver, XMOS, etc.
  • User-supplied power supply: be as cheap/simple or fancy as you want.
  • Adding capacitance to pin7 of the tda1387 chip was one of the biggest gains in sound quality improvement (particularly bass); this board has room for 2x 8mm pin7 caps per tda1387 chip.
  • Solder pads on the bottom of the board for up to four 10mm caps for the tda1387 chip's VDD supply (pin5); this allows tda1387 chips to be "stacked", boosting current output (e.g. this could be made into a headphone amp).
  • Uses a logic inverter chip (74HC86) to optionally invert the I2s DATA signal to half the tda1387 chips. This allows for balanced output. Note this is optional, a jumper setting allows the user to select single-ended output mode (i.e. don't invert the data).
  • Has jumper pins for user-selectable simple passive I/V, or direct current-output for a custom I/V scheme.

I think this is pretty flexible: you could get up and running quickly with only one tda1387 chip and passive IV; or you could go crazy and max out all the caps, stack multiple tda1387 chips, and implement the fanciest IV scheme you can imagine. Or anything in-between!

Also, the package and pinout for the tda1543 is the same as the tda1387. I see no reason why this board couldn't be used for the tda1543 as well. Edit: this is incorrect, the package sizes for tda1543 and tda1387 are different.

Note: I only just now rendered the gerber files, and looking at the bottom of the board, I see the big pin5 cap footprints interfere with the little pin5 SMD caps. Should be easy enough to fix.

Happy to hear any comments, critiques, suggestions.
 

Attachments

  • schem-20171011.jpg
    schem-20171011.jpg
    468.6 KB · Views: 3,649
  • board-20171011.png
    board-20171011.png
    163.4 KB · Views: 3,682
  • pcb_front-20171012.jpg
    pcb_front-20171012.jpg
    285.1 KB · Views: 3,225
  • pcb_back-20171012.jpg
    pcb_back-20171012.jpg
    150.8 KB · Views: 3,427
Last edited:
Hope this isn't too much of a 'fly in the ointment' but the SMT package of TDA1543 is rather different (SO16 wide) from that of TDA1387 (SO8). As a result I reckon it would be very tricky to try to fit them here. The pin orderings and positions are the same though, not that that's too much consolation.
 
Member
Joined 2008
Paid Member
Hope this isn't too much of a 'fly in the ointment' but the SMT package of TDA1543 is rather different (SO16 wide) from that of TDA1387 (SO8). As a result I reckon it would be very tricky to try to fit them here. The pin orderings and positions are the same though, not that that's too much consolation.

D'oh, I just saw that the pinouts were the same, and didn't realize that the package size was different. No matter though, tda1543 compatibility wasn't an explicit design goal---I just (wrongly) assumed it was a useful side-effect.

Although I suppose an enterprising individual could get creative with little jumper wires and the soldering iron and make it work. That person ain't me! ;)
 
Member
Joined 2008
Paid Member
In hindsight, perhaps designing this for tda1543 from the start would have been the smarter move. It would be much easier to fit the tda1387 into the tda1543 footprint, rather than the other way around. All think about doing that, as I'm working on learning KiCAD (in place of Eagle), and that would be a good exercise. Available time will be the main factor though.

At any rate, here's the latest and greatest. Passes all automatic checks, and I don't see any obvious errors. Thinking of submitting to the fab house.
 

Attachments

  • tda1387_gerber_back-20171013.png
    tda1387_gerber_back-20171013.png
    356 KB · Views: 358
  • tda1387_gerber_front-20171013.png
    tda1387_gerber_front-20171013.png
    525.4 KB · Views: 362
  • board-20171013.png
    board-20171013.png
    166.2 KB · Views: 487
  • schem-20171013.jpg
    schem-20171013.jpg
    468.6 KB · Views: 3,041
Member
Joined 2008
Paid Member
First, a couple more relevant links that might be interesting:

Dirty Dac, 16x TDA1387 dual mono symmetrical.

help me with my dac design?

Second, I've re-drawn this board using KiCAD. The built-in 3D viewer alone is worth the price of admission (KiCAD is free/open source, so the only cost is the learning time).

Anyway, here's a "version 2" of the board. Or maybe "version 1.1" is more appropriate, since it's only a minor tweak on the original design. Only one pin7 cap per tda1387 chip, but with a bigger (10mm) footprint. Also, all components are on the top of the board. And I created three separate ground planes, one each for digital, analog, and power.
 

Attachments

  • tda1387x8_front_end_v2.sch.jpg
    tda1387x8_front_end_v2.sch.jpg
    177.3 KB · Views: 598
  • tda1387x8_front_end_v2.3d1.jpg
    tda1387x8_front_end_v2.3d1.jpg
    133.6 KB · Views: 705
  • tda1387x8_front_end_v2.3d3.jpg
    tda1387x8_front_end_v2.3d3.jpg
    135.3 KB · Views: 538
  • tda1387x8_front_end_v2.3d2.jpg
    tda1387x8_front_end_v2.3d2.jpg
    82.5 KB · Views: 481
Member
Joined 2008
Paid Member
I received the boards for the first design (haven't submitted "v2" yet). I had these made by Elecrow. They happened to be having a sale when I submitted: $4.90 for 10 boards (up to 10x10), and $4.80 air mail shipping to USA. Under $10 for 10 boards---and they actually sent me 13 boards!

If anyone is interested, I probably only want to build one or two of these at most. So if you cover shipping, I'll give away the board itself. If you're in the Chicago area, stop by and grab a couple!
 

Attachments

  • IMG_20171028_080243662.jpg
    IMG_20171028_080243662.jpg
    863.2 KB · Views: 426
  • IMG_20171028_080235893.jpg
    IMG_20171028_080235893.jpg
    940.3 KB · Views: 462
  • IMG_20171028_080222600.jpg
    IMG_20171028_080222600.jpg
    923.6 KB · Views: 446
Although I've got five or so in my bin, I've used only a single TDA1387 in my experiments (all in Philips CDP that orig. used a 1543).

I know much of the romance with this DAC chip began with the parallel x 8 design orig. offered a few years ago.

How much sonic benefits actually (subjectively) accrue when more than one TDA1387 are stacked?

I'm assuming parallel x 8 is some sort of sweet-spot?
 
How much sonic benefits actually (subjectively) accrue when more than one TDA1387 are stacked?

I've not noticed there being sonic benefits from paralleling chips. Rather paralleling gives more flexibility over design of the I/V stage - for example it allows lower output impedance by virtue of switching higher currents. The 1mA total swing of a single chip is low by DAC standards - the lowest of any multibit DAC that I'm aware of.
 
Member
Joined 2008
Paid Member
I know much of the romance with this DAC chip began with the parallel x 8 design orig. offered a few years ago.

That was, quite literally, my inspiration for this design. Romance is an apt word. I was underwhelmed with my first foray into NOS DACs, but that x8 DAC changed my mind. But there comes a point where it just gets messy to continue to hack on the x8 board. So my intent here is to create a modular "framework" for folks wanting to play with the tda1387 chip. Folks might be limited to Richard and I, but I'm OK with that! At the end of the day, I simply enjoy designing PCBs, and ever since I first took a soldering iron to that x8 DAC, I've wanted to design my own tda1387 board.


How much sonic benefits actually (subjectively) accrue when more than one TDA1387 are stacked? I'm assuming parallel x 8 is some sort of sweet-spot?

Dunno. I used eight only because that's what the x8 DAC used. But you do need at least two chips if you want balanced output (which I do). Other than wasting PCB space, there's no reason you have to populate all eight chips. The intent is to be flexible, to allow for relatively easy trial-and-error.
 
Member
Joined 2008
Paid Member
Ill take two boards if u have them matt

I'll take a board if still available :)
Nice of you to offer them for just shipping cost.

Yup, still have all 13 boards! Only just now ordered the parts to do the build up. I need only two or three at most, the rest are free to whoever wants them.

However, nige2000 and Mayday, based on shipping costs, I suspect it might be cheaper for you just to order your own boards straight from Elecrow. When I placed my order, it was $5 for the boards and $5 shipping from China to the USA. I'm assuming Elecrow shipping to your countries is the same as it is for the USA.

Some quick Internet research suggests $20 might be as cheap as I can get to ship to Ireland or Sweden.

Not trying to discourage you, just don't want you to waste money. At a minimum, you might want to wait until I build up the first one to make sure I didn't make any mistakes!

I attached the Gerber files I sent to Elecrow, if you want to go that route.
 

Attachments

  • tda1387x8_front_end_gerber-20171013.zip
    153.7 KB · Views: 242
Member
Joined 2008
Paid Member
Hope they work!

Spent way longer than I expected soldering a couple of these up. For the ICs and SMD components, I used solder paste and a skillet. I used too much solder paste, so ended up spending way too much time fixing solder bridges. Lesson learned: less is more with ICs and solder paste. Very frustrating.

Anyway... here's to hoping they actually work!
 

Attachments

  • IMG_20171111_172813695.jpg
    IMG_20171111_172813695.jpg
    216 KB · Views: 482
  • IMG_20171111_172800118.jpg
    IMG_20171111_172800118.jpg
    219.4 KB · Views: 925
  • IMG_20171111_172729083.jpg
    IMG_20171111_172729083.jpg
    196.4 KB · Views: 976
  • IMG_20171111_172707746.jpg
    IMG_20171111_172707746.jpg
    188.5 KB · Views: 1,047
Member
Joined 2008
Paid Member
They actually work!

Playing music as I type this.

The first test with the first board was a total failure: sound was complete noise. Turns out I missed a solder bridge across two pins of the HC86 logic chip. Before fixing that, I tried the second board: I got something recognizable as music, but still fairly distorted. I removed the solder bridge on the first board, and it was now the better sounding of the two boards, but still not perfect.

For I2S source, I'm using an Amanero (USB to I2S) device that I've had now for a couple years. I had to tweak the settings a bit. The sound cleaned up further with the right settings; see attached screenshot.

There was still a bit of "fuzz" on both boards, so I used a flashlight to look more closely at the tda1387 IC pins. Yup, more solder bridges (or at least partial ones). Thank goodness for copper solder wick!

Now they are definitely both playing pretty clean as far as I can tell.

The laptop didn't have ASIO drivers set up, so I installed that Foobar plugin. That seemed to clean things up a tiny bit too (or maybe my imagination). But I definitely wasn't "bit perfect" prior to that, as I could still hear Windows system sounds layered on top of the music. Now those are gone, Foobar has exclusive control of the Amanero.

I went ahead and added another eight pin7 caps to one of the boards, and installed the pin5 polymer caps on the board's bottom. Can't really tell any difference. But then again, I'm still in a pure test config.

Main lesson here, for me anyway, is to use the solder paste very sparingly. I'm certain I spent more time cleaning solder bridges than if I'd just hand-soldered the SMD stuff in the first place.

Thus far all tests have been with single-ended output. Next step is to solder up some XLR connectors so I can do a test of the balanced output.
 

Attachments

  • amanero_settings_tda1387x8-20171112.jpg
    amanero_settings_tda1387x8-20171112.jpg
    92.5 KB · Views: 422
  • IMG_20171112_134644648.jpg
    IMG_20171112_134644648.jpg
    176 KB · Views: 465
  • IMG_20171112_134629470.jpg
    IMG_20171112_134629470.jpg
    273.9 KB · Views: 503