IQAudio Soundcard - opencardev/crankshaft GitHub Wiki
You don't need all of these steps if you're using Crankshaft-NG, just select your soundcard and reboot if you're on NG
To get the IQAudio pHAT GPIO Soundcard to work, you will need to tweak a few settings in the OS, please follow the following steps
- Remove the SD Card from the Pi, use a card reader to edit config.txt
- Please add
dtoverlay=iqaudio-dacplus
to config.txt - Please add or uncomment the following lines in config.txt
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
- Please remove or comment out
dtparam=audio=on
- Put your Pi into console mode, please see here for more info
- Use
sudo apt update
andsudo apt install wiringpi
to install wiringpi, however it should come preinstalled - Use
sudo nano /etc/rc.local
to edit the startup script - Add
gpio mode 3 out
andgpio write 3 1
beforeexit 0
- Reboot and use
speaker-test -c 5 -twav
to test your setup, the speaker should playfront left
front right
rear left
rear right
andfront centre
- If the previous step returns no issue, use
sudo nano /boot/crankshaft/crankshafe_env.sh
and change DEV_MODE back from 1 to 0
Troubleshooting
If you cannot get the sound card to be detected or the sound card does not produce any sound
- Make sure that the sound card is being sat on the Pi correctly
- unplug the display's SDA and SCL cables if you have them plugged in, those are useless and was designed for old versions of Raspberry Pis.
- Please attempt rebooting the Pi
- Try the steps above on another OS or another Pi
If you still cannot use the sound card after removing the cables, you might have received a DOA unit, please contact your retailer. If your sound card can output sound on another Pi, then their might be a problem with your GPIO, it might be burned out from a short or ESD.