Beginner · Pico
Pico line-following buggy
A buggy that follows a dark line and stops before it hits things, programmed in MicroPython.
Parts
-
$91.40
In stock
-
$12.95
In stock
-
USB cable (optional)
Pico USB Patterned Fabric Cable - A/MicroB 1m$4.35
In stock
You'll also need
- 4× AA batteries for the buggy (we don't sell them)
- A Windows, Mac, Linux or Raspberry Pi computer to program the Pico
Build total $108.70
How it connects
- Raspberry Pi Pico H plugs into the buggy's Pico socket
- The buggy board drives its two wheels and reads its sensors
- 4× AA batteries power the buggy board
- Your computer USB cable for programming the Pico
First run: 5 steps Hide the first-run steps
-
Put MicroPython on the Pico
Install Thonny on your computer. Hold the Pico's BOOTSEL button while you plug in the USB cable, then in Thonny choose the MicroPython (Raspberry Pi Pico) interpreter and install MicroPython when it offers.
It worked if: Thonny's shell shows a MicroPython prompt (>>>).
-
Fit the Pico to the buggy
Unplug the USB cable, then push the Pico into the buggy's socket the way round the instruction booklet shows. Fit the 4 AA batteries.
It worked if: The Pico sits fully down in the socket, with no pins left over.
-
Add Kitronik's buggy library
Copy Kitronik's MicroPython library for the Autonomous Robotics Platform, named in the instruction booklet, onto the Pico from Thonny.
It worked if: The library file shows in Thonny's Pico file list.
-
Test the motors
With the buggy lifted off the desk, run a short program that drives both motors forward for one second, then stops them.
It worked if: Both wheels turn the same way, then stop.
-
Follow a line
Put the buggy on a dark line on a light surface and run the booklet's line-following example.
It worked if: The buggy steers to keep the line between its sensors.