WallaceIT
Posts: 3
Joined: Tue Mar 26, 2013 3:11 pm

Simple I2S DAC based on PCM5102A

Tue Oct 01, 2013 5:14 pm

Hi,

I'd like to share with you my new simple I2S DAC based on the excellent PCM5102A chip by TI.

Attached you will find the schematic and the entire Kicad (http://www.kicad-pcb.org/display/KICAD/ ... ware+Suite) project. In the kicad.zip archive there's two folders, named v1 and v2: I only built v1 PCB but v2 looks much better (and you can find it on OSHPARK: http://oshpark.com/shared_projects/1IBsWB1b).

According to the KISS principle it takes +5V supply from the RPi itself: it probably isn't audiophile-grade but (to me) sounds good enough.

PCM5102A is already supported by koalo RPi kernel branch: https://github.com/koalo/linux (a big thank to him for his hard work on the I2S driver!)

Feel free to use it for whatever you want (is Open Hardware!).

WallaceIT

schematic: https://www.dropbox.com/s/q9ffrd3g8og1z ... A.pdf?dl=0
kicad zip file: https://www.dropbox.com/s/8000tk5fxzrhw ... d.zip?dl=0

Image
Last edited by WallaceIT on Sun Sep 17, 2017 1:37 pm, edited 1 time in total.

athelander
Posts: 1
Joined: Fri Feb 21, 2014 11:11 pm

Re: Simple I2S DAC based on PCM5102A

Fri Feb 21, 2014 11:40 pm

Dear Wallace,

I've ordered up the PCB's from OSH park (minimum 3) and sampled 3 pcs of PCM5102A+TPS73133 from TI. Found some SMD's and started soldering.

It works perfect! And I build 3 for half the price of one HIFIberry DAC.

Tanks for your work!

Br,
Andreas
Attachments
foto 1.JPG
rpi and dac
foto 1.JPG (40.97 KiB) Viewed 15578 times

Eradicatore
Posts: 23
Joined: Sun Jul 29, 2012 1:21 am

Re: Simple I2S DAC based on PCM5102A

Sun Jul 20, 2014 8:02 pm

Hi Wallace,
I too made a reference design board. I'm debugging it now and wondered if you had any debugging tips. I see what looks like good bck and lrck signals and voltages out of pi p5 header and into pcm5102a. I checked for shorts an voltage pins on 5102a and from my regulator. I just don't get a signal from L/R.

One thing I'm worried about is xmt. I tied this to the 3.3 vout of the 5v to 3.3v regulator.but you use a voltage divider. Why? Timing?

Any other tips? I will review i2s with logic analyzer next but since its using a SqueezePlug.De image I think i2s is probably fine.

Is there any better way to know the pcm5102a is "alive" ?

User avatar
PeterO
Posts: 3742
Joined: Sun Jul 22, 2012 4:14 pm

Re: Simple I2S DAC based on PCM5102A

Sun Jul 20, 2014 8:06 pm

The OP hasn't posted anything for over a year, so I think you will be unlikely to get a reply :-(
PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),Aeromodelling,1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

Eradicatore
Posts: 23
Joined: Sun Jul 29, 2012 1:21 am

Re: Simple I2S DAC based on PCM5102A

Mon Jul 21, 2014 2:38 am

Yea, true. But maybe someone else knows something? I can hope at least. :-) Anyway, it was good that he shared his schematic and cad files.

skalskit
Posts: 3
Joined: Sat Mar 18, 2017 3:24 pm

Re: Simple I2S DAC based on PCM5102A

Sat Mar 18, 2017 3:27 pm

It works perfect from the start. Use overlay config for hifiberry-dac. :D

lordhex
Posts: 1
Joined: Sun Mar 19, 2017 8:19 pm

Re: Simple I2S DAC based on PCM5102A

Sun Mar 19, 2017 8:21 pm

I've ordered the boards, and I have to say that it works super! Ordered the PCM 5102 and the parts from http://www.ti.com directly. From gikey I got . Then got the capacitors and resistors from amazon.com - 0603 SMD size.

criznach
Posts: 1
Joined: Fri Apr 14, 2017 6:04 pm

Re: Simple I2S DAC based on PCM5102A

Fri Apr 14, 2017 6:07 pm

Does anyone have a copy of the schematic? The dropbox links appear to be dead.

amihaita
Posts: 1
Joined: Sat Jun 14, 2014 12:15 pm

Re: Simple I2S DAC based on PCM5102A

