Does the Raspberry Pi Pico Have WiFi? A Complete Guide to Pico Connectivity Options

Photo of author

By Jackson Taylor

Home » Uncategorized » Does the Raspberry Pi Pico Have WiFi? A Complete Guide to Pico Connectivity Options

As an Amazon Associate we earn from qualifying purchases.

The Raspberry Pi Pico is a cheap microcontroller that many makers enjoy. You might ask, “Does the Pico have WiFi?” This guide helps you find out. We cover which models come with built-in wireless and how to set them up. You’ll learn to test your board for WiFi and get your device online.

What You’ll Learn

  • Which Pico models come with wireless features.
  • How to check your board for WiFi capabilities.
  • Steps to connect your Pico W to a network.
  • Code examples for wireless setup.
  • Ways to troubleshoot common issues.

Pico Models and WiFi Features

The standard Pico does not have wireless features. It has a dual-core processor and many pins but no WiFi chip. In contrast, the Pico W includes a built-in low-power wireless chip. It uses a 2.4 GHz radio connection and has an extra antenna. The Pico W also has a slightly different LED placement, which ties into its wireless system.

Here’s a tip: A look at the label and antenna can help you tell the difference.

How to Check If Your Pico Has WiFi

You can tell if your board has wireless by using code. This is handy if you are building projects that work on both boards.

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video

Using MicroPython

Try this MicroPython code to check your board:

import machine
from machine import Pin, ADC

def is_pico_w():
  adc = ADC(3)
  initial = adc.read_u16()
  gpio25 = Pin(25, Pin.OUT)
  gpio25.value(0)
  low_val = adc.read_u16()
  gpio25 = Pin(25, Pin.IN)
  return low_val < 6553

if is_pico_w():
  print("This is a Pico W with WiFi.")
else:
  print("This is a standard Pico without WiFi.")

This code sets a pin low and reads the voltage. A low voltage reading shows your board is a Pico W.

Using Arduino

If you use Arduino, you can check like this:

include "hardware/gpio.h"
include "hardware/adc.h"

bool isPicoW() {
  adc_init();
  adc_gpio_init(29);
  adc_select_input(3);
  bool prev_dir = gpio_get_dir(25);
  gpio_init(25);
  gpio_set_dir(25, GPIO_OUT);
  gpio_put(25, 0);
  uint16_t val = adc_read();
  gpio_set_dir(25, prev_dir);
  return val < 500;
}

Example usage:

connect_to_wifi("Your_SSID", "Your_Password")

Connecting Your Pico W to WiFi

Once you confirm you have a Pico W, you can use MicroPython to connect to a network. The code below walks you through the process.

See also
Best Arduino Kits for Beginners That Make Learning Easy

Setting Up WiFi in MicroPython

Paste this code into your script to join your WiFi network:

import network
import time
from machine import Pin

led = Pin("LED", Pin.OUT)

def connect_to_wifi(ssid, password):
  wlan = network.WLAN(network.STA_IF)
  wlan.active(True)
  wlan.config(pm=0xa11140)
  print("Connecting to " + ssid + "...")
  wlan.connect(ssid, password)
  wait = 10
  while wait > 0:
    if wlan.status() >= 3:
      break
    wait -= 1
    print("Waiting for connection...")
    led.value(not led.value())
    time.sleep(1)
  if wlan.status() == 3:
    led.value(1)
    print("Connected! IP: " + wlan.ifconfig()[0])
    return wlan
  else:
    led.value(0)
    print("Failed to connect!")
    return None

Example usage:

connect_to_wifi("Your_SSID", "Your_Password")

In this snippet, the LED blinks while the board waits for a network handshake. A steady LED means the connection is made.

Operating Modes: Station and Access Point

The Pico W works in two modes.

Station Mode:

The board joins an existing network. It gets an IP from your router. This is perfect for projects that need online data. Several of our Raspberry Pi Pico project ideas, such as the plant watering system and the environmental monitoring station, use a Pico W this way.

Access Point Mode:

The board creates its own network. Other devices can join it directly. This mode is handy if you lack a router.

