Soda Straw Robot Simulator
Abstract
Robots come in many shapes and sizes. From the Mars Rovers to toy dinosaurs, robots are well-planned machines designed to suit their individual purposes. In this science project, you will test different robot designs with an online simulator made up of dots and lines, much like bendable soda straws. How will each robot design respond to changes in their conditions?Objective
In this science project, students will use an online simulator to test different robotic designs’ stabilities, functionalities, and design goals, given changes in their conditions.
Credits
Sara Agee, PhD, Science Buddies
Edited by Justin Spahn, Science Buddies
This science project is based on the Sodaconstructor application:
- Soda Creative, Ltd. (2007). Sodaconstructor. Retrieved August 19, 2010, from http://www.sodaplay.com/constructor
Share your story with Science Buddies!
Last edit date: 2013-02-16
Introduction
Robots make many contributions to today's world. There are the famous Mars Rovers (Sojourner, 1997, and Spirit and Opportunity, 2004), which collected samples and photographs on the planet Mars for scientists at NASA. There are underwater robots that help oceanographers explore deep-sea vents. Robotic machines are very important in modern manufacturing. And there are, of course, some very cool toy robots that talk, sing, and even dance.
![]() |
| The Mars Rovers have gone where no man has gone before! (NASA, 2003.) |
Each robot was designed for a purpose, to do a certain set of tasks. A robot has to be carefully planned with this purpose in mind by a mechanical engineer. The engineer will make sure that the robot is built such that its structure allows it to move in a way for it to complete its task. Then a software engineer will program the robot with the set of instructions it needs to perform the task.
Building a robot is a very labor-intensive process, so the engineers like to test out their designs as much as possible before they commit to building it. One way to test a design is to make a computer model. Some advanced computer models allow you to run a simulation so that you can "see" how the robot will behave in certain conditions before you even build it! The engineer can then incorporate the information from the simulation to improve the robot design.
In this science project, you will use an online "soda straw" construction simulator, called Sodaconstructor, to investigate different robotic designs. In the simulator, you can test different robot designs for stability, while changing the variables for friction, gravity, or spring stiffness. What will happen to the design? Will all the designs have the same dynamics and constraints?
Terms and Concepts
To do this science project, you should know what the following terms mean. Have an adult help you search the internet, or take you to your local library to find out more!
- Robot
- Mechanical engineer
- Software engineer
- Computer model
- Simulation
- Stability
- Variable
- Friction
- Gravity
- Spring stiffness
Questions
- How do robots move?
- How are robots designed?
- Are complex designs better than simple designs?
Bibliography
- Soda Creative, Ltd. (2007). Sodaconstructor. Retrieved August 19, 2010, from http://www.sodaplay.com/constructor
- Tesler, P. (n.d.). Universal Robots: The History and Workings of Robotics. Retrieved August 19, 2010, from http://www.thetech.org/exhibits/online/robotics/universal/index.html
At this site from NASA, you can read about the Mars Rovers and the exploration of Mars:
- NASA. (2007). Mars Exploration Rover Mission. Retrieved August 19, 2010, from http://marsrover.nasa.gov/home/
If you really like robotics, consider forming a team and competing in BotBall:
- Botball.org. (n.d.). Botball. Retrieved August 19, 2010, from http://www.botball.org/
Materials and Equipment
- Computer with internet access
- Lab notebook
- Pencil
Share your story with Science Buddies!
Experimental Procedure
- Go to sodaplay.com/creators/ed/items/daintywalker. If you need help with downloading, ask the owner of the computer or an adult for help. Be sure you have the computer owner's permission to download this program before you proceed. Visiting the link will take you to a web page with an example of a robot that can be simulated using Sodaconstructor. The Sodaconstructor site requires that you have Java installed on your computer, so click “Launch Daintywalker” and follow all directions until you have downloaded and installed the simulator, and see a new window with the daintywalker robot moving around. This is an example robot design. Each robot is made using dots, which represent connection joints, and lines, which act like springs.
- Experiment with the forces acting upon the design by changing the variables of the simulator. Keep careful notes of what you do and what happens in your lab notebook. What happens when you change the variables? Remember to only change one variable at a time! You can reset the robot at any time by closing the window, and clicking once again on “Launch Daintywalker.” Try changing the following variables of the model to test how the model responds to each variable (adapted from SODA, 2007):
- Gravity: Turn it up high and models will be squashed by their own weight. Turn it down low and the models will float. You can even turn gravity upside down, causing the robots to fall up!
- Friction: Friction slows moving masses (dots). Apply lots of friction (by moving the slider to “sticky”) and it's like moving in molasses. Apply low friction (by moving the slider to “slippy”) and things can move fast, but might wobble out of control.
- Spring stiffness: Weak springs (lines) make models floppy. Very stiff springs are strong, but can make the model too jittery. In the Daintywalker program, “loose” springiness corresponds to weak springs, and “tight” springiness corresponds to stiff springs.
- Analyze your results. Have you identified a variable that is important to the function of this design? What are the limits of this variable that allow the design to move and function? How much change, or flexibility, is there in the design?
- Change to another design file and test the variables in the same way.
- You can find other design files by returning to sodaplay.com/creators/ed/items/daintywalker and clicking the “Welcome” tab at the top of the web page (not the robot simulator window). Here you will find many beginner level creations to play with (as well as other simulations, which are in color. Stick to the ones dealing with only dots and lines for the purposes of this science project).
- You can also click the “Play” tab at the top of the web page to use robots created by other students who use the simulator.
- To open a design file, copy the URL of the design file you want to test, click “File” and then “Open” in the simulator window, and then paste the URL in the box next to “Name,” Alternatively, you can save the design file to the computer and open it from the computer.
- How does each design respond? How are each similar to or different from each other? Record your results in your lab notebook.
- After testing several designs, identify what makes some designs better robots. Which designs are most stable, despite changes in conditions? Which designs are the most flexible? Which designs are the most dynamic? Can you propose uses for each design based on your results?
- Finally, use the simulator to make your own creations!
- Make a new file by clicking “File” and then “New” in the simulator window.
- Click on the “Construct” button to get started making your creation.
- Make sure that you learn how to connect the dots and lines to make shapes and structures. If you do not want a part of your creation to be stationary, make sure that under “Options” the box next to “Fix new masses to the screen” is not checked.
- Click “Run” when you are ready to test your creation.
- Have fun playing with this at first. Then give yourself a design goal and try to make a robot that can achieve the goal. For example, try to build a robot that has a goal of maintaining its shape no matter what the gravity setting. Come up with your own ideas for robots to build, and then try to build them. Now you’re thinking like a robotics engineer!
Share your story with Science Buddies!
Variations
- In Sodaconstructor, you can also change the design of the model and see how the movement of the design changes. Just follow these steps:
- Click on the "stop" button at the top left so that the simulator stops moving.
- Change the design by clicking on any dot (mass) in the drawing and moving it around. This will also change the length of the adjacent segments.
- Add new points and segments by clicking elsewhere in the edit screen. Each click will generate one new mass with an adjoining segment.
- Continue doing this to identify regions that are very important for the design to function, and those that are not as important for the function of the design.
- You can make a mock-up of these designs using soda straws and flexible connectors. Cut drinking straws to length using scissors. To make your joint, push a small amount of clay into the end of the straw. Insert a small length of pipe cleaner into the clay and attach to the next piece to form a flexible joint.
Share your story with Science Buddies!
Ask an Expert
The Ask an Expert Forum is intended to be a place where students can go to find answers to science questions that they have been unable to find using other resources. If you have specific questions about your science fair project or science fair, 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.Ask an Expert
Related Links
If you like this project, you might enjoy exploring these related careers:

Robotics Engineer
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 the bottom of the ocean and on the planet Mars. At the heart of every robot is a robotics engineer who thinks about what a robot needs to do and works with several engineering disciplines to design and put together the perfect piece of equipment. Read more
Mechanical Engineer
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 skills are in demand to design millions of different products in almost every type of industry. Read more
Robotics Technician
Robots are no longer futuristic machines. Robots are here and now and are used in manufacturing, health care, service industries, and military applications. They perform tasks that are repetitive and hazardous—things that humans don't want to do or are unsafe to do. But robots are still machines, which means they require humans to build, maintain, program, and keep them functioning efficiently. Robotics technicians work with robotics engineers to build and test robots. They are responsible for installing and maintaining robots and keeping them in working order for their employers. If you are interested in working with robots, your future is here and now. Read more




