All paths

Mars rover

Drive by counting wheel slots, see hazards, do the science, then send your rover on a full mission.

Arduino Uno R3Free4 lessons4 h2 chapters1,538 XPMaker · Advanced+250 XP

0 of 4 done

Start the course freeDrive by countingBuild it as a kitRetails for about $59, free on Mokxi.Lesson plan for teachers
What you will build

2 projects, built step by step

4 lessons in 2 chapters, about 4 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

See the hazard

Range with a VL53L0X time-of-flight sensor, stop before a rock, turn the mast to look both ways and choose the clearer side.

Open it in the simulator
Chapter 2 project

The mission

Put it all together: dead reckoning to three waypoints, hazard avoidance on the way, a sample at each stop, and a report home.

Open it in the simulator
The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

Mobility

Know how far you have gone, and stop before the rock.

  1. Open212 XP

    Drive by counting

    Turn wheel-encoder slots into millimeters: drive half a meter without looking, then make a quarter turn from the difference between the wheels.

    0 of 4 steps

  2. ProjectLocked500 XP

    See the hazard

    Range with a VL53L0X time-of-flight sensor, stop before a rock, turn the mast to look both ways and choose the clearer side.

    0 of 5 steps

Chapter 2

Science and the mission

Measure the ground, log it, and drive the whole route alone.

  1. Locked250 XP

    Do some science

    Calibrate a soil probe and a light sensor the right way up, show them on an OLED, and log numbered samples like a real instrument.

    0 of 5 steps

  2. ProjectLocked576 XP

    The mission

    Put it all together: dead reckoning to three waypoints, hazard avoidance on the way, a sample at each stop, and a report home.

    0 of 6 steps

Syllabus

Every lesson in the course

All 4 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

Mobility

  1. Drive by countingTurn wheel-encoder slots into millimeters: drive half a meter without looking, then make a quarter turn from the difference between the wheels.
  2. See the hazardRange with a VL53L0X time-of-flight sensor, stop before a rock, turn the mast to look both ways and choose the clearer side.
Chapter 2

Science and the mission

  1. Do some scienceCalibrate a soil probe and a light sensor the right way up, show them on an OLED, and log numbered samples like a real instrument.
  2. The missionPut it all together: dead reckoning to three waypoints, hazard avoidance on the way, a sample at each stop, and a report home.
Keep going

The next course on your track

Mars rover is part of the robotics track, a ladder of courses from zero to expert.

Next course

Build a claw machine

Build a real arcade claw machine piece by piece, from one stepper motor to coins, a clock, a win sensor, lights and sound.

Open the next course
Track

Robotics track

Motors, servos, sensors and PID control loops, then a rover, a claw machine and a balance bot, every lesson checked on a simulated board.

See every course on the track
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

The kit for this course

Mars Rover Kit

An Uno, a motor driver module (L298N), a robot car chassis (2WD) and an OLED display (128x64): a rover that drives itself and does science on the way.

Open the kit
Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About Mars rover

Is Mars rover free?

Yes. All 4 lessons of Mars rover are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Mars rover take?

About 4 hours: 4 lessons in 2 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: See the hazard and The mission.

Where do I start?

With "Drive by counting", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.