PCM5102A DAC on Raspberry Pi
- Connect a wire to all pins except SCK
- 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)
- 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
- Connect to your Raspi GPIO:
| DAC | Raspi |
|---|---|
| BCK | Pin 12 |
| DIN | Pin 40 |
| LCK | Pin 35 |
| GND | Pin 6 (or any GND) |
| VIN | Pin 2 (or any 5V) |
- Edit /boot/config.txt on your Raspi:
comment out dtparam=audio=on (put a # in front), add dtparam=i2s=on and dtoverlay=hifiberry-dac
- Create /etc/asound.conf:
pcm.!default {
type hw
card 0
}
ctl.!default {
type hw
card 0
}
- Reboot your raspi!
- 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!
- Test: speaker-test -c2 -twav -l7