Physical connection![]()
The PCM5102 will generate SCK by itself, but it needs to know that it should do that, this is done by connecting SCK to GND. Otherwise your audio output will sound like a distorted, bass-boosted remix (one could, of course say, that this is a nice feature :D). Refer to pinout.xyz if you aren’t sure about the Pi’s pin numbering. Software setupThis guide explains it quite well, but I will summarise it here, in case something ever happens to that link. Editing boot.txtRun this command to open the file in a text editor: sudo nano /boot/config.txt You will need to change the following things:Uncomment (remove the # before the line): dtparam=i2s=on Comment (add a # before the line): #dtparam=audio=on Append this to the end of the file: dtoverlay=hifiberry-dac Creating asound.confRun this command to open the file in a text editor: sudo nano /etc/asound.conf And paste the following: pcm.!default { Now reboot your Raspberry Pisudo reboot Testing our changesUse the command pi@raspberrypi:~ $ aplay -l You can try playing a wav file using |
HOWTO‎ > ‎