Challenges and tips
Throttle0 %
P
I
D
How to build your program
- 1. Pick a blockTap any block with a + in the “Pick a block” list. It goes into your program where the blue line says New blocks go here.
- 2. Change the white boxesTap a number like 60 and type a new one. Tap a choice like forward ▾ to pick another.
- 3. Move blocks aroundTap a block in your program. Buttons appear: Up, Down, Move, Copy and Delete.
- 4. Press RunWatch your robot. The block that’s working right now glows yellow.
Loops: blocks tucked inside a bracket, like repeat 4 times or repeat forever, run again and again. If … then … otherwise blocks choose what to do by checking a sensor.
This is your program in MicroPython, for a real robot car with an RP2040 board. Save it as main.py, next to robot.py. The robot car guide shows the wiring.