Moon Landing Lab teaching notes

For computer science, physics and math teachers, grades 6 to 12. Students write the autopilot that lands a robotic lander on the Moon, in Blocks or Python, from an engine that is simply off to a program that finds a flat spot at the south pole by itself.

Using this with a class? Make a free class and add your students yourself: each gets a username and password, with no email or Google account needed. Or give them one join code. Using Google Classroom? Post the link there; with a free class, the link also puts each student in your class, so you see their work. mytekDev is also available from the Google Workspace Marketplace, so your school's Google admin can install it for everyone.A first lesson: Open it on the projector at Level 1 and ask the class what will happen when the engine goes off 500 m up. Press play: the lander hits at about 40 m/s, and the legs take 3. Then Level 2: full thrust from 100 m. Ask the class to predict again. It still hits, at about 25 m/s, because at 100 m it was already falling too fast to stop in the room it had left.

Set up a free class Share to Google Classroom
Put this on your class site

Students can use Moon Landing Lab right on your page, with no account. What they make stays on that page; to keep their work, they make a free account.

Google Sites: Insert, then Embed, then By URL, and paste this address.

https://mytekdev.com/try/moonlandinglab?embed=1

Canvas, a blog, or any page that takes HTML: paste this code where you edit the page as HTML.

<iframe src="https://mytekdev.com/try/moonlandinglab?embed=1" width="100%" height="640" style="border:0" allow="fullscreen" title="Moon Landing Lab demo from mytekDev"></iframe>

About these notes

Moon Landing Lab is one lander over real ground. The Apollo 11 site is about 2 km of the Sea of Tranquility from the Lunar Reconnaissance Orbiter's camera, heights every 2 m and a photo with a pixel every half meter; the south pole is the ridge between Shackleton and de Gerlache craters from the Lunar Orbiter Laser Altimeter, heights every 5 m. NASA does not endorse the app; the credits are in its Help.

The lander is our own uncrewed design, sized from the Apollo Lunar Module's numbers: 7,400 kg empty with 1,500 kg of fuel, an engine of 45,040 newtons that runs from 10% to full, and legs that take a touchdown at 3.05 m/s down, within 6 degrees of upright, on ground sloping 12 degrees or less. A hard landing folds the legs and that is all: nothing burns and nobody rides in it.

The program reads the lander's height, speed, fuel and mass and sets the throttle, ten times a second in the Blocks' loop. A program's time is the lander's time, so the same program lands the same way on every computer, at any playback speed. Nothing a student writes is sent anywhere, except to save the project.

A first period

Levels 1 to 3 fit a 45 minute period. Each level's card says what to do, and after each run it says what happened and why, with the run's own numbers.

  1. Engine off (5 minutes) Open Level 1 on the projector and ask the class what happens when the engine goes off 500 m up. Press play: the lander falls for 24.8 seconds and hits at 40.2 m/s. The legs take 3.05. Ask where the 40 comes from: 1.62 m/s faster every second, for about 25 seconds.
  2. Too late (10 minutes) Level 2: full thrust from 100 m up. Ask the class to predict, then press Put these blocks in for me, and play. It still hits, at 25.14 m/s. The card gives the numbers: at 96 m it was already falling 36 m/s, and at full thrust it needed 189 m to stop. Let students change the 100 in the blocks: at 150 it still hits, at about 10 m/s; at 200 the engine stops the fall, then the rule, full thrust below 200 m and off above, throws the lander up and down, hundreds of meters each way, until the fuel runs out and it falls. A rule by height alone almost never lands softly. Level 3 pushes by the speed instead.
  3. On and off (15 minutes) Level 3: students build it in Blocks. In the forever block, if the speed is less than -2, throttle 100, else engine off. It lands softly but slowly. Point at the fuel the card reports: a slow descent from 500 m is the most expensive way down.
  4. Look back (10 minutes) Open File, Landing report for the Level 3 landing and read the touchdown against the legs' limits and the descent graphs together. Ask: what would land with less fuel? That is Levels 4 to 6.

The fourteen levels

All fourteen are open from the start. Levels 1 to 6 suit middle school in Blocks; Levels 7 to 14 suit high school, in Blocks or Python. A reading or a command a level needs opens with it: the hover throttle at Level 5, leaning at Level 10, the slopes at Level 11.

