MakerLab
Raspberry PiRaspberry Pi Pico 2 W

Raspberry Pi Pico 2 W: The Wireless Microcontroller for Connected Projects

This compact and powerful board brings Wi-Fi connectivity to the popular Pico platform, making it ideal for IoT and wireless projects.

Raspberry Pi Pico 2 W

The Raspberry Pi Pico 2 W is an evolution of the highly successful Raspberry Pi Pico, designed to bring wireless capabilities to the affordable microcontroller market. At its heart is the RP2040 microcontroller, a dual-core ARM Cortex-M0+ processor designed by Raspberry Pi. This chip provides ample processing power for complex tasks while maintaining low power consumption. The 'W' in Pico 2 W signifies its integrated wireless connectivity, specifically 2.4GHz Wi-Fi, allowing for seamless integration into networks and the creation of internet-connected devices.

Building on the legacy of the original Pico, the Pico 2 W offers a familiar form factor and pinout, ensuring compatibility with existing Pico accessories and projects. It retains the same flexible power options, robust peripheral set, and ease of use that made the original Pico a favorite among makers, students, and professionals alike. The addition of Wi-Fi significantly broadens its application scope, enabling projects that can communicate with the internet, cloud services, or other wireless devices without the need for external modules.

This board is particularly well-suited for makers who want to create Internet of Things (IoT) devices, wireless sensor networks, or remote-controlled projects. Its dual-core architecture allows for dedicated tasks such as handling network communication while simultaneously running application logic. Students will find it an excellent platform for learning about embedded systems, wireless communication, and network programming. Embedded engineers can leverage its performance, low cost, and extensive peripherals for rapid prototyping and even production-ready designs where wireless connectivity is a requirement.

Watch

Related video, embedded from YouTube.

Specifications

Microcontroller / SoCRaspberry Pi RP2040
ArchitectureDual-core ARM Cortex-M0+
Clock speedUp to 133 MHz (default 125 MHz)
Flash / Storage2MB On-board QSPI Flash Memory
RAM / SRAM264KB On-chip SRAM
Operating voltage1.8V to 3.3V (internal logic)
Digital I/O pins26 Multifunction GPIO Pins
Analog / ADC3x 12-bit Analog-to-Digital Converter (ADC) inputs (shared with GPIO)
PWM16 PWM channels (shared with GPIO)
Connectivity2.4GHz IEEE 802.11 b/g/n Wi-Fi
USB1x Micro USB 1.1 Port (Device and Host support)
Power input1.8V to 5.5V (via VSYS pin or USB)
Dimensions51mm x 21mm (standard Pico form factor)

Pinout & pin functions

PinFunction
3V3 (OUT)3.3V power output, can supply up to 500mA
GNDGround reference
GP0GPIO, ADC0, UART0 TX, SPI0 TX, PWM0
GP1GPIO, ADC1, UART0 RX, SPI0 RX, PWM1
GP2GPIO, ADC2, UART0 CTS, SPI0 RTS, PWM2
GP3GPIO, ADC3, UART0 RTS, SPI0 CTS, PWM3
GP4GPIO, I2C1 SDA, SPI1 TX, PWM4
GP5GPIO, I2C1 SCL, SPI1 RX, PWM5
GP6GPIO, I2C0 SDA, SPI1 SCK, PWM6
GP7GPIO, I2C0 SCL, SPI1 CSn, PWM7
GP8GPIO, UART1 TX, SPI0 TX, PWM8
GP9GPIO, UART1 RX, SPI0 RX, PWM9
GP10GPIO, UART1 CTS, SPI0 SCK, PWM10
GP11GPIO, UART1 RTS, SPI0 CSn, PWM11
GP12GPIO, I2C1 SDA, SPI1 TX, PWM12
GP13GPIO, I2C1 SCL, SPI1 RX, PWM13
GP14GPIO, I2C0 SDA, SPI1 SCK, PWM14
GP15GPIO, I2C0 SCL, SPI1 CSn, PWM15
GP16GPIO, PWM0
GP17GPIO, PWM1
GP18GPIO, PWM2
GP19GPIO, PWM3
GP20GPIO, PWM4
GP21GPIO, PWM5
GP22GPIO, PWM6
GP23GPIO, PWM7
GP24GPIO, PWM8
GP25GPIO, PWM9
GP26GPIO, ADC0, PWM10
GP27GPIO, ADC1, PWM11
GP28GPIO, ADC2, PWM12
GP29GPIO, ADC3, 3.3V power input (if using VSYS > 3.3V)
RUNSystem reset pin
VSYSSystem power supply input (1.8V - 5.5V)
3V33.3V power output
GNDGround reference
VBUSUSB power input (5V)

