Authorized Online Retailers:

Buy from USA Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES ここでご購入を!

In previous lessons, we have learned using Micro Python for programming Raspberry Pi Pico. Python is a powerful, beginner-friendly programming language. However, if you have Arduino programming experience, you might want to use Arduino IDE to program Pico.

Fortunately, Arduino IDE now supports Raspberry Pi Pico. So now you can easily use Arduino libraries to program the Pico board and save yourself a lot of coding and researching time.

In this lesson, we will show you how to use Arduino IDE to program Pico and run the Arduino Blink example program in Pico as a demo.

  1. Raspberry Pi Pico board and microUSB cable
  2. A computer to run Arduino IDE

Install Arduino IDE

If you have never installed Arduino IDE, please read this tutorial to install Arduino IDE on your PC.

Install Arduino Mbed OS RP2040 Board to support Pico:

Open Arduino IDE ->Tools ->Board Manager
 
In the search bar, search "pico," and you will see a board named "Arduino Mbed OS RP2040 board.
Click the Install button to install this board into the IDE.

It might take a couple of minutes to install the software into Arduino IDE.

Connect the Pico board to your PC

Step 1: Push and hold the BOOTSEL button on your Pico board and connect the Pico into the USB port of your PC.

Step 2: In Arduino IDE, select: Tools -> Board -> Arduino Mbed OS RP2040 Boards -> Raspberry Pi Pico.

Unlike real Arduino boards (UNO, Nano, etc.), the Pico board does not need to select ports in the IDE.

Step 3: In Arduino IDE, select File -> Examples -> Basics -> Blink.

Step 4: Press the Upload button. Now, Arduino IDE will compile the code and upload the sketch onto the Pico board.
If you have any upload errors, it means your Pico is not connected to the PC properly. Please repeat Step 1 again.

After the IDE shows “Done uploading,” it means the Blink program is running on the Pico board. You will see the LED on the Pico board continuously flashing, as we saw in Lesson 1.

Learn More about parts SKU:2021005900

No. Picture Product Name Link
1 Raspberry Pi Pico Board https://osoyoo.store/products/raspberry-pi-pico-flexible-microcontroller-board-based-on-the-raspberry-pi-rp2040-dual-core-arm-cortex-m0-processor-1-pc?variant=39875307864175
2 Servo motor https://osoyoo.store/products/micro-servo-sg90-blue-for-arduino-v2-0-robot-carmodel-lacc200610?variant=31648847560815
3 Infrared Sensor Module https://osoyoo.store/products/hc-sr501-pir-motion-sensor-for-arduino?variant=31957812838511
4 RFID Module and card https://osoyoo.store/products/osoyoo-rfid-module?variant=31970646130799
5 Push Buttons and Hats https://osoyoo.store/products/push-button-and-hats-5pcs?variant=39879253131375
6 LED(6 x White, 6 x Red, 6 x Yellow, 6x Green) https://osoyoo.store/products/led-packs-for-arduino?variant=31957816442991
7 Servo motor https://osoyoo.store/products/sg90-micro-servo-for-arduino-raspberry-pi-robot?variant=31957821096047
8 Piezo Buzzer Module https://osoyoo.store/products/piezo-buzzer-module-1pcs?variant=39879251656815
9 I2C LCD Display(16×2) https://osoyoo.store/products/i2c-lcd1602-display?variant=39875437101167
10 Philips Screwdriver https://osoyoo.store/products/phillips-screwdriver?variant=31930635780207https://osoyoo.store/products/single-channel-relay-module-for-arduino-raspberry-pi?variant=31955954401391
11 Solderless Prototype Breadboard https://osoyoo.store/products/solderless-prototype-breadboard-1pcs?variant=39879255457903
12 Potentionmeter (10K adjustable resistor) https://osoyoo.store/products/potentionmeter-10k-adjustable-resistor-3pcs?variant=39879281016943
13 40Pin M to M Jumper Wires https://osoyoo.store/products/40pin-m-to-m-jumper-wires?variant=39879256539247
14 20Pin M to F Jumper wires 15cm https://osoyoo.store/products/20pin-15cm-female-to-female-cable?variant=31930663305327