Programming Robot Behaviour
Use loops and if then choices in a robot program. This is lesson 11 of 11 in grade 7 Applied Design, Skills and Technologies in the BC curriculum.
What your child learns
- Use loops and if then choices in a robot program
- Combine sensors and movements to solve a task
- Compare robotics platforms used in schools
The big idea
Robot programs use three main ideas. A sequence runs steps in order. A loop repeats steps. A choice, or if then statement, picks an action based on a sensor. Combining them lets a robot follow lines, avoid walls or sort objects. Platforms like VEX IQ, LEGO Mindstorms and Cubelets use blocks or code to send programs to a robot.
In real life: A robot that follows a maze must check its sensors many times a second. Every turn it makes comes from a rule someone wrote.
Try it now
Programming Robot Behaviour practice
These come straight from the Twenny lesson. Try them with your child and talk about the answers.
Programming Robot Behaviour
Write a rule so a robot turns on a light when the room is dark.
Show a hint
Use a light sensor in an if then choice.
Show the answer
If the light level is low, turn the light on.
Programming Robot Behaviour
A robot must drive a square 5 times. How can you write this with loops?
Show a hint
Put one loop inside another.
Show the answer
Repeat 5 times: repeat 4 times, forward then turn 90 degrees.
Programming Robot Behaviour
What does a loop do in a robot program?
Key words
- loop
- A set of steps that repeats
- conditional
- An if then choice that picks an action based on a sensor
- sequence
- Steps that run in a set order
Learning that adapts
How Twenny helps with this topic
Every child is different. The daily plan changes with your child's answers.
- If your child gets a question wrong, they see why. Many hints speak to the exact mistake they made.
- If this topic gets shaky later, it comes back as a short review.
- If an earlier skill is weak, Twenny goes back to it before moving on.
- Once your child knows it well, it comes back less often. That leaves time for new lessons.
See all grade 7 Applied Design, Skills and Technologies topics
Questions from parents
When do kids learn programming robot behaviour in BC?
It is part of grade 7 Applied Design, Skills and Technologies. In Twenny it is lesson 11 of 11 for the year.
How long does this lesson take?
About 18 minutes, including a short quiz at the end. Your child passes the quiz before the next lesson opens.
Twenty minutes a day. A clear picture for you.
Twenny gives your child short daily lessons that follow the BC curriculum. The plan adapts to what they find easy and hard. You see what needs help. Try it free for 7 days.
Prefer the web? Start your free trial