10-04-2024, 10:09 PM
Had some success getting sound out of the Pi5 with a simple DAC and I2S from the 40 pin header, so essentially the HAT modulator is feasible.
£1.79 66% Off | Interface I2S PCM5102A DAC Decoder GY-PCM5102 I2S Player Module For Raspberry Pi pHAT Format Board Digital PCM5102 Audio Board
https://a.aliexpress.com/_Ex1pSMP
The board needs some pads solder linking : SCK on top of the board to enable a local clock, and on the underside pads 1 Low for normal latency, pads 2 Low for de-emphasise off, pads 3 high for un-mute, pads low for audio format I2S.
Then connect VIN to Pi5 pin 2, GND to pin 6, LCK to pin 35, DIN to pin 40 and BCK to pin 12
Then in config.txt uncomment dtparam=i2s=on and comment out dtparam=audio=on
and then insert:
dtoverlay=hifiberry-dac
And amend dtoverlay=vc4-kms-v3d,composite,noaudio
Finally create a asound configuration file:
sudo nano /etc/asound.conf
pcm.!default {
type hw card 0
}
ctl.!default {
type hw card 0
}
And then you should get sound. Can’t say I understand all of the code but pieced it together from a number of places so thought it might save others the effort, the AliExpress board is poorly documented.
Mike
£1.79 66% Off | Interface I2S PCM5102A DAC Decoder GY-PCM5102 I2S Player Module For Raspberry Pi pHAT Format Board Digital PCM5102 Audio Board
https://a.aliexpress.com/_Ex1pSMP
The board needs some pads solder linking : SCK on top of the board to enable a local clock, and on the underside pads 1 Low for normal latency, pads 2 Low for de-emphasise off, pads 3 high for un-mute, pads low for audio format I2S.
Then connect VIN to Pi5 pin 2, GND to pin 6, LCK to pin 35, DIN to pin 40 and BCK to pin 12
Then in config.txt uncomment dtparam=i2s=on and comment out dtparam=audio=on
and then insert:
dtoverlay=hifiberry-dac
And amend dtoverlay=vc4-kms-v3d,composite,noaudio
Finally create a asound configuration file:
sudo nano /etc/asound.conf
pcm.!default {
type hw card 0
}
ctl.!default {
type hw card 0
}
And then you should get sound. Can’t say I understand all of the code but pieced it together from a number of places so thought it might save others the effort, the AliExpress board is poorly documented.
Mike







