Blame

796305 Jannik Eckhardt 2026-04-26 10:31:30
1
# PCM5102A DAC on Raspberry Pi
2
3
1. Connect a wire to all pins except SCK
4
2. Short the 2 pads on the top of the PCB near the SCK pin (this shorts SCK to GND so the chip generates its own SCK signal)
5
3. On the back side, for all HxL pads, connect the middle pad with the right pad, except for H3L, connect the middle pad with the left pad
6
4. Connect to your Raspi GPIO:
7
8
|DAC|Raspi|
9
|---|------|
10
|BCK|Pin 12|
11
|DIN|Pin 40|
12
|LCK|Pin 35|
13
|GND|Pin 6 (or any GND)|
14
|VIN|Pin 2 (or any 5V)|
15
16
5. Edit /boot/config.txt on your Raspi:
17
18
comment out `dtparam=audio=on` (put a # in front), add `dtparam=i2s=on` and `dtoverlay=hifiberry-dac`
19
20
6. Create /etc/asound.conf:
21
```
22
pcm.!default {
23
type hw
24
card 0
25
}
26
ctl.!default {
27
type hw
28
card 0
29
}
30
```
31
32
7. Reboot your raspi!
33
8. Connect your AUX cable: You will need to use some force to push the AUX cable all the way in. If a gold contact sticks out, its not all the way in yet!
34
9. Test: speaker-test -c2 -twav -l7