Here’s how to create an access point:

Sustainable Tech

Keep Toxic E-Waste Out of Landfills

Don't throw away your failing laptop, phone, or car batteries. Learn how to recondition them at home in just a few hours. It's better for the planet—and your wallet.

Learn How It Works
def create_ap(ssid, password=None):
  ap = network.WLAN(network.AP_IF)
  ap.active(True)
  if password:
    ap.config(essid=ssid, password=password, security=network.AUTH_WPA_WPA2_PSK)
  else:
    ap.config(essid=ssid)
  print("Access Point active")
  print("AP IP: " + ap.ifconfig()[0])
  return ap

Activate an access point:

create_ap("PicoW-AP", "password123")

Setting a Static IP

Some projects need a fixed IP. Try this code to set one:

def connect_static(ssid, password, ip_config):
  wlan = network.WLAN(network.STA_IF)
  wlan.active(True)
  wlan.connect(ssid, password)
  while not wlan.isconnected():
    print("Waiting for network...")
    time.sleep(1)
  wlan.ifconfig(ip_config)
  print("Static IP: " + wlan.ifconfig()[0])
  return wlan

Use these settings:

config = ("192.168.1.100", "255.255.255.0", "192.168.1.1", "8.8.8.8")
connect_static("Your_SSID", "Your_Password", config)

This example assigns a fixed IP so your project always uses the same address. On a full Raspberry Pi board the process is different: our guide to connecting a Raspberry Pi to WiFi from the command line shows the dhcpcd.conf method.

Pico, Pico W, Pico WH and Pico 2 W: Which One Should You Buy?

If you are searching for "Raspberry Pi Pico WiFi", the first thing to check is the exact name on the board. Several versions look alike, and only some have wireless.

  • Pico and Pico H: No WiFi. The "H" version only adds pre-soldered header pins.
  • Pico W and Pico WH: These have the wireless chip. The "WH" version again just comes with headers already soldered on.
  • Pico 2: The newer generation of the board, but the plain version has no WiFi.
  • Pico 2 W: The newer generation with wireless added.
See also
What Is the Best Arduino Board for IoT Projects

The letter "W" in the name is the quickest clue. Check it on the product listing before you order, since a Pico and a Pico W look very similar in photos.

Can You Add WiFi to a Standard Pico?

Yes. If you already own a board without wireless, you can pair it with a separate WiFi module, such as an ESP-based board, and talk to it over a serial (UART) connection. This works, but it adds wiring, extra code and another device to power. For a new project, buying a Pico W is usually simpler and often costs little more. Our guide to WiFi modules for Arduino covers similar add-on options, many of which can also be used with a Pico.

What About Bluetooth?

The wireless chip on the Pico W also supports Bluetooth in hardware. Software support has been less mature than WiFi, so check the current documentation for your language (MicroPython or C/C++) before you plan a project around it.

Will the Pico W Connect to 5 GHz Networks?

No. As noted above, it uses a 2.4 GHz radio. If your router combines both bands under one name and the board will not connect, try a separate 2.4 GHz network name or check your router settings.

Frequently Asked Questions

Does the standard Pico have WiFi?

No, only the Pico W includes built-in WiFi.

How can I tell my board's type using code?

You can use the provided MicroPython or Arduino snippets to test your board.

What are the two WiFi modes?

In Station mode, the Pico joins a router network. In Access Point mode, it creates its own network.

Can I assign a static IP?

Yes, the static IP example shows how to set fixed network parameters.

What does the LED do during setup?

The blinking LED shows the board is trying to connect. It stays lit once the connection is complete.

Conclusion

This guide gave you clear steps to check and set up WiFi on your Pico boards. You now know the differences between models. You can use the example code to get your device online. Happy building, and share your success with us!

See also
Best WiFi Modules for Arduino That Stay Connected

Try these steps and let us know how your project goes!

The Ultimate Money-Saving DIY Skill

From power tools and solar banks to your car, batteries are the most expensive part of your gear. Master the step-by-step DIY system to bring dead batteries back to life.

Get the Step-by-Step Guide

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works