Introduction: Raspberry Pi Pico W

About: Myself Ramji Patel, I am an Electronic project Teacher, hobbyist and designer. In present I am pursuing my B-tech from Institute of Engineering and Rural Technology(I.E.R.T.), Prayagraj (Allahabad).

INTRODUCTION:

As you might know that I have published many instructables on raspberry pi pico. Raspberry pi pico board is developed by Raspberry pi. They have also developed a new board based on RP2040 microcontroller that supports wifi and this board is Raspberry pi pico w. This microcontroller board looks very similar to raspberry pi pico but the only difference between the boards is that the Raspberry pi pico w has a wifi chip on its board and this chip is connected to RP2040 microcontroller chip. So we can say that the Raspberry pi pico w is similar to other wifi boards such as ESP8266 and ESP32. So I decided to publish a instructables on Raspberry pi pico w. In this instructables I am going to give you basic knowledge about this new board(such as pin diagram, installing the micro python firmware on raspberry pi pico w and running the first on board led blinking program). So let's get started.

Supplies

Hardware Requirements:

you can purchase the raspberry pi pico from any online shop. Since I am from India and I purchase my electronics components from Quartz components. If you are not from India then you can purchase it from some other online shops such as ebay, amazon, AliExpress, bangood etc.


Quartz Components

https://quartzcomponents.com?sca_ref=3671286.DzEptz4I3w

Raspberry pi pico w

https://quartzcomponents.com/products/raspberry-pi-pico-w?_pos=1&_sid=2c474e70b&_ss=r

Bread board

https://quartzcomponents.com/products/colored-breadboard-mb-102-830-point?_pos=1&_sid=af3bd78e9&_ss=r

Male headers

https://quartzcomponents.com/products/40-pin-break-away-headers-straight-male-headers?_pos=1&_sid=d076ceddf&_ss=r

Micro- B USB Cable

https://quartzcomponents.com/products/raspberry-pi-cable-for-charging?_pos=3&_sid=e088739e1&_ss=r


Amazon

Raspberry pi pico w

https://www.amazon.in/Raspberry-Pi-Official-Dual-core-Processor/dp/B0BKTK2P41/ref=sr_1_3?crid=4RE7LVEH9V3V&keywords=raspberry+pi+pico+w&qid=1683268692&sprefix=raspberry+pi+pico+w%2Caps%2C614&sr=8-3

Bread board

https://www.amazon.in/Generic-CPVKHEDC-Breadboard-MB102-830-Tiepoints/dp/B01FLQCA3M/ref=sr_1_9_mod_primary_new?crid=1KSN5OG6CEM7B&keywords=bread+board&qid=1683268720&sbo=RZvfv%2F%2FHxDF%2BO5021pAnSA%3D%3D&sprefix=bread+boar%2Caps%2C422&sr=8-9

Male headers

https://www.amazon.in/Super-Debug-Single-I-Type-Header/dp/B084YDRTM7/ref=sr_1_4_sspa?crid=A9HMNNE7TK9C&keywords=male+headers&qid=1683268755&sprefix=male+headers%2Caps%2C474&sr=8-4-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1

Micro-B USB cable

https://www.amazon.in/Aktronics%C2%AE-USB-Micro-Data-Chargers/dp/B09P1CC95L/ref=sr_1_2?crid=2X9TBY3XC29HE&keywords=node+mcu+cable&qid=1683268837&sprefix=node+mcu+cable%2Caps%2C385&sr=8-2


eBay

Raspberry pi pico w

https://www.ebay.com/itm/275788342697?hash=item40364425a9:g:vmEAAOSwveJi5CMN&amdata=enc%3AAQAIAAAA4ExhtlchZzt8fypo%2BnHlEWXSz45LQ90nkcV63LLuutTE6MmXKq%2FPvSim0lYOhF%2FmMgOQs0QtLfrTwGg2CAwAGtpW9OMutbF346UUcqmWSU2Ql3lTHlcezWsZF6BqwsXD1liwAAKsxSbo%2FC3zI6gAVRld2eiA7VDRA1Ce40VV7bIy7hfHOLDBDms6TslxvhxGD%2Bth2O13Yq4%2FcT1kN8Stn7TFLwq5SXqIW7emXi9w%2F3gynphN3RiY2KZHpX9qBlxMimY9XQPIRkJa8FEo5wFEvf89LjY7%2BRtZwe4Jx9gSbGuV%7Ctkp%3ABk9SR5j6par9YQ

Bread board

