Search the Knowledge Base
Getting Started with the RP2040 and the Arduino IDE
This Getting Started with the RP2040 and the Arduino IDE guide aims to guide you on how to set up the RP2040 microcontroller with the Arduino IDE.
RP2040-based microcontrollers such as Raspberry Pi Pico and RP2040 Core Board are supported.
Requirements
- PC with Arduino IDE (2.3.2) installed
- RP2040 Core Board/Raspberry Pi Pico Microcontroller
- USB Type A to USB Type C (For Programming)
Step 2: Install The RP2040 Boards on Arduino IDE 2.x
- Open the Arduino IDE.
- For Windows/Linux: Navigate to File > Preferences.
- For MacOS: Go to Arduino IDE > Settings.
- In the “Additional boards manager URLs” field, add the following link.
https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
If you already have other URLs added, simply add a comma after the last URL and paste this URL as shown below by the orange arrow. Click Ok and you will now notice that the board data will start to download.
Next, we will install the boards. To do this, navigate to the board manager icon highlighted by the red square [1]. Clicking it will open the board manager search bar. In the search bar highlighted by the yellow arrow [2] type in ‘RP2040‘.
The board list will show, click on the Install button highlighted by the orange rectangle [3]. The boards will now install and the progress can be monitored in the output bar.
Step 3: Verify and Test Board Install
After installing the board, we will test the installation, firstly check that the boards have been included in the board manager board list as shown below.
After checking, copy and paste the code below to test the board with an LED blink sketch by blinking the built-in LED. This LED is located on Pin 25.
Connect your RP2040 and select the board as VCC-GND YD RP2040. You will need to press and hold the Boot button [1] and press the RST [2] button for 1 second, while still pressing the Boot Button. Release the boot button approximately 1-2 seconds after pressing the Boot button.
After this, navigate to Tools and select the Port as UF2_Board. Click the Upload button.
After uploading the code, you will notice the Built-in blue LED Blinking once every second.
Credits
- Maker Community
- The RP2040 Community
- The STEM Community
- Earl F. Pilhower, III