Wiring & circuit basics

Powering the Raspberry Pi Pico 2 W is straightforward. You can supply power via the Micro USB port, which provides a stable 5V. Alternatively, you can use the VSYS pin, which accepts a voltage range from 1.8V up to 5.5V. An onboard voltage regulator will then supply the necessary 3.3V to the RP2040 chip and other components. It is crucial to ensure that your power source can provide sufficient current, especially when using Wi-Fi, which can draw significant power spikes. A minimum of 500mA is recommended, but 1A or more is safer for continuous operation and wireless use.

The Raspberry Pi Pico 2 W operates at a logic level of 3.3V. This means that its GPIO pins output and expect signals within the 0V to 3.3V range. Connecting a 5V device directly to a Pico 2 W GPIO pin can damage the microcontroller. If you need to interface with 5V logic devices, you must use a level shifter. Conversely, if you are connecting a 3.3V device to a 5V system, you might need to ensure the 5V system can tolerate a 3.3V input signal, or use a level shifter.

For a simple LED project, connect the anode (longer leg) of an LED to a GPIO pin, for example, GP15. Connect the cathode (shorter leg) of the LED through a current-limiting resistor (typically 220-330 ohms for a standard LED) to a GND pin. When GP15 is set HIGH (3.3V), current flows through the LED and resistor, illuminating it. When GP15 is set LOW (0V), the LED turns off. For an I2C sensor, you would connect its SDA pin to a designated I2C SDA pin on the Pico 2 W (e.g., GP6 for I2C0) and its SCL pin to the corresponding I2C SCL pin (e.g., GP7 for I2C0). Remember to connect the sensor's VCC to the Pico's 3V3 pin and its GND to a GND pin.

Programming & getting started

The Raspberry Pi Pico 2 W can be programmed using a variety of popular development environments. For beginners, MicroPython and CircuitPython offer an accessible Python-based programming experience, allowing for rapid prototyping. The Arduino IDE is also well-supported via community-developed board packages, providing a familiar C++ environment for Arduino users. For more advanced applications, the official Raspberry Pi Pico SDK (based on C/C++) and the ESP-IDF framework (which also supports the RP2040) are available. To flash your first program (e.g., a MicroPython 'blink' script), connect the Pico 2 W to your computer via USB while holding down the BOOTSEL button. This will mount it as a mass storage device. Drag and drop the UF2 firmware file onto the mounted drive to flash it. For other IDEs, follow their specific instructions for board setup and uploading code.

Project ideas

Wireless Weather StationMonitor local temperature, humidity, and pressure using external sensors and send the data over Wi-Fi to a web server or cloud service. Uses ADC pins for sensors, GPIO for sensor communication (e.g., I2C or SPI), and the onboard Wi-Fi for data transmission.
Remote Controlled Robot CarBuild a small robot car and control its movement wirelessly via a web interface or a smartphone app. Utilizes PWM pins for motor speed control, GPIO for motor direction, and Wi-Fi for receiving commands.
Smart Home Sensor NodeDeploy a battery-powered sensor node that reports environmental data (e.g., light levels, motion) wirelessly to a central hub or cloud platform. Focuses on low-power Wi-Fi communication and efficient use of GPIO and ADC pins.
Networked LED Matrix DisplayControl a large LED matrix display to show custom text, animations, or even simple graphics, driven wirelessly from a computer or mobile device. Leverages high-speed GPIO and potentially SPI for driving the matrix, with Wi-Fi for receiving display content.
IoT Data LoggerCollect data from multiple sensors (e.g., soil moisture, light, temperature) and log it to an SD card or send it directly to a cloud database over Wi-Fi. Teaches data acquisition, storage, and wireless networking concepts.
Voice Controlled Assistant InterfaceCreate a basic interface that listens for specific voice commands (using an external microphone module) and triggers actions on the Pico 2 W, such as turning on an LED or sending a network message. Explores audio input processing and Wi-Fi communication.

Buying tips & gotchas

When purchasing the Raspberry Pi Pico 2 W, ensure you are buying from reputable sources to avoid counterfeit or faulty boards. The primary accessories you'll need are a Micro USB cable for power and programming, and potentially a breadboard and jumper wires for prototyping. Be mindful of the 3.3V logic level; always use level shifters when interfacing with 5V components. The onboard Wi-Fi module can consume significant power, so consider power management strategies for battery-powered projects. While the Pico 2 W is robust, avoid exposing it to extreme temperatures, moisture, or electrostatic discharge. Official Raspberry Pi documentation and community forums are invaluable resources for troubleshooting and project ideas.