Cyber Robotics 101 Teacher's Guide
How can programmers control the accuracy of a robot’s movement in their programs?
This lesson introduces the gyroscope, a sensor that allows the robot to detect a change in direction. Using the Gyro sensor, students can now code turns based on the detected orientation of the robot, rather than calculating the exact time a turn should take. Students first explore the gyroscope using Manual Control and the Heads Up Display. They then use a Wait Until block to program turns using the gyroscope, noting that higher accuracy turns require a slower rotational speed. Students make decisions about waiting for an angle that is greater than a positive number, or less then a negative number, according to the turning direction. After practicing turns in different environments, they move on to more complex problems that require them to use the gyroscope in conjunction with the Touch sensor.
Explain the tradeoffs between speed and accuracy in robotics
Use a gyro sensor to make accurate turns
Use a Heads Up Display to debug programs that use robotic sensors
Explain the tradeoffs between speed and accuracy in robotics
In the first reflection question, students should note that when the robot moves faster, the accuracy of the turns decreases.
Use a gyro sensor to make accurate turns
Check for mission success on the ‘Gyro to Gyro’ or ‘Touch, Turn, Go’ missions.
Use a Heads Up Display to debug programs that use robotic sensors
In the second reflection question, make sure that students note that the Heads Up Display shows them the data that the sensors are collecting, and that the robot is using to make its decisions, which can give them insight into how the program is working under particular conditions.
Slideshow: Gyro Turns
Wait Until support article
The Wait Blocks video tutorial
Gyro sensor support article
Why is it important to turn slowly when using the gyroscope to measure angles?
Students should note the relationship between speed and accuracy in creating programs using the gyroscope, specifically that increasing the robot’s speed can decrease its accuracy.
What is one way you can use the Heads Up Display to help you debug your programs?
Student answers may vary, but all should include that observing the data that the gyroscope is collecting helps a programmer to understand how the robot is making decisions in particular circumstances.
What is one advantage of using a timed turn, and one advantage of using a gyro turn?
Student answers may vary, but one advantage of using a timed turn is that the robot can move faster, because the accuracy is not as affected by the speed. An advantage of using the gyro sensor is that the code is easier to write because the turns do not need to be calibrated.
Description
Reflection on Repeat Loop
Timing
5 minutes
Description
Let students complete missions: 1-7
Pack: Gyro Turns
Timing
30 minutes
Description
Class Conclusion Questions
Timing
5 minutes
Familiarize yourself with the above resources.
Allow students to complete the missions on their own time.
Do not insist on the students fully understanding the concepts of rotational speed, feel free to skip these slides if you feel your students are not ready for it.
Q1. Where is the gyroscopic sensor located on the robot?
A1. At the rear of the robot, at the top.
Q2. What does the gyro sensor detect?
A2. Degrees turned and turn rate (degrees per second).
Q3. If the robot turns right, will the gyro sensor count up or down?
A3. Down.