Stufin
Home Quick Cart Profile

Raspberry Pi Pico W with Headers Soldered and USB Cable

Buy Now on Stufin

USB Cable

Includes a USB cable for convenient programming and communication with the board.

26 GPIO PinsProvides a range of general-purpose input/output pins for connecting sensors, actuators, and other peripherals.
USB 1.1 Host/DeviceSupports USB host and device modes, allowing for communication with other devices and peripherals.

Supported Programming Languages

Can be programmed using C, C++, MicroPython, and CircuitPython.

Functionality

The Raspberry Pi Pico W with Headers Soldered and USB Cable is suitable for a wide range of applications, including

IoT Projects

Ideal for IoT applications, such as sensor monitoring, automation, and remote control.

Robotics

Can be used to control robots and robotic arms, thanks to its high-performance processing and Wi-Fi connectivity.

Prototyping

Perfect for prototyping and proof-of-concept projects, due to its compact size and ease of use.

Education

Suitable for educational projects and STEM education, as it provides a hands-on learning experience.

Technical Specifications

Microcontroller

RP2040 dual-core ARM Cortex-M0+

SRAM

264KB

Flash Storage

2MB

Peripherals

SPI, I2C, I2S, ADC, UART

Wi-Fi802.11 b/g/n

USB

USB 1.1 Host/Device

GPIO Pins

26

Power

1.8-5.5V

Operating Temperature

-20C to 85C

What's Included

Raspberry Pi Pico W board with pre-soldered headers

USB cable

micro-USB connector

Documentation and Resources

For more information and resources, including datasheets, documentation, and tutorials, please visit the official Raspberry Pi website.

