Jump to main content

Build a Model Planetary Lander with Arduino

1
2
3
4
5
45 reviews

Abstract

Imagine that you need to make sure valuable cargo — like a robot or even human astronauts — can land safely on Mars. How would you do it? In this project, you will build your own model planetary lander using an Arduino. It will use a distance sensor and automatically deploy landing gear before impact. Can you avoid a crash landing?

Summary

Areas of Science
Difficulty
 
Method
Time Required
Average (6-10 days)
Prerequisites

Previous Arduino experience is recommended. See our How to Use an Arduino page for tutorials.

Material Availability

A kit is available from our partner Home Science Tools®. See the Materials section for details.

Cost
Average ($50 - $100)
Safety

No issues

Credits

This publication was supported by an agreement with Cornell University, under Prime Agreement MCS2107‑23‑01 from the Department of Defense, Office of Local Defense Community Cooperation. Any opinions, findings, and conclusions or recommendations expressed in this publication are those of the author(s) and do not necessarily reflect the views of Cornell University nor those of Sponsor.

Science Buddies is committed to creating content authored by scientists and educators. Learn more about our process and how we use AI.

Objective

Design and build a model planetary lander with deployable landing gear.

Introduction

Humans have built spacecraft that have landed on a variety of celestial bodies in our solar system, including moons, planets, and even asteroids. These spacecraft can carry human astronauts, autonomous robots, or scientific payloads like equipment that measures the local atmosphere. Engineers have employed a variety of methods to land these valuable payloads safely, including retrorockets (rockets that fire to slow a vehicle down instead of speed it up), parachutes, airbags, and even hovering sky cranes that gently lower the payload to the surface (Figure 1)!

Figure 1. Illustration of the Mars rover Perseverance being lowered to the Martian surface by a sky crane.

Most of these methods have something in common: they need to know the lander's altitude, or vertical distance from the ground. If you fire retrorockets too early or deploy a parachute too late, it may result in a crash landing that destroys the payload. Since other moons and planets do not have the same infrastructure we have here on Earth to pinpoint location - like cell towers and GPS satellites - the landers must rely on onboard electronic sensors to determine their altitude. Such sensors include radar and laser altimeters that send out a signal (an electromagnetic wave) down toward the surface and measure the amount of time it takes for the reflected signal to bounce back. If you know the speed at which the signal travels, you can then use this measured time to calculate the distance using the equation:

Equation 1:

In this project, you will use an ultrasonic distance sensor which operates using a similar principle. Instead of electromagnetic waves, it emits a short burst of ultrasonic sound (sound that is too high-pitched for humans to hear). The sensor measures how long it takes for the sound wave to reflect back, and by measuring this time, it can calculate the distance. This is the same method that animals like bats use to find objects (like insects) without seeing them - also called sonar or echolocation.

You will use an Arduino for this project to both taking readings from the ultrasonic distance sensor and control servo motors that deploy landing gear. Watch the following two videos if you need to learn how to use these components with your Arduino.

Terms and Concepts

Questions

Bibliography

Materials and Equipment Buy Kit

Recommended Project Supplies

Get the right supplies — selected and tested to work with this project.

View Kit

Note: this is an engineering design project, so the following materials list is just a suggestion. You can substitute or add other materials.

Disclaimer: Science Buddies participates in affiliate programs with Home Science Tools®, Amazon.com, Carolina Biological, and Jameco Electronics. Proceeds from the affiliate programs help support Science Buddies, a 501(c)(3) public charity, and keep our resources free for everyone. Our top priority is student learning. If you have any comments (positive or negative) related to purchases you've made for science projects from recommendations on our site, please let us know. Write to us at scibuddy@sciencebuddies.org.

Experimental Procedure

This project follows the Engineering Design Process. Confirm with your teacher if this is acceptable for your project, and review the steps before you begin.
Before you begin: Review How to Use an Arduino Tutorials 1-3.

In this procedure, you will first assemble your circuit and test your code. This makes it easier to identify and fix any problems with your circuit or code. After you have everything working, you will build your model lander, attach your Arduino and circuit, and conduct drop tests. 

Assemble Your Circuit

Assemble your circuit as shown in Figures 2 and 3.

  1. Connect the Arduino's 5V and GND pins to the breadboard's positive (+) and negative (-) buses respectively.
  2. Connect the ultrasonic sensor:
    1. VCC pin to 5V
    2. Trig pin to Arduino pin 7
    3. Echo pin to Arduino pin 8
    4. GND pin to ground
  3. Connect the four servo motors:
    1. Ground (brown) wires to ground
    2. Power (red) wires to 5V
    3. Signal (orange) wires to Arduino pins 2, 3, 4, and 5
  4. Press the servo horns onto the servo motors, but do not screw them in place yet. 
Figure 2. Breadboard diagram for circuit.
Figure 3. Circuit schematic.

Test Your Code

  1. Download our ultrasonic lander example code. You can also access a Tinkercad Circuits simulation here.
  2. Read through the commented code so you understand how it works.
  3. Pay close attention to the thresh, angle1, and angle2 variables. You may need to adjust these variables later depending on your lander design.
  4. Open the serial monitor in the Arduino IDE (Tools→Serial monitor). 
  5. Move your hand back and forth in front of the ultrasonic sensor.
    1. Watch the output in the serial monitor. If the output does not change when you move your hand, double-check that your ultrasonic sensor is wired correctly. 
    2. If the sensor has trouble detecting your hand, try using a large, flat object like a piece of cardboard instead.
    3. Do the servo motors move when you cross the threshold distance (100 cm in the example program)? If the servo motors do not move, double-check that none of your wires are loose. 

Build Your Lander

Now that you have your circuit and code working, it is time to build and test a lander. You need to protect your valuable payload (your Arduino and circuit) from damage. Here are some things to consider for your design:

  1. Your lander needs to hold and protect your Arduino, breadboard, and 9V battery.
  2. The ultrasonic sensor needs an unobstructed view of the ground.
  3. The servo motors should be positioned to deploy landing gear (such as popsicle sticks glued to the servo horns) without getting snagged on any of the wires or parachute strings.
  4. You should try to slow your lander down as much as possible while it is still in the air. Parachutes and streamers, which add air resistance, are a good way to accomplish this.
  5. Your lander should have features that absorb some of the force upon impact. If you try to make a very stiff, rigid lander, it may just break when it hits the ground (and in turn, damage your Arduino). It is better to build some flexibility or springiness into the design of your lander to help absorb the impact.
  6. Consider the aerodynamic stability of your lander. You do not want your lander to tip over while falling and land on its side or upside-down. 
  7. Remember that you can use an in-line barrel plug switch to turn your Arduino on and off instead of unplugging the battery, but this will add more weight.
  8. For many Arduino projects, you should not use a single 9V battery to power multiple motors since it will drain too quickly. However, since these motors only need to deploy once during landing, and you want to keep your lander as light as possible, it is OK to do so for this project. 
  9. Figures 4 and 5 show top and bottom views of a very basic lander design, but your design can be different. 
    1. The electronics are all mounted on a flat, square piece of cardboard.
    2. The cardboard has two holes cut in it for the downward-facing ultrasonic sensor.
    3. The servo motors are attached to the four corners of the piece of cardboard, with popsicle sticks glued to the servo horns to act as landing gear.
    4. The servo horns are attached to the motors such that the popsicle sticks point straight up when the servo angle is set to 0, and straight down when the angle is set to 180. Depending on how you mount your servos, you may need to change the angle1 and angle2 variables in the code. 
    5. A parachute made from a plastic bag is attached to the four corners of the lander with strings. 
Figure 4. Top view of the model planetary lander. 

Figure 5. Bottom view of the model planetary lander. 

Test Your Lander

  1. Comment out the Serial.begin and Serial.print lines in your code. These slow your program down, and you do not need them when your Arduino is no longer connected to your computer. You want your Arduino to react to changes in distance as quickly as possible. Re-upload the program to your Arduino. 
  2. Do not drop your lander yet! Test it by holding it (either by the frame or letting it dangle from the parachute) and moving it up and down with your hand. Make sure that the servo motors switch positions when you cross the threshold distance, and that nothing gets tangled in the wires or parachute lines. 
  3. Figure out a safe place to do some initial drop tests of your lander. You may want to drop it onto a pillow or other very soft surface to start. Start with a low drop height (although note that if you start out too low, your parachute might not have time to fully deploy).
    1. Note: the ultrasonic sensor may not work as well on soft, porous surfaces since they do not reflect sound as well as hard surfaces. If needed, try placing something flat and smooth (like a piece of paper or posterboard) on top of the soft surface (like a pillow or grass) to help it reflect sound better.
  4. If possible, have someone use the slow-motion video mode on a phone to record your lander as it falls. 
  5. Watch your lander fall, and if possible, review the slow-motion video. Based on your observations, think of possible ways to improve your design. Here are some suggestions:
    1. Do the legs fully deploy before the lander hits the ground? If not, how can you change the thresh variable to make the legs deploy earlier?
    2. Do the legs support the weight of the lander when it hits the ground? Do they slip out from under the lander, causing the servo motors to rotate backward? How could you potentially change the angle1 or angle2 variables to affect this result?
    3. How does the landing gear behave when it hits the ground? Can you modify the shape or materials used for the landing gear?
    4. What about the main body of your lander? Is it too flexible? Too rigid? How could you improve it?
    5. Is your lander going too fast when it hits the ground? How could you slow it down even more? What about a bigger parachute or multiple parachutes?
  6. Make improvements to your lander design and test it again. Continue to iterate and improve your design. Can you build a lander that reliably lands upright without breaking, tipping over, or crash-landing too hard?