LevelThe goalWhat it shows
1. Engine offWatch the lander fall with the engine off.Gravity on the Moon: 1.62 m/s faster every second. It hits at 40.2 m/s.
2. Too lateTurn the engine to full when you are 100 m up.The stopping distance: from 100 m it still hits at 25.14 m/s.
3. On and offLand at 3 m/s or slower.Push when falling too fast: soft, but slow and hungry for fuel.
4. As hard as you're offLand at 3 m/s or slower, with the throttle set by how far off the speed is.Proportional control settles at the wrong speed: gain 5 hits at 8.22, gain 50 lands at 2.58.
5. The hover throttleTouch down at 2.0 m/s, within 0.1.The throttle that holds the weight plus the correction lands at exactly 2.00.
6. Slow near the groundLand using less than 400 kg of fuel.A target speed that shrinks with the height: 248 kg used, against 1,112 for a steady 2 m/s.
7. Lighter every secondHold the lander at 500 m, within 2 m, for 60 seconds.A fixed 32% drifts up after 24.7 seconds as the fuel burns; the hover throttle from the mass holds.
8. Aim below the groundLand within 150 seconds.Aimed at exactly 0 it is still 46 cm up at 2:30; aimed at -5 m it lands.
9. The engine is slowLand with an engine that takes a second to answer.A burn left to the last moment hits at 18.19 m/s; asking early for gentle changes lands.
10. Move sidewaysLand within 5 m of a target 80 m east.Leaning moves the lander; lean the other way to stop. Straight down lands 80 m short.
11. A safe spotLand on ground of 12 degrees or less, within 150 m of the start, over a crater.Straight down tips on 22 degrees; scanning lander.slope_at() finds a 3.9 degree spot 55 m west.
12. The south poleThe same, in the long shadows of the south pole.The camera cannot see the ground in shadow; the Level 11 program lands there unchanged.
13. On target, least fuelLand within 50 m of a target 300 m east; the less fuel, the better.Down and across at once: 1.4 m off on 421 kg.
14. Your landingThe student's own: the site, the height, how fast it is falling, the ground, a target and the hazard map.Set a problem the program cannot land yet, then make it land.

What students get wrong, and where the app answers it

Each of these comes up in class. The app answers it on the screen, so let the student find it there.

What students thinkWhat happensWhere they see it
On the Moon things float down slowly.Gravity is weaker, not absent, and with no air nothing slows the fall: 40 m/s from 500 m.Level 1.
Full thrust can stop anything in time.Stopping takes distance, and it grows with the square of the speed.Level 2, and the card's stopping distance.
Push harder the further off, and it will get there.To push at all the speed must stay off target, so it settles short of it.Level 4, on the descent strip.
Slow and steady is safest and cheapest.Every second in the air burns fuel against gravity: slow from high up is the most expensive.Levels 5 and 6, in the fuel each card reports.
The throttle that hovers stays the same.The lander gets lighter as fuel burns, so the same throttle lifts it.Level 7.
Aim for zero and you land at zero.The closer it gets the gentler it comes, so it never quite arrives.Level 8.
Leaning keeps the same lift.Only the cosine of the lean holds the lander up; the rest pushes it sideways.Level 10, in the height while it leans.
If you cannot see the ground you cannot land.The slope readings work in the dark, as a lander's laser does.Level 12.

What the app simplifies, on purpose

The landing report students hand in

File, Landing report lays out the last landing the way a mission team would: the touchdown against the legs' four limits (down, sideways, the lean, the ground's slope), each marked within or over; the lander and its numbers; a picture of the landing; graphs of the height and speed, and of speed against height with the legs' limit; the levels done; and the program. It prints on its own. Hand it in after Level 6, Level 9 or Level 13.

Setting it up for a class

Nothing to install: it runs in the browser, Chromebooks included. Students can try it without an account; saving needs one. Each project keeps the level, the program, the lander from the configurator, the best landing of each level and the student's own landing from Level 14.

Play runs in real time and can be slowed to a quarter or sped up to 16 times; a landing from 500 m takes a minute or two at real time. Each level starts at the speed you left it. Big screen in the View menu enlarges the view and its boxes for a projector.

Level 12 loads the south pole's ground the first time it opens, which takes a second or two. The configurator changes the lander for every level; the levels are written for the starter lander, and Back to the starter lander puts it back.

Standards

More help

Is something on this page wrong or not clear? Write to us.

Page last reviewed November 2026.
Google, Google Classroom and Chromebook are trademarks of Google LLC.