51mm x 21mm
51mm x 21mm
3.5g
-20C to 85C
2MB flash storage
264KB SRAM
RP2040 dual-core Arm Cortex-M0+
Up to 133MHz
Wi-Fi | IEEE 802.11b/g/n |
Micro-USB | 1x micro-USB connector |
26x GPIO pins
1.5mA (idle), 50mA (maximum)
Applications
The Raspberry Pi Pico W is suitable for a wide range of applications, including |
IoT projects and prototyping
Automation and control systems
Robotics and robotic arms
Wearable devices and accessories
Environmental monitoring and sensing
Home automation and smart home devices
Industrial control and monitoring systems
What's Included
25x Raspberry Pi Pico W microcontroller boards
Documentation and resources available online
Getting Started
To get started with the Raspberry Pi Pico W, visit the official Raspberry Pi website for detailed documentation, tutorials, and resources. The Pico W is compatible with a range of development tools and software, including MicroPython, C, and Rust.
Raspberry Pi Pico W (Pack of 25) Documentation
Overview
The Raspberry Pi Pico W is a microcontroller board developed by Raspberry Pi, suitable for IoT projects, prototyping, and learning. This pack of 25 boards offers an affordable and versatile solution for various applications. The Pico W features Wi-Fi connectivity, making it an ideal choice for projects that require internet connectivity.
Technical Specifications
Microcontroller: RP2040
Processor: Dual-core Cortex-M0+ @ 133MHz
Memory: 264KB SRAM, 2MB Flash
Wi-Fi: 802.11b/g/n
Interfaces: 2x SPI, 2x I2C, 2x UART, 16x PIO State Machines
Operating Voltage: 1.8-5.5V
Dimensions: 51mm x 21mm
Examples and Code Snippets
Example 1: Wi-Fi Connectivity and HTTP Request
In this example, we will demonstrate how to connect the Raspberry Pi Pico W to a Wi-Fi network and send an HTTP request using the MicroPython firmware.
Code:
```python
import network
import urequests
# Initialize Wi-Fi
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect('your_wifi_ssid', 'your_wifi_password')
# Wait for Wi-Fi connection
while not wlan.isconnected():
pass
print('Connected to Wi-Fi')
# Send HTTP request
response = urequests.get('https://www.example.com')
print(response.text)
```
Example 2: GPIO Control and LED Blinking
In this example, we will show how to control the GPIO pins on the Raspberry Pi Pico W to blink an LED connected to GP15.
Code:
```python
import machine
import time
# Set up GPIO 15 as an output
led = machine.Pin(15, machine.Pin.OUT)
while True:
# Set LED high (on)
led.value(1)
time.sleep(0.5)
# Set LED low (off)
led.value(0)
time.sleep(0.5)
```
Example 3: Reading Ambient Temperature with a DS18B20 Sensor
In this example, we will demonstrate how to read the ambient temperature using a DS18B20 sensor connected to the Raspberry Pi Pico W.
Code:
```python
import machine
import onewire
# Initialize OneWire bus on GP16
ow = onewire.OneWire(machine.Pin(16))
# Find the first DS18B20 sensor
sensor = ow.find_first.Device('28.')
while True:
# Read temperature
temp = sensor.read_temperature()
print(f'Temperature: {temp}C')
time.sleep(1)
```
Note: Make sure to install the required libraries and modules for each example, and adjust the code according to your specific project requirements.
Additional Resources
Raspberry Pi Pico W Datasheet: <https://www.raspberrypi.org/documentation/microcontrollers/rp2040/datasheets/rp2040_datasheet.pdf>
MicroPython Documentation: <https://docs.micropython.org/en/latest/index.html>
Raspberry Pi Pico W Forum: <https://forums.raspberrypi.com/viewforum.php?f=151>