The Raspberry Pi Pico W is a compact and affordable microcontroller board that extends the capabilities of the original Raspberry Pi Pico by adding wireless connectivity. It is based on the Raspberry Pi RP2040 microcontroller chip and is designed for a wide range of applications, from IoT devices and home automation to educational projects and prototyping. The Pico W's Wi-Fi feature enables it to connect to the internet or local networks, making it a versatile choice for wireless projects.
Pin Number | Name | Description |
---|---|---|
1 | 3V3 | 3.3V Power Output |
2 | GP0 | GPIO 0 / SPI RX |
3 | GP1 | GPIO 1 / SPI CS |
... | ... | ... |
40 | GND | Ground |
Note: This is a partial representation of the pin configuration. Refer to the official datasheet for the complete pinout.
import network
import socket
wlan = network.WLAN(network.STA_IF) wlan.active(True) wlan.connect('your-ssid', 'your-password')
if wlan.isconnected(): print("Connected to Wi-Fi") else: print("Connection failed")
addr_info = socket.getaddrinfo("www.example.com", 80) addr = addr_info[0][-1] s = socket.socket() s.connect(addr)
s.send(b"GET / HTTP/1.1\r\nHost: www.example.com\r\n\r\n") response = s.recv(1000) print(response)
s.close()
*Note: Replace 'your-ssid' and 'your-password' with your actual Wi-Fi credentials.*
Q: How do I reset the Pico W? A: Briefly short the RUN pin to GND or power cycle the board.
Q: Can I use the Pico W with Arduino IDE? A: Yes, with the appropriate board support package installed.
Q: What is the maximum current draw from the 3V3 pin? A: The maximum current draw from the 3V3 pin should not exceed 300 mA.
For further assistance, consult the Raspberry Pi forums and the official Raspberry Pi Pico W documentation.