Pico W with Arduino...
 
Notifications
Clear all

Pico W with Arduino IDE


DroneBot Workshop
(@dronebot-workshop)
Workshop Guru Admin
Joined: 3 years ago
Posts: 1114
Topic starter  

Use the new Pico W with the Arduino IDE instead of microPython!

On June 30, 2022, Raspberry Pi announced the latest iteration of it’s RP2040-based Pico microcontroller. The Pico W has the same pinout and form factor as the original Pico and has WiFi capabilities.

Raspberry Pi also released a new UF2 file and several samples using microPython with the new WiFi chip. However, although they did release a C++ SDK, there was no update to the Arduino IDE for the new microcontroller.

But you CAN use the Pico W with the Arduino IDE by using a new boards manager file that covers virtually every RP2040-based board.   And today, I’ll show you how to install that for the classic Arduino IDE 1.8 and the newer IDE 2.0.

After installing the new boards manager, we’ll give it a test. Then we’ll see how we can use the new WiFi features to control LEDs and servo motors with a web-based interface.

Here is the Table of Contents for today's video:

00:00 - Introduction
03:25 - Raspberry Pi Pico W
08:05 - Bluetooth issues?
10:55 - Pico W vs. ESP32
13:35 - Installing the Boards Manager
18:22 - Blink test
20:48 - WiFi Network Scan
23:10 - Using the WiFi Library
28:07 - Using Web Data
30:56 - Pico W LED Control
37:43 - Pico W Servo Control
47:28 - Conclusion

The Arduino IDE is a popular interface for programming microcontrollers, and now we can use it with the Pico W.

Hope you enjoy the video!

Bill

"Never trust a computer you can’t throw out a window." — Steve Wozniak


Quote
Will
 Will
(@will)
Noble Member
Joined: 1 year ago
Posts: 2017
 
Posted by: @dronebot-workshop

Use the new Pico W with the Arduino IDE instead of microPython!

Yay ! Now you're talkin', thanks Bill.

I was kidnapped by mimes.
They did unspeakable things to me.


ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 3045
 
Posted by: @dronebot-workshop

Use the new Pico W with the Arduino IDE instead of microPython!

HOWEVER, there are projects (I have one) that need the C/C++SDK, will/can you cover that at some point? My very cursory look tells me I need to use a Raspberry Pi and run various GIT commands, WGET, and a few others. The project is for a PICO UPS using a daughter board and rechargeable AA battery.

It is considered poor judgement to traverse a chasm in 2 leaps.


ReplyQuote
bwims
(@bwims)
New Member
Joined: 3 months ago
Posts: 1
 

Hi,  I am having difficulties here.  I want to use a RPi running Arduino to program the Pico, but it stubbornly refuses to create a tty port when plugged in.

 

This issue implies that a port should be created (see the dropdown on ports) but I cannot find any way to do it!  Any advice gratefully received!

 

B.


ReplyQuote