icon scientific method

Ask an Expert

Do you have specific questions about your science project? Our team of volunteer scientists can help. Our Experts won't do the work for you, but they will make suggestions, offer guidance, and help you troubleshoot.

Global Goals

The United Nations Sustainable Development Goals (UNSDGs) are a blueprint to achieve a better and more sustainable future for all.

This project explores topics key to Industry, Innovation and Infrastructure: Build resilient infrastructure, promote sustainable industrialization and foster innovation.

Variations

  • Can you add other outputs to your lander like LEDs or buzzers?
  • Can you add motors with propellers to your lander to help actively slow it down as it descends? Note that unlike building a drone, the motors do not have to be powerful enough to lift the whole lander, just slow it down. However, motors that spin continuously may require a separate battery
  • Can you add an accelerometer to your lander to measure its orientation as it falls?

Careers

If you like this project, you might enjoy exploring these related careers:

Career Profile
Humans have always longed to fly and to make other things fly, both through the air and into outer space—aerospace engineers are the people that make those dreams come true. They design, build, and test vehicles like airplanes, helicopters, balloons, rockets, missiles, satellites, and spacecraft. Read more
Career Profile
Have you watched "The Transformers" cartoon series or seen the "Transformers" movies? Both shows are about how good and evil robots fight each other and the humans who get in the middle. Many TV shows and movies show robots and humans interacting with each other. While this is, at present, fantasy, in real life robots play a helpful role. Robots do jobs that can be dangerous for humans. For example, some robots defuse landmines in war-stricken countries; others work in harsh environments like… Read more
Career Profile
Mechanical engineers are part of your everyday life, designing the spoon you used to eat your breakfast, your breakfast's packaging, the flip-top cap on your toothpaste tube, the zipper on your jacket, the car, bike, or bus you took to school, the chair you sat in, the door handle you grasped and the hinges it opened on, and the ballpoint pen you used to take your test. Virtually every object that you see around you has passed through the hands of a mechanical engineer. Consequently, their… Read more
Career Profile
Just as a potter forms clay, or a steel worker molds molten steel, electrical and electronics engineers gather and shape electricity and use it to make products that transmit power or transmit information. Electrical and electronics engineers may specialize in one of the millions of products that make or use electricity, like cell phones, electric motors, microwaves, medical instruments, airline navigation system, or handheld games. Read more

Contact Us

Our kits are developed in partnership with Home Science Tools®. If you have purchased a kit for this project, Home Science Tools® is pleased to answer any questions.

In your email, please follow these instructions:
  1. Include your Home Science Tools® order number.
  2. Please describe how you need help as thoroughly as possible:

    Examples

    Good Question I'm trying to do Experimental Procedure step #5, "Scrape the insulation from the wire. . ." How do I know when I've scraped enough?
    Good Question I'm at Experimental Procedure step #7, "Move the magnet back and forth . . ." and the LED is not lighting up.
    Bad Question I don't understand the instructions. Help!
    Good Question I am purchasing my materials. Can I substitute a 1N34 diode for the 1N25 diode called for in the material list?
    Bad Question Can I use a different part?

Contact Support

News Feed on This Topic

 
, ,

Cite This Page

General citation information is provided here. Be sure to check the formatting, including capitalization, for the method you are using and update your citation, as needed.

MLA Style

Finio, Ben. "Build a Model Planetary Lander with Arduino." Science Buddies, 25 Feb. 2025, https://www.sciencebuddies.org/science-fair-projects/project-ideas/SpaceEx_p048/space-exploration/arduino-planetary-lander. Accessed 16 June 2025.

APA Style

Finio, B. (2025, February 25). Build a Model Planetary Lander with Arduino. Retrieved from https://www.sciencebuddies.org/science-fair-projects/project-ideas/SpaceEx_p048/space-exploration/arduino-planetary-lander


Last edit date: 2025-02-25
Top
We use cookies and those of third party providers to deliver the best possible web experience and to compile statistics.
By continuing and using the site, including the landing page, you agree to our Privacy Policy and Terms of Use.
OK, got it
Free science fair projects.