Cheap PCM5102a board working


#1

Just a note since I’ve seen a few posts where people either tried or intended to use one of the cheap PCM5102a boards. I got one working with Zynthian this morning, man was I late to work! Choose the HifiBerry DAC+ light.

s-l300

DAC BOARD   > Raspberry Pi 3 Model B connector J8
-----------------------------------------------
SCK         > Not wired but per advice connected to (GND)
BCK         > PIN 12    (GPIO18)
DIN         > PIN 40    (GPIO21)
LRCK        > PIN 35    (GPIO19)
GND         > PIN 6     (GND) Ground
VIN         > PIN 2     (5V)

Tips were from here: https://raspberrypi.stackexchange.com/questions/76188/how-to-make-pcm5102-dac-work-on-raspberry-pi-zerow


Pimoroni pHat DAC useable
#2

Hi @emu !

Thanks for sharing!!
Would you like to write a tutorial for the wiki? :wink:

Regards,


#3

I should have mentioned, that build specifically was a stock Zynthian “Gorgona Omega” SD-image, configured for Kits v2 image using the official Raspberry Pi 7" touchscreen display.

Since all GPIO pins are available (ignoring how you choose to power the screen) its a simple "connect it up and change the Hardware/Audio via the web tool to “HifiBerry DAC+ light”. The instructions are identical to the existing * Build a simple Zynthian using only a Pi, the official RPF 7" touchscreen and a USB audio device, but I it worked after several attempts at USB (without knowing comments others made about being careful of what else is plugged into USB and in what order – oops). I’m not even sure I used a fresh image when I got the PCM5102a board working.

I’m actually going to attempt a new build using a 5" HDMI/touchscreen and a variant of the same PCM5102a board and see if I can get it going without hooking up the LCD pins like the troublesome GPIO18 that conflicts with these cheap sound boards. If I get that working, than yes I’ll be doing a write-up :slight_smile:


#4

Could you tell us the performance index of Pianoteq?
You need to open the Pianoteq UI for that


#5

Just got it working with a 5" HMDI touchscreen using the touch pins only and a different version of the PCM5102a module. Had to play with the calibration on the smaller cheaper screen as mine wasn’t responding to touch very well to get to the admin menu.
And the great thing is these are separate builds so I’ve two boxes to play with while I wait for my real V2 kit to arrive.

@mheidt: Is that something I can do from the touch screen or ssh console? I can load Pianotech 6.0 Demo and it sounds great, but I don’t see a “performance index” option. While I have a ton of parts from retro-game builds (various micro-controllers, Zero’s, etc) I don’t have a MCP23017 or more than a “Keyes” rotary encoder or two so I’m literally “pawing” at this thing getting it to load.


#6

You can login via “ssh -X zynthian.local” (from Linux), start Pianoteq and after some seconds the Pianoteq window should appear on your desktop. Then navigate to “options” (or something similar) and search for the performance settings. There is a number named “performance index”.

I also bought two of those boards and hope I can test them soon.

Regards, Holger


#7

When you ssh -X into it and start Pianoteq, a window opens up on your computer with the SSH console.
Look around. I guess you will find it one of the preference windows.


#8

@C0d3man & @mheidt (Randomly banging on the keys):

This is using the non-Waveshare 5" HDMI using only the touch pins and the “2nd DAC” described at this link.

processor : 3
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

Hardware : BCM2835
Revision : a22082


#9

Here are the two (powered off) side by side. Needless to say for simplicity I would highly recommend the Official Pi Touchscreen and the PCM5102a module with the L-shaped pin arrangement. Had I read about it before trying to hook it up I would have made “built-in” 3.3v and gnd bridges when I soldered the headers on).


#10

This is the Official Pi Display with the “1st DAC” module. Note that the Performance index is 12 compared to 15 on the other. Same version of Pi 3 (not the Pi 3 B+, I’ll grab a couple of those this weekend and see if there’s a difference).

image

processor : 3
model name : ARMv7 Processor rev 4 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4

Hardware : BCM2835
Revision : a02082


#11

yes, quite good.
My audioinjector zero setup gets a 16 and Holgers Zynthian-Less Pianoteq image 18


#12

Winner :ok_man: :smile:


#13

@c0d3man Less is best or wrist?


#14

AFAIK less is worse - I hope so, because otherwise I would have lost. :joy:


#15

And what would be the minimum necessary for Pianoteq to behave as expected?


#16

Difficult to say: If you reduce the number of voices (and can live with it) or the sample rate or the buffer size, you can use a “smaller” board if necessary.

I am using the Raspi-3B+ with settings which are ok for my playing (22500 Hz internal Srate, 64 voices, 96 bytes buffer) - perhaps not enough for a pro(?).

The absolute minimum (IMHO): Raspi-2, maybe only working as a toy…

Regards, Holger


#17

fyi, the zynthian with AudioInjector Ultra 2 is showing 16 as well.
But it needs more power and I see the yellow flash again.
I am going to buy a 6A power supply :slight_smile: