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- About these notes
- A first period
- The fourteen levels
- What students get wrong, and where the app answers it
- What the app simplifies, on purpose
- The landing report students hand in
- Setting it up for a class
- Standards
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.
- 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.
- 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.
- 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.
- 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.
| Level | The goal | What it shows |
|---|---|---|
| 1. Engine off | Watch 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 late | Turn 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 off | Land at 3 m/s or slower. | Push when falling too fast: soft, but slow and hungry for fuel. |
| 4. As hard as you're off | Land 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 throttle | Touch 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 ground | Land 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 second | Hold 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 ground | Land 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 slow | Land 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 sideways | Land 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 spot | Land 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 pole | The 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 fuel | Land 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 landing | The 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 think | What happens | Where 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
- Until Level 10 the lander only goes straight up and down, and from Level 10 it moves east and west along one line.
- Its lean is turned by a steady controller, not by modeling each small thruster.
- The engine's efficiency is the same at every throttle, and it runs anywhere from 10% to 100%. The Apollo descent engine was never run between 65% and 92.5%, because that wore out its nozzle.
- A landing starts from a hover a few hundred meters up (or falling, in Level 14), not from orbit.
- The hazard map has slopes only. Real boulders are left out.
- Earth is drawn where it shows behind the lander. From the Apollo 11 site it really stands high in the western sky, about 65 degrees up.
- The ground's photo was taken with the sun low in the west. On the day Apollo 11 landed, the sun was low in the east.
- Past the measured ground the land toward the horizon is made up. At the south pole there is no photo: the picture is the terrain's own light and shadow, and the fine roughness up close is made up; the heights the lander lands on are measured.
- Nothing burns and nothing breaks loose: a hard landing folds the legs and that is all.
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
- CSTA 2-AP-12: design programs that combine control structures. A forever loop that reads the speed with a condition inside, from Level 3.
- CSTA 2-AP-13: decompose problems into parts. Hold the weight, fix the speed, shape the descent, move sideways, pick a spot.
- CSTA 2-AP-17: test and refine programs. Each run's card says what went wrong with the run's own numbers.
- CSTA 3A-AP-13: create prototypes that use algorithms to solve problems. A search over the slopes for the nearest safe spot (Level 11).
- CSTA 3B-AP-10: use and adapt classic algorithms. Proportional control and feedforward (Levels 4 and 5).
- NGSS MS-PS2-2: the change in an object's motion depends on the forces on it and its mass. Thrust against weight, and the same push on a lighter lander (Level 7).
- NGSS HS-PS2-1: Newton's second law. The lander's acceleration from the thrust, its mass and the Moon's gravity, on the descent strip.
- Math 7.RP and HSF-IF: rates, and a target speed that is a function of the height (Level 6).
- Math HSG-SRT.C: the cosine of the lean as the up part of the engine's push (Level 10).
- NGSS MS-ETS1-1 to 4, HS-ETS1-2 and HS-ETS1-4: a lander configured from fuel, mass and thrust, and a controller tested against criteria in a computer simulation.
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.