Setting up our Circuitpython toolchain

Step 1: Setting up the IDE

There are many IDEs that we can use to program CircuitPython robot, we can even just use a text editor.

However we'll be using one called "Mu Editor". So let's begin by downloading it.

Download

You can also get it from the Mu website, https://codewith.mu/en/

Step 2: Install Circuitpython on board

  1. Download the CircuitPython firmware UF2 file for the RP2040 Zero here.
  2. Connect your RP2040 Zero to your computer using a USB cable.
  3. Hold down the BOOT button, press and release the RST button.
  4. A new USB drive appears in your file explorer called RPI-RP2.
  5. Drag the downloaded CircuitPython firmware file into the RPI-RP2 drive.
  6. The firmware will install, and after a moment, the drive should be called CIRCUITPY.
  7. Open the drive and examine the different files in there. The "code.py" file is our main file, but we won't open it here.
  8. Open the MU Editor, and we can start coding!
Robot moving further