First LEGO League Bioglow
Week 5 Resources
What Are We Doing Today?
Today we are going to learn how to plan a robot mission using pseudocode, troubleshoot the Guided Mission, and learn some important things about plants.
By the end of the lesson, you should be able to explain what pseudocode is, use it to plan a robot mission, and identify some important characteristics of plants.
What Is Pseudocode?
Pseudocode is using regular language to describe what we want our robot to do.
Before we start programming, we can use pseudocode to make a roadmap for our robot.
Example
Instead of immediately writing code, we might write:
Start in the red home area.
Drive toward the middle of the map.
Wait until the color sensor sees the black line.
Turn slightly to the left.
Drive toward Mission 11.
Raise the arm.
Knock down the seed.
Turn around.
Return to the blue home area.
Your Challenge
Watch the Guided Mission video and write down every movement your robot will need to make.
Pay attention to:
Where the robot starts
Which direction the robot is facing
When the robot moves forward
When the robot turns
When the robot uses a sensor
When the robot uses an attachment
Remember: Your pseudocode is your roadmap.
2. Guided Mission
Mission 11: Window to the Past
In this mission, your robot travels across the map to the Window to the Past mission model.
Your goal is to use the Guided Mission as a starting point and figure out how to make the robot successfully complete the mission.
Build and Set Up
Before you begin:
Build the correct driving base.
Add the color sensor.
Build the mission model.
Attach the mission model securely to the table.
Connect your robot's hub.
Start your robot from the same position each time.
Troubleshooting
The Guided Mission code may not work perfectly the first time.
As you test your robot, look for problems.
Ask yourself:
Did my robot start turning too early?
You may need to add a wait before the robot looks for the black line.
Did my robot turn too far?
Adjust the amount that your robot turns.
Did my robot run into the mission model?
Check how far your robot drives after making its turn.
Does the arm move?
You may need to add code that tells the arm to move up and down.
Does my robot complete the mission consistently?
Make sure you start the robot from the same position every time.
Think Like an Engineer
Your first program does not have to be perfect.
Keep improving your robot until you get a more consistent result.
3. Plants
Mission 11, Window to the Past, connects to the topic of plants.
Here are some important things to know about plants:
Plants Are Made of Cells
Plant cells have some specific features that animal cells do not have.
Plants Make Their Own Food
Plants make their own food through a process called photosynthesis.
Plants Grow
Plant growth depends on both genetics and the environment.
Plants Reproduce
Plants reproduce in specialized ways.
Plants Are Part of Ecosystems
Plants are part of ecosystems. Matter and energy move through ecosystems.
Plant Populations Change
Different traits can help plants survive better. Traits that help plants survive can be passed on to future generations.