https://www.ebay.com/itm/202873237798?hash=item2f3c2ff126:g:LwoAAOSwR8heFhAL&amdata=enc%3AAQAIAAAAwK9SjYQEiQJ8P0x%2FkDuEelAadNAaFXVSdGSuz%2BvaRgUFNf1uCJ2q%2BFCSJl0qydE4VbUHejAEJ4LSe9A0soiLnBEyfPDWJpYM4%2B40CtEJgVYfsAcFLtQav%2FQuChy4H3rN4quJ9UJS99hcYhlAjAFeYkL1nD4jBwJWMFzMw5f2NOkK8kaRebetR25Ijvn8gEz5I24%2FebO6T3%2FEF9s61%2BPcYoQfjpj1UiBHYLwIyxH4o4ju6aSaywZumn82Iutjf0AmOw%3D%3D%7Ctkp%3ABk9SR9a0rKr9YQ

https://quartzcomponents.com?sca_ref=3671286.DzEptz4I3whttps://www.ebay.com/itm/334666114680?hash=item4deba7a678:g:K8kAAOSww2JjfbSQ&amdata=enc%3AAQAIAAAA4BiqGNxmQZfFZC6KkoRDTjjRe%2Ba2WPPVdg21i65JoEfT8x9L%2Br8g0pqFCjT5imNgzTME6FaQNsKbR%2FwFhcaScpd3a5uCZD%2BumpLDDDGyBbrpsGOO8%2Fuys%2FW7aigUk3zgL9Wie%2Bztr929AQBtNCe1XI73RtwBbAvD7slVvUa0A3QgKTHMAjZzj8jBjR8wMQkKyruQAHr2zBZt8%2BwVnRiarqtDfQ%2B1Ry8dA7PP8OSSoTva5lNh4RbveVv7KWswLnMEnuBho2b9n5ipPok0S8ZG%2FM3N4pPxoEK3vqR2JS8uKQ91%7Ctkp%3ABFBMhN2zqv1h

Micro-B USB cable

https://www.ebay.com/itm/225543531134?hash=item3483712a7e:g:no4AAOSwTvZkQRdN&amdata=enc%3AAQAIAAAAwO12ZFPab7mkyU3HzYILWL5zk4nirIU6ybd6gFB%2BwCl85XiH%2Fw5NIpNza%2B6X1qfCjHxazazya8bfo0P4ukK%2B%2BKNX5oB4dwljKuirGBc2xCMK3DqQ9CI7sYKfjJ78k7%2BTHDPwdl6Uij6o6Dvso1056l4tz4YtpZFSmT%2F%2FTmP4ijfpJ868oyWQla5f5MkfwpWTuk4yeehFP9lQ8%2FseEcX5yBikG4k77Fc062Dgv5FFzMGfsOHGwslqenNC9fByKSqVzQ%3D%3D%7Ctkp%3ABk9SR_61t6r9YQ


AliExpress

Raspberry pi pico w

https://www.aliexpress.com/item/1005004726003559.html?spm=a2g0o.productlist.main.7.7f6b69e6j9feW0&algo_pvid=4f2e0095-9c6c-4395-8f6f-209c557e23ac&algo_exp_id=4f2e0095-9c6c-4395-8f6f-209c557e23ac-3&pdp_npi=3%40dis%21INR%21759.82%21683.76%21%21%21%21%21%402102188b16832690732634603d073f%2112000031323899491%21sea%21IN%214591577082&curPageLogUid=KelPa5lwR1WS

Bread board

https://www.aliexpress.com/item/1005003954777017.html?spm=a2g0o.productlist.main.3.1e7a2b24ZVWGMM&algo_pvid=8800872f-168c-47a5-932c-87ecf7b9b844&algo_exp_id=8800872f-168c-47a5-932c-87ecf7b9b844-1&pdp_npi=3%40dis%21INR%2152.4%2149.87%21%21%21%21%21%4021227d8316832691075776261d074f%2112000027557460507%21sea%21IN%214591577082&curPageLogUid=Kzp3GeZuS9dt

Male headers

https://www.aliexpress.com/item/32735482077.html?spm=a2g0o.productlist.main.19.3ee96f75tZJlQm&algo_pvid=75c76325-2753-42a9-9ea3-c5ddf0eac9fb&algo_exp_id=75c76325-2753-42a9-9ea3-c5ddf0eac9fb-9&pdp_npi=3%40dis%21INR%2187.05%2185.36%21%21%21%21%21%40211bea0816832691368464677d07b9%2165380711766%21sea%21IN%214591577082&curPageLogUid=jKmnfoWj7MJ7

