Users Manual

SCRATCH CODING KIT
Now let's set up the variables we need to do the coding once. You need a fairly large number of variables to code
autonomous vehicles. Find out what variables you need and learn what each one does. First, go to the Variables
tab and make the following variables!
Have you tried creating the variable shown above? Variable names have been given meaning by their respective
roles. If the names of the above variables are too difficult, you can change them to any name you like. However,
the role of the variable should not change.
We made the parameters for the infrared sensor, the ultrasonic sensor and the servo motor and the necessary
parameters to judge the obstacle. Now try coding the first values of these variables! Be sure to understand the
meaning of each variable and set the appropriate initial value!
Activities
Setting Tori Autonomous Vehicle Variables.
Standard values of the two front infrared sensors
Standard values of the two infrared sensors below.
Standard value of ultrasonic sensor
Advance angle value of servo motor
Servo motor left turn angle value
Servo motor right turn angle value
Confirmation value on the left side of the
ultrasonic sensor
Confirmation value on the right side of
the ultrasonic sensor
Obstacle judgment variable value