Cyber Robotics 101 Teacher's Guide
How can sensor input be used to write more flexible programs?
This lesson introduces the Touch sensor, which detects when the robot has collided with another object. Students first use Manual Control and the Heads Up Display to explore how the sensor collects and inputs data to the robot. They then use the ‘Wait Until’ block to control the program based on sensor information. Last, they extend their knowledge of Smart Blocks by editing and creating their own to use in multiple challenges, combining these different strategies to solve more complex problems.
Create and edit procedures (Smart Blocks) to be used across multiple programs
Change a program’s behavior based on sensor information
Use events to control the flow of a program
Create and edit procedures (Smart Blocks) to be used across multiple programs
In ‘Left Turns Can Be Smart Turns’, check that students have created and used a Smart Block to make a left turn.
Change a program’s behavior based on sensor information
Check either of the last two missions for successful completion.
Use events to control the flow of a program
Check either of the last two missions for successful completion.
Slideshow: Object Detection I
Wait Until support article
Touch sensor support article
The Wait Blocks video tutorial
Smart Blocks video tutorial
Describe a situation in which a ‘Wait Until’ block is more useful than a ‘Wait For’ block.
Student answers will vary, but they should demonstrate understanding that the ‘Wait Until’ block waits until a condition (such as a sensor reading) is true, while the ‘Wait For’ block waits for a specific amount of time.
Describe a situation in which a ‘Wait For’ block is more useful than a ‘Wait Until’ block.
Student answers will vary, but they should demonstrate understanding that the ‘Wait Until’ block waits until a condition (such as a sensor reading) is true, while the ‘Wait For’ block waits for a specific amount of time.
Now that you’ve made your own Smart Block, what’s the next Smart Block you plan to make, and why?
Student answers will vary. All answers should describe a snippet of code that is logically connected to a useful goal for navigation missions.
Description
Reflection on Navigation
Timing
5 minutes
Description
Let students complete Missions: 1-8
Pack: Object Detection I
Timing
25 minutes
Description
Class Conclusion Questions
Timing
5 minutes
Familiarize yourself with the above resources.
Allow students to complete the missions on their own time.
Q1. What is the input of the touch sensor?
A1. The input is contact with an object.
Q2. The touch sensor returns Boolean values, what does this mean?
A2. A Boolean value is true/false.
Q3. What block uses the touch sensor?
A3. Wait until Touch block.