Set up Raspberry Pi Pico

By Lucy Hattersley. Posted

1. Drag and drop Pico

Raspberry Pi Pico is a miniature marvel, capable of running code and connecting to electronic devices via its GPIO (general-purpose input/output) pins. You program Pico by connecting it to a computer via USB, then transferring code files to it (or coding and debugging directly using an IDE - integrated development environment).

Scroll for steps two and three.

2. Switch to MicroPython

Raspberry Pi Pico is set up, by default, for use with the C/C++ Software Development Kit (SDK). The C/C++ SDK is an extremely flexible and powerful way to interact with your Raspberry Pi Pico. However, there’s a more beginner-friendly method: MicroPython.

Hold down the small button on your Raspberry Pi Pico marked ‘BOOTSEL’ and connect Pico to your computer using the USB cable. (We are using a Raspberry Pi). Wait a few seconds, then let go of the BOOTSEL button. You will see your computer mount a removable drive. Click OK in the ‘Removable medium is inserted’ window to open Raspberry Pi Pico’s on-board storage.

3. Install the UF2 firmware

Double-click the INDEX.HTM file shown in Pico’s mounted storage. Your browser will open and display the Raspberry Pi Documentation web page. Select ‘MicroPython’, then click the option to download the correct MicroPython firmware for your board (Pico or Pico W). It’s a small file, so it’ll only take a few seconds.

Open File Manager and locate the.uf2 file in the Downloads folder. Drag-and-drop the UF2 file to the Raspberry Pi Pico’s removable drive (named ‘RPI-RP2’). After a few seconds, the drive will disappear as the new MicroPython firmware is recognised and installed.

You'll need:

From The MagPi store

Subscribe

Subscribe to the newsletter

Get every issue delivered directly to your inbox and keep up to date with the latest news, offers, events, and more.