Sat May 13, 2017 10:01 pm

For those who bought MJCU-5102 (based on PCM5102A) DAC, here is the schematic for Raspberry Pi model B.
Attachments
CJMCU-5102 DAC connexions.png
CJMCU-5102 DAC connexions.png (33.74 KiB) Viewed 5869 times
CJMCU-5102.png
CJMCU-5102.png (45.58 KiB) Viewed 5869 times

fruithuibje
Posts: 1
Joined: Wed Sep 13, 2017 3:02 pm

Re: Simple I2S DAC based on PCM5102A

Wed Sep 13, 2017 3:32 pm

criznach wrote:
Fri Apr 14, 2017 6:07 pm
Does anyone have a copy of the schematic? The dropbox links appear to be dead.
Yes, component list would be nice.. Without that the PCB layouts are pretty useless :(

skalskit
Posts: 3
Joined: Sat Mar 18, 2017 3:24 pm

Re: Simple I2S DAC based on PCM5102A

Wed Sep 13, 2017 7:41 pm

Since WallaceIT's dropbox is unreachable

I put WallaceIT's files in :

https://www.dropbox.com/sh/4rptrcbe0af5 ... -pBqa?dl=0

I mounted the circuit according to his guidelines on the board : https://oshpark.com/shared_projects/1IBsWB1b

and it worked perfectly from the start. Chips can be purchased via farnell.com.

However, I would advise to try use pcm5122 instead of pcm5102a - very similar solution but it has capacity of volume control via i2c. and alsa driver description below and its only a few bugs more. I:

Application circuits responsively : http://www.ti.com/lit/ds/symlink/pcm5102a.pdf http://www.ti.com/lit/ds/symlink/pcm5122.pdf

The board can be ordered via oshpark as well:
https://oshpark.com/shared_projects/MmVdE7fl

Try on your own risk - I have not tested it yet.

Regards,
Tomasz

Novice1
Posts: 1
Joined: Wed Dec 27, 2017 2:08 pm

Re: Simple I2S DAC based on PCM5102A

Wed Dec 27, 2017 2:27 pm

Hi Thomasz.
I am a beginner and possess one Raspberry Pi 1 with 26 pins working with pi Core. As suggested by you, I would like order one 12S DAC board based on PCM5122a. I have a few doubts: 1. Is this board will be compatible with my RSP p1? After installing the dac board, are there any parametres to be done? If it is yes, what are the commands? If there are any links of tutorial, it is more welcome.Thank you in advance for your guidance. Novice1 :roll:

skalskit
Posts: 3
Joined: Sat Mar 18, 2017 3:24 pm

Re: Simple I2S DAC based on PCM5102A

Fri Dec 29, 2017 7:33 pm

Hi,

What exactly board you have - the one with 26 gpios (https://www.raspberrypi.org/documentation/usage/gpio/) or version 1 with 40 gpios (https://www.raspberrypi.org/products/)?

If this is one with 26 gpio (RASPBERRY PI MODELS A AND B) there should be an eight holes to solder a eight pin connector below 26 gpios marked P1 - this is the place to insert the card in the connector.

Although the card matches electrically pi with 40 pins - it has to be connected via wire since the pinout does not match.

The instruction you may find at http://masterandrey.com/posts/en/dac_ra ... i_pcm5102/

Regards.
Tomasz

User avatar
rpdom
Posts: 12119
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

Re: Simple I2S DAC based on PCM5102A

Fri Dec 29, 2017 7:59 pm

skalskit wrote:
Fri Dec 29, 2017 7:33 pm
If this is one with 26 gpio (RASPBERRY PI MODELS A AND B) there should be an eight holes to solder a eight pin connector below 26 gpios marked P1 - this is the place to insert the card in the connector.
Only the later versions of the 26-pin B had the extra eight holes. The original ones didn't.

triblax
Posts: 1
Joined: Tue Feb 13, 2018 7:49 am

Re: Simple I2S DAC based on PCM5102A

Tue Feb 13, 2018 7:51 am

Hi, I need a help....
I have Rpi Zero W + GY-PCM5102

it's wired by pins Vcc 5v, GND, PIN 12, 35,40 on RPI, and it's work fine as HifiBerry DAC on MoodeAudio or Volumio.

BUT IT's works ONLY what I touch with fingers some of PCB parts of PCM or Rpi!
What can be wrong??? some more GND pins? or what

Return to “Add-ons”

Who is online

Users browsing this forum: No registered users and 4 guests