Pin Configuration

  • Raspberry Pi Pico W with Headers Soldered and USB Cable
  • The Raspberry Pi Pico W is a microcontroller board that combines the Raspberry Pi Pico with Wi-Fi connectivity. The board comes with headers soldered, making it easy to connect to the pins. Here's a detailed explanation of each pin, along with a step-by-step guide on how to connect them:
  • Pinout Diagram:
  • Before we dive into the pin-by-pin explanation, here's a visual representation of the Raspberry Pi Pico W pinout:
  • ```
  • +-----------+
  • | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
  • +-----------+
  • | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
  • +-----------+
  • | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 |
  • +-----------+
  • | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 |
  • +-----------+
  • | GND | VBUS | Vsys |
  • +-----------+
  • ```
  • Pin-by-Pin Explanation:
  • Here's a detailed explanation of each pin, along with its functionality and recommended connections:
  • Power Pins:
  • 1. Vsys (Pin 1): This pin is connected to the 3.3V power supply on the board. It's not recommended to connect anything to this pin, as it's used internally by the Pico W.
  • 2. VBUS (Pin 2): This pin is connected to the 5V power supply from the USB port. You can use this pin to power external devices, but be cautious not to exceed the maximum current rating.
  • 3. GND (Pin 3): This is the ground pin, which provides a common ground connection for all pins.
  • GPIO Pins:
  • 4. GP0 (Pin 4): A general-purpose input/output pin that can be used for digital input/output operations.
  • 5. GP1 (Pin 5): A general-purpose input/output pin that can be used for digital input/output operations.
  • 6. GP2 (Pin 6): A general-purpose input/output pin that can be used for digital input/output operations.
  • 7. GP3 (Pin 7): A general-purpose input/output pin that can be used for digital input/output operations.
  • 8. GP4 (Pin 8): A general-purpose input/output pin that can be used for digital input/output operations.
  • 9. GP5 (Pin 9): A general-purpose input/output pin that can be used for digital input/output operations.
  • 10. GP6 (Pin 10): A general-purpose input/output pin that can be used for digital input/output operations.
  • 11. GP7 (Pin 11): A general-purpose input/output pin that can be used for digital input/output operations.
  • 12. GP8 (Pin 12): A general-purpose input/output pin that can be used for digital input/output operations.
  • 13. GP9 (Pin 13): A general-purpose input/output pin that can be used for digital input/output operations.
  • 14. GP10 (Pin 14): A general-purpose input/output pin that can be used for digital input/output operations.
  • 15. GP11 (Pin 15): A general-purpose input/output pin that can be used for digital input/output operations.
  • 16. GP12 (Pin 16): A general-purpose input/output pin that can be used for digital input/output operations.
  • 17. GP13 (Pin 17): A general-purpose input/output pin that can be used for digital input/output operations.
  • 18. GP14 (Pin 18): A general-purpose input/output pin that can be used for digital input/output operations.
  • 19. GP15 (Pin 19): A general-purpose input/output pin that can be used for digital input/output operations.
  • 20. GP16 (Pin 20): A general-purpose input/output pin that can be used for digital input/output operations.
  • 21. GP17 (Pin 21): A general-purpose input/output pin that can be used for digital input/output operations.
  • 22. GP18 (Pin 22): A general-purpose input/output pin that can be used for digital input/output operations.
  • 23. GP19 (Pin 23): A general-purpose input/output pin that can be used for digital input/output operations.
  • 24. GP20 (Pin 24): A general-purpose input/output pin that can be used for digital input/output operations.
  • 25. GP21 (Pin 25): A general-purpose input/output pin that can be used for digital input/output operations.
  • 26. GP22 (Pin 26): A general-purpose input/output pin that can be used for digital input/output operations.
  • 27. GP23 (Pin 27): A general-purpose input/output pin that can be used for digital input/output operations.
  • 28. GP24 (Pin 28): A general-purpose input/output pin that can be used for digital input/output operations.
  • 29. GP25 (Pin 29): A general-purpose input/output pin that can be used for digital input/output operations.
  • 30. GP26 (Pin 30): A general-purpose input/output pin that can be used for digital input/output operations.
  • 31. GP27 (Pin 31): A general-purpose input/output pin that can be used for digital input/output operations.
  • 32. GP28 (Pin 32): A general-purpose input/output pin that can be used for digital input/output operations.
  • SPI Pins:
  • The Raspberry Pi Pico W has two SPI (Serial Peripheral Interface) buses, each with a separate set of pins.
  • SPI0:
  • + SCK0 (Pin 10): SPI clock pin for SPI0.
  • + MOSI0 (Pin 11): Master Out Slave In pin for SPI0.
  • + MISO0 (Pin 12): Master In Slave Out pin for SPI0.
  • SPI1:
  • + SCK1 (Pin 18): SPI clock pin for SPI1.
  • + MOSI1 (Pin 19): Master Out Slave In pin for SPI1.
  • + MISO1 (Pin 20): Master In Slave Out pin for SPI1.
  • I2C Pins:
  • The Raspberry Pi Pico W has two I2C (Inter-Integrated Circuit) buses, each with a separate set of pins.
  • I2C0:
  • + SDA0 (Pin 6): Serial Data pin for I2C0.
  • + SCL0 (Pin 7): Serial Clock pin for I2C0.
  • I2C1:
  • + SDA1 (Pin 14): Serial Data pin for I1C.
  • + SCL1 (Pin 15): Serial Clock pin for I2C1.
  • UART Pins:
  • The Raspberry Pi Pico W has two UART (Universal Asynchronous Receiver-Transmitter) buses, each with a separate set of pins.
  • UART0:
  • + TX0 (Pin 4): Transmit pin for UART0.
  • + RX0 (Pin 5): Receive pin for UART0.
  • UART1:
  • + TX1 (Pin 16): Transmit pin for UART1.
  • + RX1 (Pin 17): Receive pin for UART1.
  • Wireless Connectivity:
  • The Raspberry Pi Pico W has built-in Wi-Fi and Bluetooth capabilities, which are enabled through the wireless module.
  • Connecting the Pins:
  • When connecting the pins, make sure to follow these guidelines:
  • Use breadboard-friendly jumper wires or PCB headers to connect the pins.
  • Ensure that the pins are connected to the correct GPIO, SPI, I2C, or UART pins on the Raspberry Pi Pico W.
  • Use pull-up or pull-down resistors as required for the specific application.
  • Be cautious when connecting power-hungry devices to the GPIO pins, as they may exceed the maximum current rating.
  • By following this guide, you can successfully connect the pins on the Raspberry Pi Pico W and start building your IoT projects.

