Raspberry Pi Zero 2W

The Raspberry Pi Zero 2 W may be one of the smallest Raspberry Pi boards, but it still exposes the same 40-pin GPIO header used across most Raspberry Pi models. This means the board can work with a wide range of existing sensors, displays, and HAT accessories despite its compact size.

It is built around the Broadcom BCM2710A1 quad-core Cortex-A53 processor running at 1 GHz and includes 512 MB LPDDR2 RAM, making it significantly more powerful than the original Pi Zero while keeping the same compact form factor.

Official Pinout

RPI Zero 2W GPIO Pinout
PinName / FunctionPinName / Function
13.3V Power25V Power
3GPIO2 (SDA1)45V Power
5GPIO3 (SCL1)6Ground
7GPIO48GPIO14 (TXD0)
9Ground10GPIO15 (RXD0)
11GPIO1712GPIO18 (PCM_CLK / PWM0)
13GPIO2714Ground
15GPIO2216GPIO23
173.3V Power18GPIO24
19GPIO10 (MOSI)20Ground
21GPIO9 (MISO)22GPIO25
23GPIO11 (SCLK)24GPIO8 (CE0)
25Ground26GPIO7 (CE1)
27ID_SD (I²C EEPROM)28ID_SC (I²C EEPROM)
29GPIO530Ground
31GPIO632GPIO12 (PWM0)
33GPIO13 (PWM1)34Ground
35GPIO19 (PCM_FS / SPI1 MISO)36GPIO16
37GPIO2638GPIO20 (PCM_DIN / SPI1 MOSI)
39Ground40GPIO21 (PCM_DOUT / SPI1 SCLK)

Power Pins

The board provides both 3.3V and 5V power outputs through the header.

3.3V Pins

  • Pin 1
  • Pin 17

These pins provide 3.3V output from the onboard voltage regulator.

5V Pins

  • Pin 2
  • Pin 4

These pins are connected directly to the 5V power input of the board.

Ground Pins

The Raspberry Pi Zero 2 W provides multiple ground connections:

Pins: 6, 9, 14, 20, 25, 30, 34, 39

I2C Pins

GPIOPhysical PinFunction
GPIO2Pin 3SDA
GPIO3Pin 5SCL

SPI Pins

GPIOPinFunction
GPIO1019MOSI
GPIO921MISO
GPIO1123SCLK
GPIO824CE0
GPIO726CE1

UART Pins

GPIOPinFunction
GPIO14Pin 8TX
GPIO15Pin 10RX

PWM pins

PWM capable pins include:

  • GPIO12
  • GPIO13
  • GPIO18
  • GPIO19

PWM signals allow precise control of analog-like outputs using digital signals.

Pins reserved for HAT EEPROM

Pins 27 and 28 are reserved for identifying HAT (Hardware Attached on Top) modules.

Physical PinGPIOFunction
27GPIO0ID_SD
28GPIO1ID_SC

These pins are used for EEPROM communication, allowing the Raspberry Pi to automatically detect compatible add-on boards.

In most projects, these pins are left unused unless working with HAT hardware.

Specifications

FeatureSpecification
ProcessorBroadcom BCM2710A1
CPU ArchitectureQuad-core ARM Cortex-A53
CPU Clock Speed1 GHz
RAM512 MB LPDDR2 SDRAM
GPUBroadcom VideoCore IV
Wireless Connectivity2.4 GHz 802.11 b/g/n Wi-Fi
BluetoothBluetooth 4.2 + BLE
EthernetNot available
USB Ports1 × USB 2.0 (OTG)
Power InputMicro-USB power connector
Display OutputMini HDMI
Camera InterfaceCSI-2 camera connector
GPIO Header40-pin GPIO (not pre-soldered)
StoragemicroSD card slot
Video EncodingH.264 (1080p30)
Video DecodingH.264, MPEG-4 (1080p30)
Operating SystemRaspberry Pi OS and other Linux distributions
Board Dimensions65 mm × 30 mm
Power Consumption~0.6 W (idle), higher under load

Important usage notes

1. GPIO voltage and current limits

GPIO pins on the Raspberry Pi Zero 2 W operate at 3.3V logic levels and are not 5V tolerant.

Important electrical limits:

  • GPIO logic voltage: 3.3V
  • Maximum current per GPIO pin: 16 mA
  • Recommended current per pin: ≤ 8 mA
  • Total current across all GPIO pins: ≈ 50 mA

2. BCM vs physical pin numbering

One common point of confusion when working with Raspberry Pi GPIO is the difference between BCM numbering and physical pin numbering.

  • Physical numbering refers to the actual pin position on the 40-pin header (1–40).
  • BCM numbering refers to the GPIO number assigned by the Broadcom processor.

For example:

Physical PinBCM GPIO
3GPIO2
5GPIO3
8GPIO14

Most programming libraries use BCM numbering, so it is important to match the correct GPIO number when writing code.

3. Some pins are used during boot

Certain GPIO pins are read during system startup to determine the boot configuration. Connecting components to these pins may affect boot behavior. If possible, avoid using them for critical hardware unless you understand their boot functions.

4. Headers are not always pre-soldered

Most versions of the Raspberry Pi Zero 2 W ship with an unsoldered GPIO header, meaning you may need to solder a 40-pin header before connecting jumper wires or HAT accessories

5. Always check pin orientation

Incorrectly identifying Pin 1 can result in wiring errors that may short power or damage components. Pin 1 is the 3.3V pin located near the corner of the board, and the odd-numbered pins run along the outer edge of the header.

Useful resources

1. Getting started with Raspberry Pi Zero 2W

2. Benchmarks and review.

3. Official datasheet of Pi Zero 2W

Leave a Comment