Raspberry Pi Codec Zero Pinout

Raspberry Pi Codec Zero pinout. Compact Raspberry Pi audio HAT with bidirectional I²S and onboard DA7212 capture and playback.

Jump to pin index ↓

Main pinout

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.

100%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
PinMCU pinTypesNotes
Power3V3 rail supplied by the host Raspberry Pi.
Power5V rail supplied by the host Raspberry Pi.
I2CHost BCM GPIO 2. Shared I²C1 control data for the codec at address 0x1A.
Power5V rail supplied by the host Raspberry Pi.
I2CHost BCM GPIO 3. Shared I²C1 control clock for the codec at address 0x1A.
GroundGround shared with the host Raspberry Pi.
GPIOBCM GPIO 4 contact of the Raspberry Pi host.
GPIOBCM GPIO 14 contact of the Raspberry Pi host.
GroundGround shared with the host Raspberry Pi.
GPIOBCM GPIO 15 contact of the Raspberry Pi host.
GPIOBCM GPIO 17 contact of the Raspberry Pi host.
I2SHost BCM GPIO 18. Bit clock for I²S capture and playback.
GPIOHost BCM GPIO 27. Reads the programmable SW1 push button.
GroundGround shared with the host Raspberry Pi.
GPIOBCM GPIO 22 contact of the Raspberry Pi host.
LEDHost BCM GPIO 23. Controls the green D2 status LED.
Power3V3 rail supplied by the host Raspberry Pi.
LEDHost BCM GPIO 24. Controls the red D3 status LED.
GPIOBCM GPIO 10 contact of the Raspberry Pi host.
GroundGround shared with the host Raspberry Pi.
GPIOBCM GPIO 9 contact of the Raspberry Pi host.
GPIOBCM GPIO 25 contact of the Raspberry Pi host.
GPIOBCM GPIO 11 contact of the Raspberry Pi host.
GPIOBCM GPIO 8 contact of the Raspberry Pi host.
GroundGround shared with the host Raspberry Pi.
GPIOBCM GPIO 7 contact of the Raspberry Pi host.
I2CHost BCM GPIO 0. Data for the dedicated HAT identification EEPROM bus.
I2CHost BCM GPIO 1. Clock for the dedicated HAT identification EEPROM bus.
GPIOBCM GPIO 5 contact of the Raspberry Pi host.
GroundGround shared with the host Raspberry Pi.
GPIOBCM GPIO 6 contact of the Raspberry Pi host.
GPIOBCM GPIO 12 contact of the Raspberry Pi host.
GPIOBCM GPIO 13 contact of the Raspberry Pi host.
GroundGround shared with the host Raspberry Pi.
I2SHost BCM GPIO 19. Left/right word-select clock for I²S capture and playback.
GPIOBCM GPIO 16 contact of the Raspberry Pi host.
GPIOBCM GPIO 26 contact of the Raspberry Pi host.
I2SHost BCM GPIO 20. Host data input for audio capture, driven by the codec.
GroundGround shared with the host Raspberry Pi.
I2SHost 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.

ChipRoleManufacturerNotesLink
Raspberry Pi Codec ZeroProduct briefRaspberry PiBoard outline, compatibility, audio specifications and product photos.Datasheet
DA7212 (U2)Audio codec datasheetRenesasCodec pinout, analogue paths, I²S and speaker driver.Datasheet
Codec Zero hardwareConnectors, GPIO and setupRaspberry PiOfficial audio HAT documentation and configuration.Datasheet
Codec ZeroProduct change noticeRaspberry PiIdentifies the Raspberry Pi-branded green board.Datasheet

Board notes

Analogue connectors
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.