← Capstone projects

Two-motor drive base

Design a small robot base that follows a line or avoids obstacles: two motors through a driver, a battery chosen against the brief, gearing and a chassis, tested on a course.

Every robot competition starts with the same question: can it drive where you want, for long enough, without falling apart?

Client: the STEM club, for a line-following or obstacle course. Context: a 2 m course on the floor.

Brief: complete the course in under 60 s, without leaving the line (or touching an obstacle) more than once, and run for 30 minutes on one battery. Two DC gear motors through a motor driver, a battery of 6 to 9 V weighing at most 150 g, a chassis that fits in 20 × 20 cm.

How this lesson works: Inquire, Develop, Create, Test, Evaluate
InquireRead the brief: who it is for, what it must do (criteria) and the limits (constraints).

Inquire: the brief

Sort each line of the brief: a criterion (what it must do, which you can test) or a constraint (a limit you must work within)?

Completes the course in under 60 s
Leaves the line at most once
Runs for 30 minutes on one battery
Two DC gear motors and a motor driver
Battery 6–9 V, at most 150 g
Chassis fits in 20 × 20 cm

DevelopPlan before you build: parts, circuit, code and the tests you will run.

Develop: two ideas first

Before you plan one design, look at two. Most design choices are a trade: one idea is better on one criterion and worse on another, and the brief tells you which matters more.

Make them really different, not the same idea with one part changed. A quick sketch of each in your book helps.

Two ideas for following the line. A: two line sensors, one each side of the line, correcting only when one of them sees it. B: one sensor that follows the edge of the line, turning back and forth. Which is more likely to meet the under-60 s criterion?

Now two ideas of your own. For each one, say which criterion in the brief it's strongest on and which it's weakest on. Then say which you'll build, and why.

DevelopPlan before you build: parts, circuit, code and the tests you will run.

Develop: plan before you build

Try it yourselfYour edits are saved in this browser.

The two motors and the board draw about 900 mA together. Choose a battery that meets the brief (30 minutes using 80%, 6–9 V, 150 g at most).

Use the board. This ticks when you get there.

The line drifts left under the robot. To steer back, the robot should…

CreateBuild it, first in the simulator, then for real if you have the kit. Expect a few tries; that is normal.

Create: build it

TestRun your tests and record what happened, including what failed.

Test: run your table

Before you run yours, read someone else's. Check each result against the brief, not against what looks close enough.

If everything passed first time, pick the test that came closest to failing and write about that instead.

Another team's robot ran the course in 52 s, 58 s and 64 s, left the line once in each run, and its battery lasted 35 minutes. Which criterion doesn't it meet?

Pick one test that failed. Write what happened, what caused it, what you changed, and what the test showed when you ran it again.

EvaluateJudge it against each criterion, and say what you would change.

Evaluate: Against the brief

Which is the strongest evidence that the design meets a criterion?

Now you can
Next lesson5. Automated sorterDesign a machine that sorts objects into two bins by what a sensor sees: a light sensor (or a trained model) decides, a servo flap acts, and accuracy is measured on a test set.
For teachers

A Years 9–10 design project: a two-motor drive base for a line or obstacle course, with a battery chosen against the brief, steering planned, built in a simulator then for real, and tested on a timed course. About 300 minutes.

Open the teacher guide: answers, solutions, slides and a worksheet.

Students will be able to

Before class

Needs Power and motors (drivers, shared ground, batteries); LiPos only after the LiPo safety sign-off and if your risk assessment allows. Pairs with Mechanisms (gearing), CAD (a printed chassis) and the robotics simulator. The micro:bit Cutebot (Code › Robotics challenges) is a ready-made alternative base for classes without kits.

If you assess with MYP Design, the steps line up with the criteria:

Running the lesson

  1. Develop: the battery choice must be justified against all three numbers.
  2. Create: drive straight first, then add one sensor.
  3. Test: three timed runs, results in a table.

The hard part (on purpose)

Mechanical problems (loose wheels, a dragging chassis) look like code problems. Test the base driving straight before adding sensors.

When students get stuck

Stretch and support

Stretch: Proportional steering: slow the inside wheel by an amount that depends on how far off the line it is.

Support: A driver wiring diagram and a two-sensor line-follower sketch to Modify.

Where it leads

Other Years 9–10 projects: Automated sorter, Lift.

What each step is for