← 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.

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: 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

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?

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

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.