Commit 796305
2026-04-26 10:31:30 Jannik Eckhardt: -/-| /dev/null .. manndb/pcm5102a dac on raspberry pi.md | |
| @@ 0,0 1,34 @@ | |
| + | # PCM5102A DAC on Raspberry Pi |
| + | |
| + | 1. Connect a wire to all pins except SCK |
| + | 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) |
| + | 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 |
| + | 4. 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)| |
| + | |
| + | 5. Edit /boot/config.txt on your Raspi: |
| + | |
| + | comment out `dtparam=audio=on` (put a # in front), add `dtparam=i2s=on` and `dtoverlay=hifiberry-dac` |
| + | |
| + | 6. Create /etc/asound.conf: |
| + | ``` |
| + | pcm.!default { |
| + | type hw |
| + | card 0 |
| + | } |
| + | ctl.!default { |
| + | type hw |
| + | card 0 |
| + | } |
| + | ``` |
| + | |
| + | 7. Reboot your raspi! |
| + | 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! |
| + | 9. Test: speaker-test -c2 -twav -l7 |