Setting up our MicroPython toolchain

Step 1: Setting up the IDE

There are many IDEs that we can use to program MicroPython robot, we'll be using one called "Thonny". So let's begin by downloading it.

Download

You can also get it from the Thonny website, https://thonny.org/

Step 2: Install MicroPython firmware on board

  1. In Thonny, click on the Run->Configure Interpreter buttons at the top of the window.
  2. Choose "MicroPython (Raspberry Pi Pico) from the first dropdown menu.
  3. Click the "Install or update MicroPython" button down the bottom-right of the window.
  4. You need to put your device in FLASH mode, hold down the BOOT button, press and release the RESET button.
  5. You should now find a drive called "RPI-RP2". in the Target volume dropdown, shoose it.
  6. Choose the variant "Raspberry Pi Pico - Pico / Pico H"
  7. Press Install button to install the firmware.
  8. Reset the device again with the RESET button.
  9. Press the cancel button to close the firmware update panel, then press OK to officially begin coding.
Robot moving further
Robot moving further