MakerLab
Raspberry PiRaspberry Pi Zero 2 W

Raspberry Pi Zero 2 W: A Tiny Powerhouse for Embedded Projects

The Raspberry Pi Zero 2 W is a compact and affordable single-board computer that punches above its weight, offering significantly improved performance over its predecessor in a familiar form factor.

Raspberry Pi Zero 2 W

The Raspberry Pi Zero 2 W represents a substantial upgrade to the popular Raspberry Pi Zero W, bringing a much-needed performance boost while maintaining its incredibly small footprint and low cost. It's designed for makers, students, and embedded engineers who need a capable yet unobtrusive computing solution for projects where space and power efficiency are paramount.

At its heart lies the Raspberry Pi RP3A0 System-in-Package (SiP). This SiP integrates a Broadcom BCM2710A1 die (the same core processor family found in the original Raspberry Pi 3) with 512MB of LPDDR2 SDRAM. This combination provides a quad-core 64-bit ARM Cortex-A53 processor running at 1GHz, a significant leap from the single-core 1GHz processor of the Pi Zero W.

This board is ideal for projects that require more processing power than a microcontroller but can't accommodate a larger single-board computer. Think of applications like portable retro gaming consoles, compact home automation hubs, networked sensor data loggers, or even simple desktop replacements for educational purposes. Its low power consumption and small size make it perfect for battery-powered or embedded applications.

Released in October 2021, the Zero 2 W addresses the primary limitation of the original Zero W: its processing power. While the original was suitable for basic tasks, the Zero 2 W opens up possibilities for more demanding software, including heavier desktop environments, more complex IoT applications, and even light machine learning inference, all within a board that costs little more than its predecessor.

Watch

Related video, embedded from YouTube.

Specifications

Microcontroller / SoCRaspberry Pi RP3A0 (integrating Broadcom BCM2710A1 die)
Architecture64-bit Quad-Core ARM Cortex-A53
Clock speed1.0 GHz
Flash / StorageMicroSD card slot (card not included)
RAM / SRAM512MB LPDDR2 SDRAM
Operating voltage3.3V
Digital I/O pins17 GPIO pins
Analog / ADCโ€”
PWMYes (on specific GPIO pins)
Connectivity2.4GHz 802.11 b/g/n Wi-Fi, Bluetooth 4.2
USB1 x Micro USB OTG port (for data/power), 1 x Micro USB power port
Power input5V via Micro USB or GPIO header
Dimensions65mm x 30mm x 5mm

Pinout & pin functions

PinFunction
Pin 13.3V Power Out
Pin 2GPIO 2 (SDA1 - I2C)
Pin 3GPIO 3 (SCL1 - I2C)
Pin 4GND (Ground)
Pin 5GPIO 14 (TXD0 - UART)
Pin 6GPIO 15 (RXD0 - UART)
Pin 7GPIO 17
Pin 8GPIO 27
Pin 9GPIO 22
Pin 10GPIO 11 (SCK - SPI)
Pin 11GND (Ground)
Pin 12GPIO 10 (MOSI - SPI)
Pin 13GPIO 9 (MISO - SPI)
Pin 14GPIO 25
Pin 15GPIO 24
Pin 16GPIO 23
Pin 173.3V Power Out
Pin 18GPIO 4
Pin 19GPIO 17 (PWM0)
Pin 20GND (Ground)
Pin 21GPIO 18 (PWM1)
Pin 22GPIO 27
Pin 23GPIO 17
Pin 24GPIO 22
Pin 25GPIO 10 (SPI MOSI)
Pin 26GPIO 9 (SPI MISO)
Pin 27GPIO 11 (SPI SCK)
Pin 28GPIO 6
Pin 29GPIO 5
Pin 30GND (Ground)
Pin 31GPIO 13
Pin 32GPIO 12
Pin 33GPIO 16
Pin 34GPIO 7 (SPI CE1)
Pin 35GPIO 8 (SPI CE0)
Pin 36GPIO 20
Pin 37GPIO 21
Pin 38GPIO 26
Pin 39GND (Ground)
Pin 40GPIO 19 (PWM2)

Wiring & circuit basics

Powering the Raspberry Pi Zero 2 W requires a stable 5V supply. The most common method is via the dedicated Micro USB power port, which should be connected to a power adapter capable of delivering at least 1.2A, though 2.5A is recommended for stable operation, especially when using Wi-Fi and peripherals. Alternatively, 5V can be supplied to Pin 1 of the 40-pin header, and Ground to Pin 6 (or any other GND pin). It's crucial to use a reliable power source to avoid brownouts and potential data corruption.

