Robot Soccer Lab lesson plans

Each one is a class period with everything to run it: a teacher plan, a student worksheet, an exit ticket with answers, and the standards it meets. Students need no account, and a free class saves their work.

Free

Robot Soccer Lab: Get Behind the Ball, Why Driving Straight at It Fails

Grades 6-8 · 45 minutes · Computer science

Level 1 of Robot Soccer Lab starts with a program that sounds right: turn until the ball is straight ahead, then drive at it. The robot does exactly that, from the ball's wrong side, and pushes it into its own goal. Students find out why, then put in card one: when the ball is not in front, move round it, aiming 60 degrees past it. The robot comes up behind the ball and scores in the blue goal. They test other offsets and see which ones work. Level 2 asks for three touches without turning, which omni wheels allow, and Level 3 asks for a goal while facing the goal, which needs the compass and a buffer so the robot does not twitch.

Free

Robot Soccer Lab: Get Behind It and Stay In Bounds, Procedures with Parameters

Grades 6-8 · 45 minutes · Computer science

Level 4 of Robot Soccer Lab wants three goals from three spots with no own goals. The starter program is card one from Level 1, written in Python as a procedure, go_round(offset), called as go_round(60). It swings wide and runs into the wall. Students change two lines so the offset grows with the ball's angle, never more than the parameter, and the robot scores all three. Then they test the parameter: 30, 45, 60, 90 and 120. Level 5 puts the balls just over the white line. A second procedure, chase(speed), drives straight at them and out of bounds, until students add the line sensors: when the robot sees white, it backs away the way it came.

Free

Robot Soccer Lab: Read the Ring, Adding Sensor Readings as Vectors

Grades 9-12 · 45 minutes · Math

A soccer robot finds the ball with a ring of 16 infrared receivers, one every 22.5 degrees. Each receiver gives a reading, bigger the more directly it faces the ball. In Level 7 of Robot Soccer Lab students treat each reading as a vector: its length the reading, its direction the receiver's. The brightest receiver alone says the ball is at 45 degrees; added up component-wise, all the readings point at about 51 degrees, which is where the ball is. The magnitude of the sum is not the sum of the magnitudes, and students see by how much. Then they use the strongest reading, which grows as the ball gets closer, to stop 5 to 20 cm from three balls, and find which thresholds work.

Free

Robot Soccer Lab: Head-On, Momentum Before and After a Collision

Grades 9-12 · 45 minutes · Physical science

Level 12 of Robot Soccer Lab is a straight-line collision test. The robot drives straight into a resting ball three times: two speeds with the golf-size ball, then the big ball. For each hit a table gives the robot's speed before and after, the ball's speed after, and the momentum, mass times velocity, before and after. Students change the program to run two speeds, then calculate the momentum themselves from the masses and speeds, and show it is the same before and after every hit. The big ball, about three times as heavy, slows the robot about three times as much. Then they predict a new collision before running it.