Lesson plan

Build a sumo robot lesson plan

A mini-sumo robot from the rules up: a legal start, edge sensors that always win, an ultrasonic eye, a state machine with real strategies, and the physics of grip and torque, ending in a tournament.

3 chapters, 6 lessons, about 5 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

The unit

Objectives and materials

By the end, students can

  • The real mini-sumo rules, a state machine that obeys them, and edge sensors that keep the robot in.
  • An ultrasonic eye with a charge distance and a filter, then three ways to search and an opening move.
  • Traction against torque in newtons, a tired pack, and a robot ready for a real tournament.

Materials for the whole unit

  • Arduino Uno R3
  • Battery: AA, coin cell, LiPo
  • Line sensor, TCRT5000 x 2
  • Motor driver, TB6612FNG
  • Pushbutton
  • Robot car chassis, 2WD
  • Ultrasonic ranger

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 1 h 40 min

Rules and the ring

The real mini-sumo rules, a state machine that obeys them, and edge sensors that keep the robot in.

LessonTimeWhat students do
The rules of mini-sumoTwo robots, one ring, push the other one out. The real mini-sumo rules in numbers, and the first rule a robot has to obey in code: hands off for five seconds.50 min
  1. Run it
  2. Press start
  3. Fight
  4. Make it legal
Edge sensorsA robot that drives out of the ring loses on its own. Two TCRT5000s on the front corners watch for the border, and the check for them beats everything else the robot wants to do.50 min
  1. Find the border
  2. Reverse, hard
  3. Turn away
  4. The border always wins

Materials

  • Arduino Uno R3
  • Battery: AA, coin cell, LiPo
  • Line sensor, TCRT5000 x 2
  • Motor driver, TB6612FNG
  • Pushbutton
  • Robot car chassis, 2WD
  • Ultrasonic ranger

Check for understanding

Each student finishes "Edge sensors" on their own, without opening the hints. The simulator checks 4 of its 4 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "The border always wins".

Chapter 2. About 1 h 50 min

Find and fight

An ultrasonic eye with a charge distance and a filter, then three ways to search and an opening move.

LessonTimeWhat students do
Opponent sensingAn HC-SR04 finds the other robot by the echo of a 40 kHz chirp. Time the pings, choose a charge distance that fits the ring, and stop a single missed echo from wrecking a charge.60 min
  1. Found it
  2. Fourteen pings a second
  3. Out of reach
  4. Lost it
  5. Hold the charge
StrategiesSpin, wait, or sweep: three ways to search, each with a weakness. Try them, add an opening move, and make one the robot’s default.50 min
  1. The turtle
  2. The arc
  3. An opening move
  4. Pick your default

Materials

  • Arduino Uno R3
  • Battery: AA, coin cell, LiPo
  • Line sensor, TCRT5000 x 2
  • Motor driver, TB6612FNG
  • Pushbutton
  • Robot car chassis, 2WD
  • Ultrasonic ranger

Check for understanding

Each student finishes "Strategies" on their own, without opening the hints. The simulator checks 4 of its 4 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Pick your default".

Chapter 3. About 1 h 40 min

Push and win

Traction against torque in newtons, a tired pack, and a robot ready for a real tournament.

LessonTimeWhat students do
Pushing powerSumo is won by force, and force comes from grip and torque. Measure the charge, work out which one runs out first, and see what bigger wheels and a tired pack do.50 min
  1. The charge
  2. Grip or torque
  3. Bigger wheels
  4. A tired pack
Project: a tournamentGet the robot ready for a real tournament: a charge distance for the 77 cm ring, a round timer, and a full rule-legal match, start to finish.50 min
  1. Check in
  2. Fit the ring
  3. A round timer
  4. Match day

Materials

  • Arduino Uno R3
  • Battery: AA, coin cell, LiPo
  • Line sensor, TCRT5000 x 2
  • Motor driver, TB6612FNG
  • Pushbutton
  • Robot car chassis, 2WD
  • Ultrasonic ranger

Check for understanding

Each student finishes "Project: a tournament" on their own, without opening the hints. The simulator checks 4 of its 4 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Match day".

Your class

Teach this unit as a class

Start a class from this course and its 6 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.