All GPIO pins on the Raspberry Pi Zero 2 W operate at 3.3V logic levels. This means you cannot directly connect 5V devices (like many standard Arduino components) to the GPIO pins without risking damage. For devices that require 5V logic, a level shifter is necessary. For example, when connecting an LED, always use a current-limiting resistor (typically 220-330 ohms) in series with the LED to protect both the LED and the GPIO pin. Connect the longer leg (anode) of the LED to the resistor, and the other end of the resistor to a GPIO pin (e.g., GPIO 17). Connect the shorter leg (cathode) of the LED to a ground pin.

For I2C communication, the SDA (Serial Data) line is typically connected to GPIO 2 (Pin 3) and the SCL (Serial Clock) line to GPIO 3 (Pin 5). Many I2C sensors, such as the BME280 environmental sensor or the MPU6050 accelerometer, also require power (3.3V from Pin 1) and ground. Ensure that the sensor's operating voltage is compatible with 3.3V. If connecting multiple I2C devices, they all share the same SDA and SCL lines, but each must have a unique address.

Programming & getting started

The Raspberry Pi Zero 2 W runs a full Linux operating system, typically Raspberry Pi OS (formerly Raspbian), which is based on Debian. This means you can program it using a wide variety of languages and tools. For Python development, you can use standard Python interpreters or frameworks like MicroPython or CircuitPython (though these are less common for the full Pi OS experience). For more complex applications or embedded development, you might use C/C++ with the GNU toolchain, or even explore Node.js.

To get started, flash Raspberry Pi OS onto a MicroSD card using a tool like Raspberry Pi Imager. Insert the card into the Zero 2 W, connect a Micro USB keyboard, mouse, and HDMI display (via a suitable adapter), and power it up. Once booted, you can connect to Wi-Fi and then use the pre-installed Thonny IDE for Python, or install other development environments like VS Code with the PlatformIO extension for more advanced embedded projects. For headless setup (without a monitor/keyboard), you can pre-configure Wi-Fi and SSH access on the SD card before booting.

Project ideas

Networked Weather StationBuild a compact weather station using sensors like the BME280 (connected via I2C) to measure temperature, humidity, and pressure. The Pi Zero 2 W's Wi-Fi allows it to send data to a cloud service or a local web server, making it a great project for learning about IoT and sensor integration.
Retro Gaming HandheldWith its improved CPU, the Zero 2 W is capable of emulating older game consoles. Combine it with a small screen, buttons (connected to GPIO), and a battery pack to create a portable retro gaming device. This project involves OS configuration, emulation software, and custom hardware interfacing.
Smart Mirror DisplayUse the Pi Zero 2 W to power a smart mirror. It can display time, weather, news headlines, and calendar events on a monitor behind a two-way mirror. This project utilizes the HDMI output, Wi-Fi, and requires software to fetch and display information, offering a blend of hardware and software skills.
Compact NAS / Media ServerConnect a USB storage device (via a USB OTG adapter) and configure the Pi Zero 2 W to act as a small Network Attached Storage (NAS) or media server. This project teaches Linux file sharing protocols (like Samba or NFS) and network configuration.
Robotics BrainThe small size and processing power make it suitable as the central controller for a small robot. Connect motor drivers, sensors (ultrasonic, infrared), and cameras to the GPIO pins. This project combines electronics, programming, and potentially computer vision or control theory.
Home Automation HubUse the Pi Zero 2 W to control and monitor smart home devices. It can act as a bridge between different protocols (e.g., MQTT) or directly control relays and sensors for lights, temperature, and security. This project explores networking, scripting, and potentially integration with platforms like Home Assistant.

Buying tips & gotchas

When purchasing a Raspberry Pi Zero 2 W, be aware that it does not come with a MicroSD card, power supply, or any necessary adapters (like Micro USB to USB-A for peripherals or Micro USB to HDMI for displays). These must be bought separately. The board uses the smaller Mini HDMI port, so you'll need a Mini HDMI to HDMI adapter or cable. Also, be cautious of unofficial 'kits' that may include low-quality components or misleading specifications. Ensure you purchase from reputable retailers. The board's 3.3V logic is a common point of confusion for beginners; always double-check voltage compatibility when connecting external components.