Skip to content

Ultrasonic Bot

Ultrasonic Robot on the MicroPython for Kids Site

Uploading the Code

The source code for this kit, plus a shared config.py, lives in src/kits/ultrasonic-bot/. To copy the whole kit onto the Pico in one step, run upload-code.sh from a terminal:

1
./upload-code.sh

Any single script can also be run directly from Thonny, or headlessly with:

1
mpremote connect /dev/cu.usbmodem101 run test-drive-all.py

(Your port name may differ — check what shows up when you plug in the Pico.)