{"id":169963,"date":"2025-05-15T13:30:59","date_gmt":"2025-05-15T13:30:59","guid":{"rendered":"https:\/\/randomnerdtutorials.com\/?p=169963"},"modified":"2025-05-15T22:17:57","modified_gmt":"2025-05-15T22:17:57","slug":"getting-started-raspberry-pi-pico-2-w","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/getting-started-raspberry-pi-pico-2-w\/","title":{"rendered":"Getting Started with Raspberry Pi Pico 2 and Pico 2 W"},"content":{"rendered":"\n<p>The Raspberry Pi Pico 2 is the successor to the original Raspberry Pi Pico (Pico 1). It\u2019s 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++. If you&#8217;re already familiar with the first version of the Pico, working with the Pico 2 will feel the same. Just make sure to load the correct firmware for its processor<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-Getting-Started.jpg?resize=1024%2C576&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Getting Started with Raspberry Pi Pico 2 and Pico 2W\" class=\"wp-image-169974\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-Getting-Started.jpg?resize=1024%2C576&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-Getting-Started.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-Getting-Started.jpg?resize=768%2C432&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-Getting-Started.jpg?resize=1536%2C864&amp;quality=100&amp;strip=all&amp;ssl=1 1536w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-Getting-Started.jpg?w=1920&amp;quality=100&amp;strip=all&amp;ssl=1 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p class=\"rntbox rntclgreen\">Learn more about the Raspberry Pi Pico with our eBook: <a href=\"https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-w-micropython-ebook\/\">Learn Raspberry Pi Pico with MicroPython (<em>eBook<\/em>)<\/a>.<\/p>\n\n\n\n<p><strong>Table of Contents<\/strong><\/p>\n\n\n\n<p>In this tutorial, we&#8217;ll cover the following subjects:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#pico-2-intro\" title=\"\">Introducing the Raspberry Pi Pico 2<\/a><\/li>\n\n\n\n<li><a href=\"#pico-2-variants\" title=\"\">Variants of the Raspberry Pi Pico 2 Board<\/a><\/li>\n\n\n\n<li><a href=\"#pico-vs-pico-2\" title=\"\">Main Differences Between the Raspberry Pi Pico and Pico 2<\/a><\/li>\n\n\n\n<li><a href=\"#pico-2-gpio-interfaces\" title=\"\">Raspberry Pi Pico 2 GPIO Interfaces<\/a><\/li>\n\n\n\n<li><a href=\"#pico-2-pinout\" title=\"\">Raspberry Pi Pico 2 Pinout<\/a><\/li>\n\n\n\n<li><a href=\"#pico-2-w-pinout\" title=\"\">Raspberry Pi Pico 2 W Pinout<\/a><\/li>\n\n\n\n<li><a href=\"#pico-2-programming\" title=\"\">How to Program the Raspberry Pi Pico 2 \/ Pico 2 W?<\/a>\n<ul class=\"wp-block-list\">\n<li><a href=\"#program-pico-2-micropython\" title=\"\">Programming Raspberry Pi Pico 2 with MicroPython<\/a><\/li>\n\n\n\n<li><a href=\"#programming-rpi-pico-2-arduino-ide\" title=\"\">Programming the Raspberry Pi Pico 2 Using Arduino IDE<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"pico-2-intro\">Introducing the Raspberry Pi Pico 2 and Pico 2 W<\/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).<\/p>\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.jpg?resize=750%2C422&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Pico 2 W\" class=\"wp-image-169975\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-W.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.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>Here&#8217;s a list of the main features of the Raspberry Pi Pico 2<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>RP2350<\/strong> microcontroller chip<\/li>\n\n\n\n<li>Dual Cortex-M33 or Hazard3 processors at up to <strong>150MHz<\/strong><\/li>\n\n\n\n<li><strong>520KB <\/strong>of <strong>SRAM<\/strong>, and <strong>4MB of on-board flash memory<\/strong><\/li>\n\n\n\n<li><strong>USB 1.1<\/strong> with device and host support<\/li>\n\n\n\n<li><strong>Low-power sleep<\/strong> and dormant modes (as less as 10uA )<\/li>\n\n\n\n<li>26\u00d7 multi-function <strong>GPIO <\/strong>pins<\/li>\n\n\n\n<li>2\u00d7 <strong>SPI<\/strong>, 2\u00d7 <strong>I2C<\/strong>, 2\u00d7 <strong>UART<\/strong>, 3\u00d7 12-bit 500ksps Analog to Digital Converter (<strong>ADC<\/strong>), 24\u00d7 controllable <strong>PWM <\/strong>channels<\/li>\n\n\n\n<li>2\u00d7 Timer with 4 alarms, 1\u00d7 AON Timer<\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-internal-temperature-arduino\/\" title=\"\">Built-in temperature sensor<\/a><\/li>\n\n\n\n<li>3 \u00d7 Programmable IO (PIO) blocks, 12 state machines total for custom peripheral support\n<ul class=\"wp-block-list\">\n<li>Flexible, user-programmable high-speed IO<\/li>\n\n\n\n<li>Can emulate interfaces such as SD Card and VGA<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>When it comes to the wireless interface and Bluetooth:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Wireless (802.11n), single-band (2.4 GHz) (Infineon CYW43439)<\/li>\n\n\n\n<li>WPA3<\/li>\n\n\n\n<li>Soft access point supporting up to four clients<\/li>\n\n\n\n<li>Bluetooth 5.2\n<ul class=\"wp-block-list\">\n<li>Support for Bluetooth LE Central and Peripheral roles<\/li>\n\n\n\n<li>Support for Bluetooth Classic<\/li>\n<\/ul>\n<\/li>\n<\/ul>\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=\"noopener\" title=\"\"><strong>Buy Raspberry Pi Pico 2 W<\/strong><\/a><\/li>\n<\/ul>\n\n\n<p>You can use the preceding links or go directly to <a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\">MakerAdvisor.com\/tools<\/a> to find all the parts for your projects at the best price!<\/p><p style=\"text-align:center;\"><a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/header-200.png?w=1200&#038;quality=100&#038;strip=all&#038;ssl=1\"><\/a><\/p>\n\n\n\n<p class=\"rntbox rntclgreen\">You may also like: <a href=\"https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-web-server-micropython\/\" title=\"\">Raspberry Pi Pico: Web Server (MicroPython)<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"pico-2-variants\">Variants of the Raspberry Pi Pico 2 Board<\/h2>\n\n\n\n<p>There are two variants of this board: the Raspberry Pi Pico 2 and the Raspberry Pi Pico 2 W. The latter adds wireless capabilities: Wi-Fi, and Bluetooth.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"750\" height=\"421\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-vs-Rpi-Pico-2W.jpg?resize=750%2C421&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Pico 2 and Raspberry Pi Pico 2 W\" class=\"wp-image-169976\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-vs-Rpi-Pico-2W.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-vs-Rpi-Pico-2W.jpg?resize=300%2C168&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-element-caption\">Raspberry Pi Pico 2 W, and Raspberry Pi Pico 2<\/figcaption><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">What Raspberry Pi Pico Board Should You Get?<\/h3>\n\n\n\n<p>The <a href=\"https:\/\/makeradvisor.com\/tools\/raspberry-pi-pico-2-w\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Raspberry Pi Pico 2 W<\/a> includes wireless connectivity, making it ideal for IoT and home automation projects that require Wi-Fi or Bluetooth. We recommend getting a Raspberry Pi Pico W, as the price difference is not significant, and you\u2019ll have the flexibility to use Wi-Fi or Bluetooth if needed.<\/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\/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<h2 class=\"wp-block-heading\" id=\"pico-vs-pico-2\">Main Differences Between the Raspberry Pi Pico and Pico 2<\/h2>\n\n\n\n<p>The Raspberry Pi Pico W and Pico 2 W are similar in many ways, making it easy to switch between them. They have the same form factor, the same pinout, and the way they work and how you program them is also similar.<\/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\/raspberry-pi-pico-vs-raspberry-pi-pico-2.jpg?resize=750%2C422&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Pico vs Raspberry Pi Pico 2\" class=\"wp-image-169979\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/raspberry-pi-pico-vs-raspberry-pi-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\/raspberry-pi-pico-vs-raspberry-pi-pico-2.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>They differ slightly in hardware and performance. If you\u2019re familiar with the Pico W, the Pico 2 W will be a smooth upgrade with the same pinout and MicroPython commands. However, you\u2019ll need to load the correct MicroPython firmware for the RP2350 chip (Pico 2 W) instead of the RP2040 (Pico W). If you&#8217;re using Arduino IDE, you&#8217;ll need to select the corresponding board.<\/p>\n\n\n\n<p>Here are the main differences when using the Pico 2\/ Pico 2 W board:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>More Processing Power, Increased Memory, and Storage<\/strong>: the Pico 2 W is faster, more powerful (<strong>RP2350 <\/strong>SoC), and better suited for complex projects, with double the memory and storage (<strong>520 KB<\/strong> SRAM and<strong> 4 MB<\/strong> Flash).<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>More Power Efficient<\/strong>: It\u2019s also now more power-efficient, which means it&#8217;s better for battery-powered projects.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Advanced Security Features<\/strong>: the Pico 2 W offers advanced security features like Secure Boot and Arm TrustZone, while the Pico W has only basic security.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The<strong> Same Wi-Fi and Bluetooth Features<\/strong>: both boards use the same Infineon CYW43439 chip for Wi-Fi and Bluetooth. <\/li>\n<\/ul>\n\n\n\n<p><strong>All our previous<a href=\"https:\/\/randomnerdtutorials.com\/projects-raspberry-pi-pico\/\" title=\"\"> Raspberry Pi Pico projects<\/a> work on the Raspberry Pi Pico 2.<\/strong><\/p>\n\n\n\n<p>Here&#8217;s a table highlighting the main differences between the two boards.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><\/td><td><strong>Raspberry Pi Pico W<\/strong><\/td><td><strong>Raspberry Pi Pico 2 W<\/strong><\/td><\/tr><tr><td><strong>Chip<\/strong><\/td><td>RP2040 (Dual-core, 133 MHz)<\/td><td>RP2350 (Dual-core, 150 MHz)<\/td><\/tr><tr><td><strong>Memory (SRAM)<\/strong><\/td><td>264 KB<\/td><td>520 KB<\/td><\/tr><tr><td><strong>Storage (FLASH)<\/strong><\/td><td>2 MB<\/td><td>4 MB<\/td><\/tr><tr><td><strong>Sleep Mode (comsumption)<\/strong><\/td><td>100 uA<\/td><td>10 uA<\/td><\/tr><tr><td><strong>Wi-Fi\/Bluetooth<\/strong><\/td><td>Infineon CYW43439 <\/td><td>Infineon CYW43439 <\/td><\/tr><tr><td><strong>Security<\/strong><\/td><td>None<\/td><td>Arm TrustZone, 8KB OTP, Secure Boot<\/td><\/tr><tr><td><strong>Language Support<\/strong><\/td><td>MicroPython, CircuitPython, C, C++<\/td><td>MicroPython, CircuitPython, C, C++<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"pico-2-gpio-interfaces\">Raspberry Pi Pico 2 GPIO Interfaces<\/h2>\n\n\n\n<p>The Raspberry Pi Pico comes with 40 pins, 26 of which are programmable GPIOs that you can use to connect peripherals.<\/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\/Pico-2-W-GPIOs.jpg?resize=750%2C422&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Pico 2 W GPIO Interfaces\" class=\"wp-image-169981\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Pico-2-W-GPIOs.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Pico-2-W-GPIOs.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>The Raspberry Pi Pico 2 supports the following peripheral interfaces on its GPIOs:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>2x UART<\/li>\n\n\n\n<li>2x I2C<\/li>\n\n\n\n<li>2x SPI<\/li>\n\n\n\n<li>24x PWM channels (8 slices, 3 channels each)<\/li>\n\n\n\n<li>3x ADC pins (12-bit 500ksps)<\/li>\n<\/ul>\n\n\n\n<p>The Raspberry Pi Pico GPIOs run at 3.3V.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"pico-2-pinout\">Raspberry Pi Pico 2 Pinout<\/h2>\n\n\n\n<p>The pinout of the Raspberry Pi Pico 2 is the same as version 1 of the Pico. Check the following pictures for the Raspberry Pi Pico 2 and Pico 2 W pinouts.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"rpi-pico-2-pinout\">Raspberry Pi Pico 2 Pinout<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-Pinout.jpg?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"657\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-Pinout.jpg?resize=1024%2C657&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Pico 2 Pinout\" class=\"wp-image-169983\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-Pinout.jpg?resize=1024%2C657&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-Pinout.jpg?resize=300%2C192&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-Pinout.jpg?resize=768%2C493&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-Pinout.jpg?w=1288&amp;quality=100&amp;strip=all&amp;ssl=1 1288w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Image source: <a href=\"https:\/\/raspberrypi.com\" target=\"_blank\" rel=\"noopener\" title=\"\">raspberrypi.com<\/a><\/figcaption><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"pico-2-w-pinout\">Raspberry Pi Pico 2 W Pinout<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-W-Pinout.jpg?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"673\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-W-Pinout.jpg?resize=1024%2C673&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Pico 2 W Pinout\" class=\"wp-image-169984\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-W-Pinout.jpg?resize=1024%2C673&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-W-Pinout.jpg?resize=300%2C197&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-W-Pinout.jpg?resize=768%2C505&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-W-Pinout.jpg?w=1310&amp;quality=100&amp;strip=all&amp;ssl=1 1310w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Image source: <a href=\"https:\/\/raspberrypi.com\" target=\"_blank\" rel=\"noopener\" title=\"\">raspberrypi.com<\/a><\/figcaption><\/figure><\/div>\n\n\n<p>The pins marked in red are power pins that output 3.3V or 5V. The black pins are GND pins. All pins in light green can be used as \u201cregular\u201d GPIOs (input and output), and all can generate PWM signals.<\/p>\n\n\n\n<p>SPI, I2C, UART communication protocols, and ADC are supported on the pins with the corresponding labels.<\/p>\n\n\n\n<p class=\"rntbox rntclgreen\">To learn more about the Raspberry Pi Pico GPIOs, check out our guide (this is applicable for all versions of the Raspberry Pi Pico): <a href=\"https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-w-pinout-gpios\/\" title=\"\">Raspberry Pi Pico and Pico W Pinout Guide: GPIOs Explained<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"pico-2-programming\">How to Program the Raspberry Pi Pico 2 \/ Pico 2 W?<\/h2>\n\n\n\n<p>The Raspberry Pi Pico 2 (like the previous versions) can be programmed using C\/C++ programming language (using Arduino IDE) or MicroPython. Currently, MicroPython is the most popular way to program the Raspberry Pi Pico, and Thonny IDE is the recommended IDE to use with the Raspberry Pi Pico.<\/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=\"421\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-Board.jpg?resize=750%2C421&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Pico 2 W Board\" class=\"wp-image-169986\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-Board.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-Board.jpg?resize=300%2C168&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p>The Raspberry Pi Pico 2 comes with a micro USB port that can be used for both power and programming. To program the Raspberry Pi Pico, you just need to use a USB cable to connect the board to your computer. Most Raspberry Pi Pico kits include the proper USB cable.<\/p>\n\n\n\n<p>If you want to start programming the Raspberry Pi Pico using Arduino IDE instead, <strong>j<a href=\"https:\/\/randomnerdtutorials.com\/wp-admin\/post.php?post=169963&amp;action=edit#programming-rpi-pico-2-arduino-ide\" title=\"\">ump to the Arduino IDE section here<\/a><\/strong>.<\/p>\n\n\n\n<p>If you want to use MicroPython, continue reading.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"program-pico-2-micropython\">Programming Raspberry Pi Pico 2 with MicroPython<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-thumbnail\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/02\/micropython-logo.png?resize=150%2C150&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"micorpython logo\" class=\"wp-image-148797\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/02\/micropython-logo.png?resize=150%2C150&amp;quality=100&amp;strip=all&amp;ssl=1 150w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/02\/micropython-logo.png?w=250&amp;quality=100&amp;strip=all&amp;ssl=1 250w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/figure><\/div>\n\n\n<p>MicroPython is a Python 3 programming language re-implementation targeted for microcontrollers and embedded systems. MicroPython is very similar to regular Python. Apart from a few exceptions, the language features of Python are also available in MicroPython. The most significant difference between Python and MicroPython is that MicroPython was designed to work under constrained conditions.<\/p>\n\n\n\n<p>Because of that, MicroPython does not come with the entire pack of standard libraries. It only includes a small subset of the Python standard libraries, but it includes modules to easily control and interact with the GPIOs, use Wi-Fi, and other communication protocols.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"install-thonny-ide\">Installing Thonny IDE<\/h3>\n\n\n\n<p>Thonny IDE is the recommended software to program the Raspberry Pi Pico board using MicroPython, and that&#8217;s the one we&#8217;ll use in this tutorial.<\/p>\n\n\n\n<p class=\"rntbox rntclgreen\">Thonny IDE can also be used to program the ESP32 and ESP8266 using MicroPython firmware. Learn more here: <a href=\"https:\/\/randomnerdtutorials.com\/getting-started-thonny-micropython-python-ide-esp32-esp8266\/\" title=\"\">Getting Started with Thonny MicroPython (Python) IDE for ESP32 and ESP8266<\/a>.<\/p>\n\n\n\n<p>Go to this link <a href=\"https:\/\/thonny.org\/\" target=\"_blank\" rel=\"noopener\" title=\"\">https:\/\/thonny.org\/<\/a> and click on the right link to download the package for your operating system.<\/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=\"695\" height=\"625\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Download-Thonny-IDE.png?resize=695%2C625&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Download Thonny IDE\" class=\"wp-image-130867\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Download-Thonny-IDE.png?w=695&amp;quality=100&amp;strip=all&amp;ssl=1 695w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Download-Thonny-IDE.png?resize=300%2C270&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 695px) 100vw, 695px\" \/><\/figure><\/div>\n\n\n<p>Run the downloaded executable file and follow the installation procedure (use all the default settings).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Flashing MicroPython Firmware on Raspberry Pi Pico<\/h3>\n\n\n\n<p>Connect the Raspberry Pi Pico to your computer while holding the BOOTSEL button at the same time so that it goes into bootloader mode to flash the firmware.<\/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 Boot 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 class=\"rntbox rntclgray\">It will open a new window on your computer as a new USB device, you can ignore and close that window.<\/p>\n\n\n\n<p>Open Thonny IDE. <\/p>\n\n\n\n<p>Go to <strong>Tools <\/strong>&gt; <strong>Options<\/strong>. Select the <strong>Interpreter <\/strong>tab on the new window that opens.<\/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=\"723\" height=\"220\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Thonny-IDE-Options.png?resize=723%2C220&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Thonny IDE Tools Options\" class=\"wp-image-130905\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Thonny-IDE-Options.png?w=723&amp;quality=100&amp;strip=all&amp;ssl=1 723w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Thonny-IDE-Options.png?resize=300%2C91&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 723px) 100vw, 723px\" \/><\/figure><\/div>\n\n\n<p>Select MicroPython (Raspberry Pi Pico) for the interpreter, and the<strong> Try to detect port automatically<\/strong> for the Port. Then, click on Install or update MicroPython. <\/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=\"561\" height=\"528\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Raspberry-Pi-Pico-Interpreter-Thonny.png?resize=561%2C528&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Thonny IDE Select Interpreter\" class=\"wp-image-130891\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Raspberry-Pi-Pico-Interpreter-Thonny.png?w=561&amp;quality=100&amp;strip=all&amp;ssl=1 561w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Raspberry-Pi-Pico-Interpreter-Thonny.png?resize=300%2C282&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><\/figure><\/div>\n\n\n<p>The following window will open.<\/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=\"561\" height=\"558\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/install-pico2-thonny-ide.png?resize=561%2C558&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Install MicroPython Raspberry Pi Pico 2 Thonny IDE\" class=\"wp-image-169988\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/install-pico2-thonny-ide.png?w=561&amp;quality=100&amp;strip=all&amp;ssl=1 561w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/install-pico2-thonny-ide.png?resize=300%2C298&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/install-pico2-thonny-ide.png?resize=150%2C150&amp;quality=100&amp;strip=all&amp;ssl=1 150w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><\/figure><\/div>\n\n\n<p>Select the MicroPython variant accordingly to the board you&#8217;re using. In our case, we&#8217;re using the Pico 2 W. Select a different option if you&#8217;re using the Pico 2 (without W).<\/p>\n\n\n\n<p>Finally, click <strong>Install<\/strong>.<\/p>\n\n\n\n<p>After a few seconds, the installation should be completed.<\/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=\"467\" height=\"445\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/pico2-done-install.png?resize=467%2C445&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Installing MicroPython Raspberry Pi Pico 2 Thonny IDE\" class=\"wp-image-169989\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/pico2-done-install.png?w=467&amp;quality=100&amp;strip=all&amp;ssl=1 467w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/pico2-done-install.png?resize=300%2C286&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 467px) 100vw, 467px\" \/><\/figure><\/div>\n\n\n<p>You can close the window. You should get the following message on the Shell, and at the bottom right corner, it should have the Interpreter it&#8217;s using and 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=\"750\" height=\"599\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-pi-pico-2-installed-thonny-ide.png?resize=750%2C599&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"running executing MicroPython Raspberry Pi Pico 2 Thonny IDE\" class=\"wp-image-169990\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-pi-pico-2-installed-thonny-ide.png?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-installed-thonny-ide.png?resize=300%2C240&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p>If it doesn&#8217;t recognize the device, and you have a message saying &#8220;no backend&#8221; in the bottom-right corner, it may be the case that it is not detecting the COM port automatically. If that&#8217;s the case, go to <strong>Tools <\/strong>&gt; <strong>Options <\/strong>&gt; <strong>Interpreter <\/strong>and select the COM port manually. After that, it should recognize the MicroPython device, and you should get the previous message.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Testing the Installation<\/h3>\n\n\n\n<p>Type <span class=\"rnthl rntliteral\">help()<\/span> in the Shell and see if your device responds back.<\/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=\"599\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/thonny-ide-pico-2-help-command.png?resize=750%2C599&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Pico 2 Thonny IDE MicroPython help\" class=\"wp-image-169991\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/thonny-ide-pico-2-help-command.png?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/thonny-ide-pico-2-help-command.png?resize=300%2C240&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n<p>It should print some useful information about programming the Raspberry Pi Pico board using MicroPython.<\/p>\n\n\n\n<p>Type the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print('Hello')<\/code><\/pre>\n\n\n\n<p>It should print Hello on the Shell. <\/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=\"309\" height=\"69\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Pi-Pico-Testing-Hello-Shell-Thonny-IDE.png?resize=309%2C69&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Thonny IDE Testing Shell\" class=\"wp-image-130896\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Pi-Pico-Testing-Hello-Shell-Thonny-IDE.png?w=309&amp;quality=100&amp;strip=all&amp;ssl=1 309w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Pi-Pico-Testing-Hello-Shell-Thonny-IDE.png?resize=300%2C67&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 309px) 100vw, 309px\" \/><\/figure><\/div>\n\n\n<p>If you&#8217;ve followed until this step, you should have Thonny IDE successfully installed, as well as MicroPython firmware on your Raspberry Pi Pico board.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Running Your First Script<\/h2>\n\n\n\n<p>To get you familiar with the process of writing a file and executing code on the Raspberry Pi Pico 2 board, we\u2019ll upload a new script that simply blinks the on-board LED.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Blinking an LED Script<\/h3>\n\n\n\n<p>When you open Thonny IDE for the first time, the Editor shows an untitled file. Copy one of the following scripts to that file:<\/p>\n\n\n\n<pre class=\"wp-block-code language-python\"><code>from machine import Pin\nfrom time import sleep\nled = Pin('LED', Pin.OUT)\nwhile True:\n  led.value(not led.value())\n  sleep(0.5)<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Running the Script<\/h3>\n\n\n\n<p>To run that script on your board, simply click on the <strong>Run <\/strong>icon in Thonny IDE.<\/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=\"513\" height=\"84\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Thonny-Run-Current-File.png?resize=513%2C84&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Thonny IDE Run File\" class=\"wp-image-130898\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Thonny-Run-Current-File.png?w=513&amp;quality=100&amp;strip=all&amp;ssl=1 513w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Thonny-Run-Current-File.png?resize=300%2C49&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 513px) 100vw, 513px\" \/><\/figure><\/div>\n\n\n<p>The onboard LED will start blinking.<\/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>To stop the execution of the program you can hit the STOP button or simply press <strong>CTRL<\/strong>+<strong>C<\/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=\"29\" height=\"28\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Thonny-IDE-stop-button.png?resize=29%2C28&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Thonny IDE Stop button\" class=\"wp-image-130897\"\/><\/figure><\/div>\n\n\n<p><strong>Important note<\/strong>: just running the file with Thonny doesn&#8217;t copy it permanently to the board&#8217;s filesystem. This means that if you unplug it from your computer and apply power to the board, nothing will happen because it doesn&#8217;t have any Python file saved on its filesystem. The Thonny IDE <em>Run <\/em>function is useful to test the code, but if you want to upload it permanently to your board, you need to create and save a file to the board filesystem. See the next section.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Saving the Script to the Raspberry Pi Pico Board<\/h3>\n\n\n\n<p>Stop the execution of the previous program by clicking on the <strong>Stop <\/strong>button if you haven&#8217;t already.<\/p>\n\n\n\n<p>With the code copied to the file, click on the <strong>Save <\/strong>icon. Then, select <strong>Raspberry Pi Pico<\/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=\"214\" height=\"203\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2023\/05\/Save-file-to-Raspberry-Pi-Pico.png?resize=214%2C203&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Thonny IDE Save File to Raspberry Pi Pico\" class=\"wp-image-130899\"\/><\/figure><\/div>\n\n\n<p>Save the file with the following name: <span class=\"rnthl rntliteral\">main.py<\/span>.<\/p>\n\n\n\n<p><strong>Note<\/strong>: When you name a file <span class=\"rnthl rntliteral\">main.py<\/span>, the Raspberry Pi Pico will run that file automatically on boot. If you call it a different name, it will still be saved on the board filesystem, but it will not run automatically on boot.<\/p>\n\n\n\n<p>Finally, click <strong>OK <\/strong>to proceed.<\/p>\n\n\n\n<p>Now, you can remove and apply power again to the board, or you can even power it using a different power supply that is not your computer. You&#8217;ll notice that the board will automatically start blinking the LED when it starts.<\/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\/RPi-Pico-2-Blink-LED-ON.jpg?resize=750%2C422&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Raspberry Pi Pico W onboard LED on\" class=\"wp-image-169992\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-Blink-LED-ON.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/RPi-Pico-2-Blink-LED-ON.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<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\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>If you prefer to program the Raspberry Pi Pico 2 using Arduino IDE, follow this section.<\/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\" loading=\"lazy\" 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 in BOOTLOADER mode<\/h3>\n\n\n\n<p>For you to be able to upload code to the Raspberry Pi Pico, it needs to 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<p class=\"rntbox rntclgreen\">You may also like: <a href=\"https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-w-micropython-ebook\/\" title=\"\"><strong>Learn Raspberry Pi Pico with MicroPython eBook<\/strong><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Wrapping Up<\/h2>\n\n\n\n<p>The Raspberry Pi Pico 2 is the successor of the Raspberry Pi Pico (version 1). It has a better processor, it&#8217;s faster, has more memory and storage. At the same time, it is quite similar to the previous versions. It uses the same form factor, pinout, and the commands to program it are the same.<\/p>\n\n\n\n<p>We hope this guide has helped you getting started or upgrading to the Raspberry Pi Pico 2 boards.<\/p>\n\n\n\n<p>If you want to learn more about the Raspberry Pi Pico, check out our resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/randomnerdtutorials.com\/raspberry-pi-pico-w-micropython-ebook\/\"><strong>Learn Raspberry Pi Pico\/Pico W with MicroPython (eBook)<\/strong><\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/randomnerdtutorials.com\/projects-raspberry-pi-pico\/\">Free Raspberry Pi Pico projects and tutorials<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Raspberry Pi Pico 2 is the successor to the original Raspberry Pi Pico (Pico 1). It\u2019s a microcontroller developed by the Raspberry Pi Foundation, built around the RP2350 chip. &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Getting Started with Raspberry Pi Pico 2 and Pico 2 W\" class=\"read-more button\" href=\"https:\/\/randomnerdtutorials.com\/getting-started-raspberry-pi-pico-2-w\/#more-169963\" aria-label=\"Read more about Getting Started with Raspberry Pi Pico 2 and Pico 2 W\">CONTINUE READING \u00bb<\/a><\/p>\n","protected":false},"author":5,"featured_media":169974,"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],"tags":[],"class_list":["post-169963","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi-pico"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2025\/05\/Raspberry-Pi-Pico-2-Getting-Started.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\/169963","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=169963"}],"version-history":[{"count":12,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/169963\/revisions"}],"predecessor-version":[{"id":170194,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/169963\/revisions\/170194"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/169974"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=169963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=169963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=169963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}