On Pi zero, when I connect switches to GPIO23 and 24 the PhatDac stopped working. PhatDAC is connected to Pi zero by tall header so I connect my switches thru pins.
The switches work correctly with my python polling scripts.
When I disconnect my switches from GPIO the PhatDac worked again.

This page shows that GPIO18 is reserved for PhatDAC https://pinout.xyz/pinout/phat_dac

Are there any GPIO pins that are safe for use with PhatDAC?

  • Are there any GPIO pins that are safe for use with PhatDAC? The pinout page shows all the GPIO that the board uses. All others are free to use. If they cause problems then it's most likely some sort of software problem. – Dirk Dec 31 '18 at 18:28

This page says:

The pHAT DAC provides a high-quality digital to analog audio converter for the Raspberry Pi: 24-bits at 192KHz via the I2S interface on the 2x20 pin GPIO header.

According to this description and the image of the pinout as shown there the pHAT-DAC only uses the GPIO pins tied to the I2S interface, specifically the pins 18, 19, and 21 (BCM numbering)... well, that and +5V, but that pin is not used exclusively by the HAT. All other pins are free to use.

I would be reluctant about the use of the two special pins (ID_SC and ID_SD) that are reserved exclusively for attaching an 'ID EEPROM' which contains data that identifies a HAT. However the description of the pHAT-DAC does not say anything about using it. Furthermore the images of the PCB do not show an EEPROM and the DAC itself does not seem to include any neither. From all I know it does not use the ID-EEPROM scheme and thus the pins ID_SC and ID_SD are also safe to use.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.