1.2 Pico Setup – Installing MicroPython Firmware
Before we design PCBs, we need to prepare the brain of our projects: the Raspberry Pi Pico.
🎯 Lesson Goal
In this lesson, you will:
- Understand what MicroPython is
- Prepare a Raspberry Pi Pico for development
- Install MicroPython firmware
- Verify that your Pico is working correctly
By the end of this lesson, your Pico will be ready to run code and later be used on custom PCBs.
🧠 What Is MicroPython?
MicroPython is a lightweight version of Python designed to run on microcontrollers.
It allows you to:
- Write readable, high-level code
- Rapidly prototype ideas
- Control hardware like LEDs, buttons, and sensors
For this course, MicroPython is used for all projects because it is:
- Beginner-friendly
- Powerful enough for real hardware
- Widely supported on the Raspberry Pi Pico
🔌 What You Need
Before starting, make sure you have:
- Raspberry Pi Pico (or Pico W)
- USB cable (USB-A to Micro-USB)
- A computer (Windows, macOS, or Linux)
- Internet access (for downloading firmware)
No soldering is required for this step.
📥 Downloading the MicroPython Firmware
- Go to the official Raspberry Pi MicroPython download page.
- Download the MicroPython
.uf2file for:- Raspberry Pi Pico or
- Raspberry Pi Pico W (if using Wi-Fi later)
⚠️ Always make sure the firmware matches your board.
🚀 Installing MicroPython on the Pico
Follow these steps carefully:
Step 1: Enter BOOTSEL Mode
- Unplug the Pico from your computer
- Hold down the BOOTSEL button on the Pico
- While holding the button, plug the Pico into your computer
- Release the button
The Pico should now appear as a USB storage device called RPI-RP2.
Step 2: Flash the Firmware
- Open the
RPI-RP2drive - Drag and drop the downloaded
.uf2file onto it - Wait a few seconds
The Pico will:
- Automatically reboot
- Disconnect as a USB drive
This means MicroPython is now installed.
🧪 Verifying the Installation
To confirm everything works:
- Open your code editor (such as Thonny)
- Select:
- Interpreter: MicroPython (Raspberry Pi Pico)
- Connect to the Pico
In the Python console, type:
print("Hello NerdCave")