Robot Builder
How a robot is put together and powered, and the move from command blocks to short Python programs, ending with an obstacle-avoiding robot. 10 lessons to work through.
- Chassis and Wheels: Build Spark’s body: how far one wheel turn goes, how wheel spacing sets the turn, and where the battery goes so a Mars yard rover never tips.
- Motors and How They Turn: Inside a motor, a test bench that stalls, an H-bridge and PWM: set Spark’s motor power, trim a weak motor, and diagnose four broken robots.
- Gears: Speed or Strength: Mesh gear pairs, lift heavier buckets, look inside the yellow gearbox and ride a bike up a hill, then choose Spark’s gears and design four real machines’ gearboxes.
- A First Circuit: Wire a bulb, a motor and an LED with live current: volts and flat batteries, series or parallel, short circuits and resistors. Then wire Spark and fix four broken gadgets.
- 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.
- 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.
- 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.
- Distance Sensors: Watch an ultrasonic echo become a distance, scan a playroom with sonar and laser, print readings to a serial monitor, then make Spark stop at any wall, beep like a parking sensor, find the way out of a room and follow a person.
- Servos and Grippers: Watch a servo’s feedback hold its angle against a push, find the right squeeze for a block, a ball and a raw egg, learn why servos need time, then program Spark’s arm and claw to fetch toys and tidy the playroom.
- Project: The Obstacle Avoider: Put it all together: run the sense–think–act loop, test how late a fast robot stops, find what sonar misses and add a bumper, teach Spark to look both ways, then pass the final test in two rooms of a house.