Code Examples

Raspberry Pi Pico W with Headers Soldered and USB Cable
Overview
The Raspberry Pi Pico W is a microcontroller board from Raspberry Pi, featuring the RP2040 microcontroller chip. This board comes with headers soldered and a USB cable, making it a convenient option for IoT projects. The Pico W is a wireless version of the Pico, with Wi-Fi and Bluetooth capabilities.
Technical Specifications
Microcontroller: RP2040
 Processor: Dual-core ARM Cortex-M0+ processor
 Clock Speed: Up to 133 MHz
 RAM: 264 KB
 Flash Storage: 2 MB
 Wi-Fi: 2.4 GHz IEEE 802.11 b/g/n
 Bluetooth: Bluetooth 5.0
 Interfaces: 2 x SPI, 2 x I2C, 2 x UART, 1 x USB 1.1
 Operating Temperature: -20C to 85C
Code Examples
### Example 1: Blinking LED using MicroPython
In this example, we will use MicroPython to blink an LED connected to GPIO 25 on the Raspberry Pi Pico W.
Hardware Requirements
Raspberry Pi Pico W with headers soldered and USB cable
 LED
 220 resistor
 Breadboard and jumper wires
Code
```python
import machine
import time
# Set up the LED on GPIO 25
led = machine.Pin(25, machine.Pin.OUT)
while True:
    led.value(1)  # Turn on the LED
    time.sleep(0.5)  # Wait for 0.5 seconds
    led.value(0)  # Turn off the LED
    time.sleep(0.5)  # Wait for 0.5 seconds
```
Explanation
1. Import the `machine` and `time` modules.
2. Set up the LED on GPIO 25 as an output pin using `machine.Pin`.
3. Enter an infinite loop where the LED is turned on and off using the `value` method.
### Example 2: Wi-Fi Connection using C/C++
In this example, we will use the C/C++ SDK to connect the Raspberry Pi Pico W to a Wi-Fi network.
Hardware Requirements
Raspberry Pi Pico W with headers soldered and USB cable
 Wi-Fi network
Code
```c
#include <stdio.h>
#include <string.h>
#include "pico/stdlib.h"
#include "pico/wifi.h"
int main() {
    // Initialize Wi-Fi
    wifi_init();
// Set Wi-Fi credentials
    wifi_set_credentials("your_ssid", "your_password");
// Connect to Wi-Fi
    wifi_connect();
// Check if connected
    if (wifi_is_connected()) {
        printf("Connected to Wi-Fi!
");
    } else {
        printf("Failed to connect to Wi-Fi
");
    }
return 0;
}
```
Explanation
1. Include the necessary headers for Wi-Fi functionality.
2. Initialize the Wi-Fi module using `wifi_init`.
3. Set the Wi-Fi credentials using `wifi_set_credentials`.
4. Connect to the Wi-Fi network using `wifi_connect`.
5. Check if the connection was successful using `wifi_is_connected`.
Note: Replace "your_ssid" and "your_password" with your actual Wi-Fi credentials.
### Example 3: Reading Temperature and Humidity using a Sensor (DHT11)
In this example, we will use the Raspberry Pi Pico W to read temperature and humidity data from a DHT11 sensor using MicroPython.
Hardware Requirements
Raspberry Pi Pico W with headers soldered and USB cable
 DHT11 temperature and humidity sensor
 Breadboard and jumper wires
Code
```python
import machine
import dht
# Create a DHT11 object on GPIO 16
d = dht.DHT11(machine.Pin(16))
while True:
    # Read temperature and humidity data
    temp, hum = d.measure()
# Print the data
    print(f"Temperature: {temp:.1f}C, Humidity: {hum:.1f}%")
# Wait for 1 second before taking the next reading
    time.sleep(1)
```
Explanation
1. Import the `machine` and `dht` modules.
2. Create a DHT11 object on GPIO 16 using the `dht.DHT11` class.
3. Enter an infinite loop where the temperature and humidity data are read using the `measure` method.
4. Print the data to the console using f-strings.
Note: Make sure to install the `dht` library using `pip` before running this example.