Micro-B USB cable

https://www.aliexpress.com/item/1005003171143644.html?spm=a2g0o.productlist.main.87.1bdc141fZSnvbe&algo_pvid=16de29d6-6726-4fb9-beb8-f1f82b07bde5&algo_exp_id=16de29d6-6726-4fb9-beb8-f1f82b07bde5-43&pdp_npi=3%40dis%21INR%21421.75%21147.91%21%21%21%21%21%40211bf3f716832691655912583d07ba%2112000024478897711%21sea%21IN%214591577082&curPageLogUid=7w0ZZZXjT8at


Tools:

  1. Soldering Iron
  2. Soldering Flux
  3. Soldering wire


Software Requirements:

Download the Thonny micro python IDE to program your raspberry pi pico w. The link is given below:

https://thonny.org/

Step 1: Overview of Raspberry Pi Pico W

Raspberry pi pico w:

Raspberry Pi Pico W is a new Raspberry Pi product that adds WiFi capability to the Raspberry Pi Pico, allowing you to connect the device to a WiFi network. Raspberry Pi Pico W adds on-board single-band 2.4GHz wireless interfaces (802.11n) using the Infineon CYW43439 while retaining the Pico form factor. The on-board 2.4GHz wireless interface has the following features:

  • Wireless (802.11n), single-band (2.4 GHz)

  • WPA3

  • Soft access point supporting up to four clients

The antenna is an onboard antenna licensed from ABRACON (formerly ProAnt). The wireless interface is connected via SPI to the RP2040 microcontroller.

Due to pin limitations, some of the wireless interface pins are shared. The CLK is shared with VSYS monitor, so only when there isn’t an SPI transaction in progress can VSYS be read via the ADC. The Infineon CYW43439 DIN/DOUT and IRQ all share one pin on the RP2040. Only when an SPI transaction isn’t in progress is it suitable to check for IRQs. The interface typically runs at 33MHz.

For best wireless performance, the antenna should be in free space. For instance, putting metal under or close by the antenna can reduce its performance both in terms of gain and bandwidth. Adding grounded metal to the sides of the antenna can improve the antenna’s bandwidth.

NOTE: The CYW43439 wireless chip is connected via SPI to the RP2040. While the CYW43439 supports both 802.11 wireless and Bluetooth, initially Pico W does not have Bluetooth support. Support may be added later, and will use the same SPI interface. If support is added existing hardware may require a firmware update to support Bluetooth, but there will be no hardware modifications needed.



Step 2: Downloading the UF2 File and Installing It on Pico W

You can download the micropython UF2 file from the link given below:

https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html

or use:

https://rpf.io/pico-w-firmware

Now, to boot the UF2 file on raspberry pi pico w, hold the BOOTSET button on pico w board and connect it to the computer using the micro USB cable and release the BOOTSET button. As soon as we release the BOOTSET button a new folder will automatically open on the screen of out computer. Now save the UF2 file inside this folder. As you save the UF2 file in the open folder, the folder disappears automatically.

Run Thonny on your computer and go to tools and select options. Again click on interpreter and then choose micorpython(Raspberry pi pico). Select the port of your Raspberry pi pico w.

Now you will see that your raspberry pi pico w board appears in the shell area. Type print("hello") in the shell and press enter now pico board prints hello on the shell. This indicated everything is working right.

Step 3: Writing the Led Blink Program

Now we are ready to run our first micropython program(Blink on board LED) on the pico w. Open a new file in Thonny and write the following micropython program to blink the on board led of the pico w.

import machine
import time

led = amachine.Pin('LED', machine.Pin.OUT)

while True:
  led.value(1)
  time.sleep(1)
  led.value(0)
  time.sleep(1)

save this file on your pico w with file name as main.py and click on run. Now you can see that on board led of the pico w starts blinking.

Step 4: Solder the Male Headers on Pico W

To make your raspberry pi pico w board bread board friendly, you need to solder male headers on all 40 pins of of the pico board. There 3 more extra pins on the board for debugging but here I am not soldering header on these pins because I am not using debugging here. If you needs them in future then you can solder male headers on these pin. The proper way to do this job is first insert the 20 - 20 male headers on the both side of the middle gap of the bread board. Both headers should be parallel to each other. Now put your pico board on these headers in this way that each pin can pass in its corresponding hole of the pico w board as shown in my uploaded pictures. Now you can start making the solder connections so that male headers will always be on their right places. To understand it more clearly you can take the help of given pictures given in this step.