This unit shows students how the shaft encoder can be used to make their robot drive perfectly straight by introducing the concept of an if statement and an if-else statement.
CLick here to download Teacher Notes for unit 7
This lessons explains the main components of an if statement and how it can be used to help your robot drive perfectly straight. Additionally, it shows how a variable can be used in programming to help reduce errors and simplify code.
Quiz on the unit