Compact Raspberry Pi audio HAT with bidirectional I²S and onboard DA7212 capture and playback. This view shows the top solder terminals for the P4 host socket. The mating face is on the rear.
Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show physical positions and functions
Pin index
Pin index
Quickly scan every header pin, port name, supported function and usage note.
40 visible
Pin
MCU pin
Types
Notes
Power
3V3 rail supplied by the host Raspberry Pi.
Power
5V rail supplied by the host Raspberry Pi.
I2C
Host BCM GPIO 2. Shared I²C1 control data for the codec at address 0x1A.
Power
5V rail supplied by the host Raspberry Pi.
I2C
Host BCM GPIO 3. Shared I²C1 control clock for the codec at address 0x1A.
Ground
Ground shared with the host Raspberry Pi.
GPIO
BCM GPIO 4 contact of the Raspberry Pi host.
GPIO
BCM GPIO 14 contact of the Raspberry Pi host.
Ground
Ground shared with the host Raspberry Pi.
GPIO
BCM GPIO 15 contact of the Raspberry Pi host.
GPIO
BCM GPIO 17 contact of the Raspberry Pi host.
I2S
Host BCM GPIO 18. Bit clock for I²S capture and playback.
GPIO
Host BCM GPIO 27. Reads the programmable SW1 push button.
Ground
Ground shared with the host Raspberry Pi.
GPIO
BCM GPIO 22 contact of the Raspberry Pi host.
LED
Host BCM GPIO 23. Controls the green D2 status LED.
Power
3V3 rail supplied by the host Raspberry Pi.
LED
Host BCM GPIO 24. Controls the red D3 status LED.
GPIO
BCM GPIO 10 contact of the Raspberry Pi host.
Ground
Ground shared with the host Raspberry Pi.
GPIO
BCM GPIO 9 contact of the Raspberry Pi host.
GPIO
BCM GPIO 25 contact of the Raspberry Pi host.
GPIO
BCM GPIO 11 contact of the Raspberry Pi host.
GPIO
BCM GPIO 8 contact of the Raspberry Pi host.
Ground
Ground shared with the host Raspberry Pi.
GPIO
BCM GPIO 7 contact of the Raspberry Pi host.
I2C
Host BCM GPIO 0. Data for the dedicated HAT identification EEPROM bus.
I2C
Host BCM GPIO 1. Clock for the dedicated HAT identification EEPROM bus.
GPIO
BCM GPIO 5 contact of the Raspberry Pi host.
Ground
Ground shared with the host Raspberry Pi.
GPIO
BCM GPIO 6 contact of the Raspberry Pi host.
GPIO
BCM GPIO 12 contact of the Raspberry Pi host.
GPIO
BCM GPIO 13 contact of the Raspberry Pi host.
Ground
Ground shared with the host Raspberry Pi.
I2S
Host BCM GPIO 19. Left/right word-select clock for I²S capture and playback.
GPIO
BCM GPIO 16 contact of the Raspberry Pi host.
GPIO
BCM GPIO 26 contact of the Raspberry Pi host.
I2S
Host BCM GPIO 20. Host data input for audio capture, driven by the codec.
Ground
Ground shared with the host Raspberry Pi.
I2S
Host BCM GPIO 21. Host data output for playback, received by the codec.
Specifications
PCB revision
020/R2 · Raspberry Pi branding
Board outline
65 × 31 mm PCB
Codec
Dialog Semiconductor DA7212, 24-bit, 8–96 kHz
Host interface
P4, 2 × 20 at 2.54 mm. I²S audio, I²C1 control and HAT ID EEPROM.
Board power
From the host on P4. No separate supply.
Analogue audio
Stereo AUX IN/OUT, mono MEMS microphone, 3.5 mm external electret input
Speaker output
1.2 W into 8 Ω, differential mono. Rated at 5 V and THD < 10%.
Indicators and control
D1 power, D2 green (GPIO23), D3 red (GPIO24), SW1 button (GPIO27)
Operating temperature
0–50 °C
References
Datasheets
Manufacturer references and technical documentation.
Chip
Role
Manufacturer
Notes
Link
Raspberry Pi Codec Zero
Product brief
Raspberry Pi
Board outline, compatibility, audio specifications and product photos.
See the Audio and service detail for P1 AUX IN, P2 AUX OUT, P3 speaker, P8 microphone and WP. P1 and P2 each have two separate ground contacts.
P4 female socket
The Rear host socket detail shows the mirrored mating face. The main view identifies the same P4 contacts by their front solder terminals.
Host alternate functions
The advanced view includes physical pin numbers and commonly used functions. Host GPIO multiplexing and UART routing vary with model and configuration.
Components
U2 DA7212 codec, MIC2 MEMS microphone, P8 electret input, SW1 user button, three LEDs and a pre-programmed HAT identification EEPROM.