Robotics & Systems · Lesson 6 of 8
Code: if-then rules with NuiBot
Build it · Judge it
FORGE Generate · Evaluate
Today's goal
Write an if-then rule, predict what it will do, build it in NuiBot, explain it before running it, and check the result.
By the end
A safety-checked program, explained in your own words, run and compared with your prediction.
What we'll do (60 minutes)
- Recap the system: sensor, code, motor. Frame today's task as an if-then rule.8 min
- Predict: write what the rule should do, step by step, before generating any code.10 min
- Generate: build the rule from cards or blocks in NuiBot, and read the safety check.12 min
- Explain: say what each rule does in your own words, before the run button is used.8 min
- Get the program onto the brick, run it on the terrain course, and record the result against your prediction.17 min
- Note what you would change. A failed first run is the most useful evidence in the unit.5 min
Need a hand?
One given if-then rule rather than inventing your own, with the prediction sentence already started.
Want a challenge?
Write a rule that depends on two sensors, or add a second rule on top of the first.
Try this lesson
AI this lesson
NuiBot code helper: Turns the if-then rule you want the robot to follow, in your own words, into a short, labelled first-draft program. You: Read every line, test it, change it, and explain what it does before you run it. The robot's design is yours.
This lesson includes a Thinking check: a short task you do on your own, so you and your teacher can see how your thinking is growing. It is not marked.
Your response saves to your account when you are signed in, so you can look back and see how your thinking has grown.
0 of 1 answered
- 1
Task 1 · Thinking check 3
Lesson 6: Code: if-then rules with NuiBot. Do the Thinking check your teacher gives you on your own, then write your response here. It is not marked.