Raspberry Pi launches the Pico W: its microcontroller board now has Wi-Fi and costs just $6In January 2021, Raspberry Pi surprised everyone with the Raspberry Pi Pico, a small $4 board built around the RP2040, the first microcontroller designed by the foundation itself. Since then it has become one of the favorite boards for electronics projects, but it had one obvious gap for the Internet of Things (IoT): it couldn't connect to a network. That changed this Thursday, June 30, with the launch of the Raspberry Pi Pico W, which adds Wi-Fi to the board for just $6.
The Raspberry Pi Pico W. On the left is the metal shield protecting the wireless chip, and on the right the antenna built into the board. Source: Raspberry Pi.
What does the Pico W bring?
The Pico W keeps everything that made the original Pico special:
- RP2040 microcontroller, made by TSMC on a 40 nm process, with two Arm Cortex-M0+ cores at 133 MHz.
- 264 KB of SRAM and 2 MB of flash memory.
- The programmable I/O (PIO) subsystem, which lets you implement communication protocols in hardware.
- The same size and pinout as the Pico, so it's compatible with existing projects and accessories.
On top of that it adds Infineon's CYW43439 chip, which provides 802.11n Wi-Fi in the 2.4 GHz band. The chip also supports Bluetooth Classic and Bluetooth Low Energy, but Raspberry Pi didn't enable it at launch, although it says it may do so in the future. As on its other modern boards, the radio section is protected by a metal shield, which makes it easier to certify commercial products based on it.
The Pico W measures just 51 × 21 mm. Source: Raspberry Pi.
Three new models
Besides the Pico W, Raspberry Pi introduced two versions with pre-soldered headers and a new three-pin debug connector, aimed at those who don't want to solder or who work with breadboards:
- Pico H: the original Pico with soldered headers, for $5.
- Pico WH: the Pico W with soldered headers, for $7. It will arrive in August.
The four models in the Pico family. Table: The Joy Robot.
The Pico H, with soldered headers and the new debug connector. Source: Raspberry Pi.
Programming it is very easy
One of the advantages of the Pico family is how easy it is to load a program onto it. You don't need a USB-to-serial adapter or tools like esptool: just hold down the BOOTSEL button, connect the board over USB and it will show up as a storage drive called RPI-RP2. Then you just copy the firmware file, with the .uf2 extension, and the board will reboot by itself. On launch day, Raspberry Pi published the C SDK, which includes a network stack based on lwIP, and a version of MicroPython specific to the Pico W. For example, this short program connects the board to a Wi-Fi network, shows the IP address it obtained and turns on the onboard LED:
|
| Language: Python |
|
1 | import network
2 | import time
3 | from machine import Pin
4 |
5 | wlan = network.WLAN(network.STA_IF)
6 | wlan.active(True)
7 | wlan.connect("YOUR_NETWORK_NAME", "YOUR_NETWORK_PASSWORD")
8 |
9 | while not wlan.isconnected():
10 | print("Connecting...")
11 | time.sleep(1)
12 |
13 | print("Connected. IP:", wlan.ifconfig()[0])
14 |
15 | # On the Pico W, the onboard LED is connected to the wireless chip
16 | led = Pin("LED", Pin.OUT)
17 | led.on()
|
|
|
An important detail: the Pico W's MicroPython firmware is different from the original Pico's, so you need to download the right file for each board.
The Pico W vs. the ESP8266 and ESP32
It's impossible to talk about a cheap Wi-Fi microcontroller without thinking of Espressif's ESP8266 and ESP32, which have dominated IoT and home automation projects for years. On this blog we've used them, for example, to change the firmware of a Sonoff RF Bridge and to build a remote-controlled vehicle with a camera. In raw power, the ESP32 still has advantages: its cores are faster and it already includes Bluetooth. But the Pico W has its own arguments: the PIO, excellent documentation, a Raspberry Pi-branded board and a very competitive price. And in the middle of the global chip shortage, Raspberry Pi says it has millions of RP2040s in stock and the capacity to make tens of millions more.
The RP2040, the microcontroller designed by Raspberry Pi. Source: Raspberry Pi.
Our take
The Pico W is exactly what the Pico was missing. For $6 we get a dual-core microcontroller with Wi-Fi that can be programmed in MicroPython without a serial adapter or drivers. For anyone getting started in electronics, it's hard to find anything easier or more accessible. We would have liked it to come with Bluetooth enabled from day one and with support for the 5 GHz band, but at this price it's understandable. What we're sure of is that the ESP32 finally has a serious competitor in the world of home IoT, and that's great news for all of us who enjoy building microcontroller projects.
|
|
|