In this guide you will learn how to play with the Arduino framework and the RP2040 microcontroller of your new UDOO KEY board.
It is quite easy since it works like any other Raspberry Pi PICO board.

First of all, let's download and install the Arduino IDE following the official documentation.

Now you have to properly setup the IDE in order to use the board.

Close the jumper labeled with Serial Sel to drive the USB communication to the RP2040 and connect the board to your PC using a USB cable. The connected device will be discovered by your PC as COM6 port in Windows OS or as /dev/ttyACM0 device in Linux based OSs. Check the correct port or device before continuing.

Once the port has been found, open the IDE and follow the instructions below to add the Raspberry Pi Pico to the board manager.

Open Preferences window by selecting File and then Preferences.... Programming Pico - step 0

On the Settings tab, insert the URL in Additional boards manager URLs field and then click on the OK button. Programming Pico - step 1

Install the RP2040 board support from the Boards Manager by selecting Tools, Board and Boards Manager.... Programming Pico - step 2

Search the pico text and, among the filtered results, select Raspberry Pi Pico/RP2040 and click the INSTALL button. Programming Pico - step 3

When the installation has finished, select the correct connected board and its port, depending on the OS. On Windows it will be something like COM6 (use the Device Manager to find the correct one) and on Linux based OSs you will have a device file like /dev/ttyACM0. Programming Pico - step 4

Now choose the example you want to load on the microcontroller clicking on File, Examples, rp2040 and then on the project. In this guide we will flash the Fade sketch. Programming Pico - step 5

Finally you can upload the sketch to the microcontroller by clicking the "Upload" button. The IDE will put automatically the MCU in flash mode without the need of additional user operations. Programming Pico - step 6

Once the upload has finished, the on-board led will start to fade as expected!

This page was last updated on Friday, March 15, 2024 at 7:47 AM.