From Blocks to Python
Watch blocks turn into Python line by line, see indentation change what a program does, and decode real error messages. Then type Spark’s programs, including a square with a for loop, and debug four gadgets in Python.
- The Robot’s Brain: Slow a microcontroller’s forever loop right down, blink a pin into PWM, and drive a motor through an H-bridge driver. Then program Spark to park, spin and deliver, and debug four gadgets on a logic analyser.
- Variables and Functions for Robots: Step through programs and watch memory boxes and function calls change, see why named values beat magic numbers, write forward(cm) and polygon(), then calibrate Spark and keep its warehouse round working as the battery runs down.