XRP
  • Experiential Robotics Platform (XRP)
    • Building the XRP Robo
    • Programming Raspberry Pi Pico W
    • Programming with XRPCode IDE
    • Programming with wpilib
      • Hardware
      • Imaging and Setup
      • Creating an XRP Program
    • Programming with ROS
  • Hardware Components
    • Different Types of Motors
      • Brushed DC Motors
      • Brushless Motor
      • Stepper Motor
      • Servo Motors
    • Key Characteristics of DC Motors
    • Encoders
  • Motor Control Theory
    • What use in FRC
    • PID control (Proportional-Integral-Derivative control)
    • Field Oriented Control (FOV)
  • Use XRP to practice
    • Plotting Fix
    • Reading from the Encoder
    • Measure position
    • Control the motor
    • Tuning PID
  • Use XRP with Micropython
    • Setup Envirrment
    • Use the Shell
    • XRP library
  • Connect with Wifi
Powered by GitBook
On this page
  • How to factory reset Raspberry Pi Pico W (not needed for Arduino)
  • Setting Up the XRP Bot Firmware for MicroPython
  • Setting Up the XRP Robot for WPILib Usage
  1. Experiential Robotics Platform (XRP)

Programming Raspberry Pi Pico W

PreviousBuilding the XRP RoboNextProgramming with XRPCode IDE

Last updated 7 months ago

How to factory reset Raspberry Pi Pico W (not needed for Arduino)

Download the flash_nuke.uf2 file to your computer from this link .

Press the BOOTSEL button on Pico and while keeping it pressed, connect it to your computer via a USB cable. The Pico should now appear as a mass storage device on your computer with the label RPI-RP2. Copy and paste the flash_nuke.uf2 file into this new drive. Your Pico/Pico W will now restart and all the files in its Flash memory will be erased.

Setting Up the XRP Bot Firmware for MicroPython

  1. Download MicroPython for Raspberry Pi Pico:

    Go to the MicroPython download page for Raspberry Pi Pico: and download the latest version UF2 file.

  2. Load MicroPython onto Pico:

    • Press and hold the BOOTSEL button on the Pico.

    • Connect the Pico to your computer using a USB cable.

    • Release the BOOTSEL button; the Pico should appear as a drive named RPI-RP2.

    • Drag and drop the MicroPython UF2 file ( ) onto the RPI-RP2 drive. The Pico will reboot with MicroPython.

Setting Up the XRP Robot for WPILib Usage

  1. Install WPILib:

    • Download and install WPILib from the .

    • Follow the platform-specific instructions for Windows, macOS, or Linux.

  2. Download the firmware

    • Download the firmware from and use the same method as before to load it onto the Pico

https://datasheets.raspberrypi.com/soft/flash_nuke.uf2
MicroPython for Pico
XRP Bot MicroPython
WPILib Installation Guide
https://github.com/wpilibsuite/xrp-wpilib-firmware/releases/tag/v1.1.0