Note
Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts.
Why Join?
Expert Support: Solve post-sale issues and technical challenges with help from our community and team.
Learn & Share: Exchange tips and tutorials to enhance your skills.
Exclusive Previews: Get early access to new product announcements and sneak peeks.
Special Discounts: Enjoy exclusive discounts on our newest products.
Festive Promotions and Giveaways: Take part in giveaways and holiday promotions.
š Ready to explore and create with us? Click [here] and join today!
1.3 Setting Up the Raspberry Pi Pico 2 (Important)ļ
1. Installing the Board Packageļ
To program the Raspberry Pi Pico 2, you need to install the appropriate board package in the Arduino IDE. Follow these steps to get started:
Open the Arduino IDE and navigate to File -> Preferences.
In the dialog that appears, enter the following URL in the āAdditional Boards Manager URLsā field:
https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
.Open the Boards Manager from the menu and search for pico. Click the INSTALL button to begin the installation. This will install the Raspberry Pi Pico 2/RP2040 package, including support for Raspberry Pi Pico 2.
During the installation process, several pop-up prompts may appear requesting you to install specific device drivers. Choose āInstallā.
Once the installation is complete, a notification will appear to confirm the successful setup.
2. Selecting the Board and Portļ
Hold down the BOOTSEL button, then unplug your Raspberry Pi Pico 2 and quickly plug it back in.
Warning
This step is crucial, especially for first-time users on the Arduino IDE. Skipping this step will result in a failed upload.
Once youāve successfully uploaded the code, your Pico will be recognized by the computer. For future uploads, simply plug it into the computer without holding the button.
To select the appropriate board, go to Tools -> Board -> Raspberry Pi Pico 2/RP2040 -> Raspberry Pi Pico 2.
Next, select the correct port by navigating to Tools -> Port -> UF2 Board.
Note
For the first connection or when holding the BOOTSEL button, choose UF2 Board.
After successfully uploading the code, your Pico 2 will be recognized by the computer. For future uses, select the corresponding COMxx (Raspberry Pi Pico 2).
3. Uploading Codeļ
Now, letās move on to uploading code to your Raspberry Pi Pico 2.
Open any
.ino
file, or use the blank sketch that appears by default. Then, click the Upload button.Once the upload is complete, a confirmation prompt will appear.
Your computer should now recognize the Pico 2 successfully.
Arduino 2.0 introduces a quick-select feature for easily setting the correct board and port.