Users Manual

SCRATCH CODING KIT
Now you are going to code how to operate using the values entered by the infrared and ultrasonic sensors of the
Tori autonomous vehicle. First, create a script about how the infrared sensor recognizes the situation. This will be
the script for the last moniotr_process in the previous script, right?
If the infrared sensor connected to the left side of the car detects an obstacle, the car must move back and go to
the right, opposite of the obstacle. Likewise, if an infrared sensor connected to the right side of the car detects an
obstacle, the car must move back and then to the left, which is the opposite direction of the obstacle. And, in each
situation, the variable that judges the obstacle must change to '1'. Create a script for infrared sensor recognition.
Activities
Use the IR sensor to judge after recognizing the situation