{"id":170719,"date":"2025-06-18T17:42:44","date_gmt":"2025-06-18T17:42:44","guid":{"rendered":"https:\/\/randomnerdtutorials.com\/?p=170719"},"modified":"2025-06-18T17:42:47","modified_gmt":"2025-06-18T17:42:47","slug":"raspberry-pi-pico-2-w-arduino-ide","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-2-w-arduino-ide\/","title":{"rendered":"Programming Raspberry Pi Pico 2 and 2 W with Arduino IDE\u00a0"},"content":{"rendered":"\n<p>Learn how to program the Raspberry Pi Pico 2 or 2 W boards using Arduino IDE. The Raspberry Pi Pico 2 \/ 2 W is a microcontroller developed by the Raspberry Pi Foundation, built around the RP2350 chip. It offers a wide range of GPIO pins for connecting peripherals and can be programmed using MicroPython or C\/C++. In this tutorial, you&#8217;ll learn how to program it using C\/C++ programming language using Arduino IDE software.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/06\/Programming-RPi-Pico-2-Arduino-IDE.jpg?resize=1200%2C675&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Programming the RPi Pico 2 and 2 W with Arduino IDE\" class=\"wp-image-170731\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/06\/Programming-RPi-Pico-2-Arduino-IDE.jpg?w=1920&amp;quality=100&amp;strip=all&amp;ssl=1 1920w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/06\/Programming-RPi-Pico-2-Arduino-IDE.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/06\/Programming-RPi-Pico-2-Arduino-IDE.jpg?resize=1024%2C576&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/06\/Programming-RPi-Pico-2-Arduino-IDE.jpg?resize=768%2C432&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/06\/Programming-RPi-Pico-2-Arduino-IDE.jpg?resize=1536%2C864&amp;quality=100&amp;strip=all&amp;ssl=1 1536w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">What is the Raspberry Pi Pico 2?<\/h2>\n\n\n\n<p>The Raspberry Pi Pico 2 is the successor of the Raspberry Pi Pico. It uses the RP2350 chip. It is a microcontroller board like the ESP32 or ESP8266 (not a microcomputer like the Raspberry Pi). Similarly, it can be programmed using Arduino IDE and some of the same methods and functions you would use with the ESP32 and ESP8266 boards.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Where to Buy Raspberry Pi Pico 2?<\/h4>\n\n\n\n<p>The Raspberry Pi Pico 2 W board is widely available on many different stores. Check the following link to compare its price on different stores:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/raspberry-pi-pico-2-w\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Buy Raspberry Pi Pico 2 W<\/strong><\/a><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"750\" height=\"422\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/raspberry-pi-pico-2-w-processor.jpg?resize=750%2C422&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Pico 2 W\" class=\"wp-image-169977\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/raspberry-pi-pico-2-w-processor.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/raspberry-pi-pico-2-w-processor.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p class=\"rntbox rntclgreen\"><strong>New to the Raspberry Pi Pico 2?<\/strong> Check our getting started guide: <a href=\"https:\/\/randomnerdtutorials.com\/getting-started-raspberry-pi-pico-2-w\/\" title=\"\">Getting Started with Raspberry Pi Pico 2 and Pico 2 W<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"programming-rpi-pico-2-arduino-ide\">Programming the Raspberry Pi Pico 2 Using Arduino IDE<\/h2>\n\n\n\n<p>Follow this section to learn how to program the Raspberry Pi Pico boards using Arduino IDE.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-arduino-ide\">Installing Arduino IDE<\/h3>\n\n\n\n<p>Before proceeding, you need to install Arduino IDE on your computer. Install version 2 of the Arduino IDE. You can download and install Arduino IDE by clicking on the following link:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.arduino.cc\/en\/Main\/Software\" target=\"_blank\" rel=\"noreferrer noopener\">arduino.cc\/en\/Main\/Software<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Raspberry-Pi-Pico-Boards-Manager\">Adding the Raspberry Pi Pico to the Boards Manager<\/h3>\n\n\n\n<p><strong>1.<\/strong> In the Arduino IDE, go to <strong>File <\/strong>&gt; <strong>Preferences<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"666\" height=\"631\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/06\/Arduino-IDE-2-File-Preferences.png?resize=666%2C631&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Arduino IDE Preferences\" class=\"wp-image-150042\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/06\/Arduino-IDE-2-File-Preferences.png?w=666&amp;quality=100&amp;strip=all&amp;ssl=1 666w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/06\/Arduino-IDE-2-File-Preferences.png?resize=300%2C284&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 666px) 100vw, 666px\" \/><\/figure><\/div>\n\n\n<p><strong>2.<\/strong> Enter the following URL into the &#8220;Additional Boards Manager URLs&#8221; field:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">https:\/\/github.com\/earlephilhower\/arduino-pico\/releases\/download\/global\/package_rp2040_index.json<\/pre>\n\n\n\n<p>Then, click the \u201cOK\u201d button:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"744\" height=\"490\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/Additional-Boards-URL-RPi-Pico.png?resize=744%2C490&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Additional Boards Manager URL Arduino IDE 2\" class=\"wp-image-150043\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/Additional-Boards-URL-RPi-Pico.png?w=744&amp;quality=100&amp;strip=all&amp;ssl=1 744w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/Additional-Boards-URL-RPi-Pico.png?resize=300%2C198&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 744px) 100vw, 744px\" \/><\/figure><\/div>\n\n\n<p><strong>Note:<\/strong>&nbsp;if you already have the ESP32 and\/or ESP8266 boards URLs, you can separate the three URLs with a comma as follows:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">https:\/\/github.com\/earlephilhower\/arduino-pico\/releases\/download\/global\/package_rp2040_index.json, https:\/\/raw.githubusercontent.com\/espressif\/arduino-esp32\/gh-pages\/package_esp32_index.json,http:\/\/arduino.esp8266.com\/stable\/package_esp8266com_index.json<\/pre>\n\n\n\n<p><strong>3.<\/strong> Open the Boards Manager. Go to <strong>Tools <\/strong>&gt; <strong>Board <\/strong>&gt; <strong>Boards Manager&#8230;<\/strong><\/p>\n\n\n\n<p><strong>4.<\/strong> Search for &#8220;<strong>pico<\/strong>&#8221; and install the <strong>Raspberry Pi Pico\/RP2040\/RP2350<\/strong> boards by Earle F. Phillhower.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"615\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/install-rp2350-arduino-ide-RPi-Pico-2.jpg?resize=750%2C615&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Install Raspberry Pi Pico 2 Boards Arduino IDE 2\" class=\"wp-image-169995\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/install-rp2350-arduino-ide-RPi-Pico-2.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/install-rp2350-arduino-ide-RPi-Pico-2.jpg?resize=300%2C246&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p><strong>5.<\/strong> That&#8217;s it. It will install after a few seconds.<\/p>\n\n\n\n<p><strong>6.<\/strong> Now, if you go to <strong>Tools <\/strong>&gt; <strong>Board<\/strong>, there should be a selection of Raspberry Pi Pico boards.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"337\" height=\"190\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/raspberry-pi-pico-2-boards-installed-arduino-ide.png?resize=337%2C190&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Pico Board Options Arduino IDE 2\" class=\"wp-image-169996\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/raspberry-pi-pico-2-boards-installed-arduino-ide.png?w=337&amp;quality=100&amp;strip=all&amp;ssl=1 337w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/raspberry-pi-pico-2-boards-installed-arduino-ide.png?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 337px) 100vw, 337px\" \/><\/figure><\/div>\n\n\n<p>Now you have everything prepared to start programming your Raspberry Pi Pico board using Arduino IDE. Don&#8217;t connect the board to your computer yet.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Selecting your Pico Board<\/h3>\n\n\n\n<p>Go to <strong>Tools <\/strong>&gt; <strong>Board <\/strong>and select the Raspberry Pi Pico model you&#8217;re using\u2014<strong>Pico 2 <\/strong>or <strong>Pico 2 W<\/strong> (wireless support).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Loading the Blink LED Sketch<\/h3>\n\n\n\n<p>As an example, we&#8217;ll upload the classic Blink LED sketch. Go to <strong>File <\/strong>&gt; <strong>Examples <\/strong>&gt; <strong>1. Basic<\/strong> &gt; <strong>Blink<\/strong>.<\/p>\n\n\n\n<p>The following example should load.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"733\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/Rpi-Pico-Blink-Sketch.png?resize=707%2C733&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Programming the Raspberry Pi Pico Using Arduino IDE Blink LED sketch\" class=\"wp-image-150046\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/Rpi-Pico-Blink-Sketch.png?w=707&amp;quality=100&amp;strip=all&amp;ssl=1 707w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/Rpi-Pico-Blink-Sketch.png?resize=289%2C300&amp;quality=100&amp;strip=all&amp;ssl=1 289w\" sizes=\"(max-width: 707px) 100vw, 707px\" \/><\/figure><\/div>\n\n\n<p>Or you can copy the following code:<\/p>\n\n\n<pre style=\"max-height: 40em; margin-bottom: 20px;\"><code class=\"language-c\">\/*\r\n  Blink -  Turns an LED on for one second, then off for one second, repeatedly.\r\n  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to the correct LED pin independent of which board is used.\r\n  If you want to know what pin the on-board LED is connected to on your Arduino model, check the Technical Specs of your board at: https:\/\/www.arduino.cc\/en\/Main\/Products\r\n  modified 8 May 2014 by Scott Fitzgerald modified 2 Sep 2016 by Arturo Guadalupi modified 8 Sep 2016 by Colby Newman  This example code is in the public domain. https:\/\/www.arduino.cc\/en\/Tutorial\/BuiltInExamples\/Blink\r\n  \r\n  Programming Raspberry Pi Pico with Arduino IDE: https:\/\/RandomNerdTutorials.com\/programming-raspberry-pi-pico-w-arduino-ide\/\r\n*\/\r\n\r\n\/\/ the setup function runs once when you press reset or power the board\r\nvoid setup() {\r\n  \/\/ initialize digital pin LED_BUILTIN as an output.\r\n  pinMode(LED_BUILTIN, OUTPUT);\r\n}\r\n\r\n\/\/ the loop function runs over and over again forever\r\nvoid loop() {\r\n  digitalWrite(LED_BUILTIN, HIGH);   \/\/ turn the LED on (HIGH is the voltage level)\r\n  delay(1000);                       \/\/ wait for a second\r\n  digitalWrite(LED_BUILTIN, LOW);    \/\/ turn the LED off by making the voltage LOW\r\n  delay(1000);                       \/\/ wait for a second\r\n}\r\n<\/code><\/pre>\n\t<p style=\"text-align:center\"><a class=\"rntwhite\" href=\"https:\/\/github.com\/RuiSantosdotme\/Random-Nerd-Tutorials\/raw\/master\/Projects\/Raspberry-Pi-Pico\/Arduino\/Blink\/Blink.ino\" target=\"_blank\">View raw code<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Connecting the Raspberry Pi Pico 2 in BOOTLOADER mode<\/h3>\n\n\n\n<p>To upload code to the Raspberry Pi Pico, it must be in bootloader mode.<\/p>\n\n\n\n<p>If the Raspberry Pi is currently running MicroPython firmware, <strong>you need to manually put it into bootloader mode<\/strong>. For that, connect the Raspberry Pi Pico to your computer while holding the BOOTSEL button at the same time. A new mass storage device window will open on your computer. You can ignore it and close that window.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"422\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Put-RPi-Pico-2-Boot-Mode.jpg?resize=750%2C422&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Put Raspberry Pi Pico 2 into bootloader mode\" class=\"wp-image-169987\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Put-RPi-Pico-2-Boot-Mode.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Put-RPi-Pico-2-Boot-Mode.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p>For future uploads using Arduino IDE, the board should go automatically into bootloader mode without the need to press the BOOTSEL button.<\/p>\n\n\n\n<p>Now, open the top drop-down menu and click on <strong>Select other board and port&#8230;<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"841\" height=\"232\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/Arduino-IDE-2-select-other-board-and-port.png?resize=841%2C232&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"arduino IDE 2 select other board and port\" class=\"wp-image-150047\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/Arduino-IDE-2-select-other-board-and-port.png?w=841&amp;quality=100&amp;strip=all&amp;ssl=1 841w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/Arduino-IDE-2-select-other-board-and-port.png?resize=300%2C83&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/Arduino-IDE-2-select-other-board-and-port.png?resize=768%2C212&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 841px) 100vw, 841px\" \/><\/figure><\/div>\n\n\n<p>For the board, select Raspberry Pi Pico 2 or Raspberry Pi Pico 2 W.<\/p>\n\n\n\n<p>The COM port might not show up on your first upload, so you need to tick the <strong>Show all ports<\/strong> option. Then, select the COM port.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"504\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/raspberry-pi-pico-arduino-ide-2-select-com-port.png?resize=699%2C504&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Arduino IDE 2 select Raspberry Pi Pico COM port.\" class=\"wp-image-150048\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/raspberry-pi-pico-arduino-ide-2-select-com-port.png?w=699&amp;quality=100&amp;strip=all&amp;ssl=1 699w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/03\/raspberry-pi-pico-arduino-ide-2-select-com-port.png?resize=300%2C216&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 699px) 100vw, 699px\" \/><\/figure><\/div>\n\n\n<p>Now, you can upload the code.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"36\" height=\"39\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2021\/05\/arduino-ide-2-upload-button.png?resize=36%2C39&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Arduino IDE 2 Upload Button\" class=\"wp-image-146269\"\/><\/figure><\/div>\n\n\n<p>You should get a success message.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"744\" height=\"249\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-Success-Upload-Arduino-IDE.jpg?resize=744%2C249&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Upload code to Raspberry Pi Pico 2 using Arduino IDE OK\" class=\"wp-image-169997\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-Success-Upload-Arduino-IDE.jpg?w=744&amp;quality=100&amp;strip=all&amp;ssl=1 744w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-Success-Upload-Arduino-IDE.jpg?resize=300%2C100&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 744px) 100vw, 744px\" \/><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">Demonstration<\/h3>\n\n\n\n<p>If everything went as expected, the Raspberry Pi Pico onboard LED should be blinking every second.<\/p>\n\n\n\n<div class=\"wp-block-jetpack-tiled-gallery aligncenter is-style-rectangular\"><div class=\"\"><div class=\"tiled-gallery__gallery\"><div class=\"tiled-gallery__row\"><div class=\"tiled-gallery__col\" style=\"flex-basis:50.00000%\"><figure class=\"tiled-gallery__item\"><img decoding=\"async\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-Blink-LED-OFF.jpg?strip=info&#038;w=600&#038;ssl=1 600w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-Blink-LED-OFF.jpg?strip=info&#038;w=750&#038;ssl=1 750w\" alt=\"Raspberry Pi Pico W onboard LED off\" data-height=\"422\" data-id=\"169993\" data-link=\"https:\/\/randomnerdtutorials.com\/?attachment_id=169993#main\" data-url=\"https:\/\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-Blink-LED-OFF.jpg\" data-width=\"750\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-Blink-LED-OFF.jpg?ssl=1\" data-amp-layout=\"responsive\" aria-label=\"Open image 1 of 2 in full-screen\"\/><\/figure><\/div><div class=\"tiled-gallery__col\" style=\"flex-basis:50.00000%\"><figure class=\"tiled-gallery__item\"><img decoding=\"async\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-Blink-LED-ON.jpg?strip=info&#038;w=600&#038;ssl=1 600w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-Blink-LED-ON.jpg?strip=info&#038;w=750&#038;ssl=1 750w\" alt=\"Raspberry Pi Pico W onboard LED on\" data-height=\"422\" data-id=\"169992\" data-link=\"https:\/\/randomnerdtutorials.com\/?attachment_id=169992#main\" data-url=\"https:\/\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-Blink-LED-ON.jpg\" data-width=\"750\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-Blink-LED-ON.jpg?ssl=1\" data-amp-layout=\"responsive\" aria-label=\"Open image 2 of 2 in full-screen\"\/><\/figure><\/div><\/div><\/div><\/div><\/div>\n\n\n\n<p>And that&#8217;s it. You successfully programmed your Raspberry Pi Pico 2 using Arduino IDE.<\/p>\n\n\n\n<h2 class=\"wp-block-heading rntbox rntclgreen\">Wrapping Up<\/h2>\n\n\n\n<p>In this guide, you learned how to program the Raspberry Pi Pico board using Arduino IDE. It shares many of the same functions also used for programming ESP32, ESP8266, and Arduino boards.<\/p>\n\n\n\n<p>We have more tutorials on how to program the Raspberry Pi Pico board using Arduino IDE (all tutorials are compatible with version 1 and version 2 of the Pico board).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-outputs-inputs-arduino\/\">Raspberry Pi Pico: Control Digital Outputs and Read Digital Inputs (Arduino IDE)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-analog-inputs-arduino\/\">Raspberry Pi Pico: Read Analog Inputs (Arduino IDE)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-pwm-analogwrite-arduino\/\">Raspberry Pi Pico: Fading an LED using PWM (Arduino IDE)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-dht11-dht22-arduino\/\">Raspberry Pi Pico: DHT11\/DHT22 Temperature and Humidity Sensor (Arduino IDE)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-ds18b20-arduino\/\">Raspberry Pi Pico: DS18B20 Temperature Sensor (Arduino IDE) \u2013 Single and Multiple<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-bme280-arduino\/\">Raspberry Pi Pico: BME280 Get Temperature, Humidity, and Pressure (Arduino IDE)<\/a><\/li>\n<\/ul>\n\n\n\n<p>For more resources, you can <a href=\"https:\/\/randomnerdtutorials.com\/projects-raspberry-pi-pico\/\" title=\"\">check all our<strong> Raspberry Pi Pico Projects and Guides here<\/strong><\/a>.<\/p>\n\n\n\n<p>Thanks for reading.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to program the Raspberry Pi Pico 2 or 2 W boards using Arduino IDE. The Raspberry Pi Pico 2 \/ 2 W is a microcontroller developed by the &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Programming Raspberry Pi Pico 2 and 2 W with Arduino IDE\u00a0\" class=\"read-more button\" href=\"https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-2-w-arduino-ide\/#more-170719\" aria-label=\"Read more about Programming Raspberry Pi Pico 2 and 2 W with Arduino IDE\u00a0\">CONTINUE READING \u00bb<\/a><\/p>\n","protected":false},"author":5,"featured_media":170731,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[324,325],"tags":[],"class_list":["post-170719","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi-pico","category-raspberry-pi-pico-arduino-ide"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/06\/Programming-RPi-Pico-2-Arduino-IDE.jpg?fit=1920%2C1080&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/170719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=170719"}],"version-history":[{"count":3,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/170719\/revisions"}],"predecessor-version":[{"id":171564,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/170719\/revisions\/171564"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/170731"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=170719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=170719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=170719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}