Users Manual
CLASS 4
112
Now, let's try to code a real self-driving car. Your Tori autonomous vehicle is a car robot that uses four infrared
sensors and one ultrasonic sensor. Once you are aware of the situation with each input sensor, you can then use
the differential gear to move the vehicle to an unobstructed location.
The Tori autonomous vehicle uses two infrared sensors to detect the floor. These infrared sensors are used to
make sure the car does not fall off by checking whether the floor is up or down.
Two other infrared sensors are installed in front of the car. These two infrared sensors are used to detect obstacles
and determine the location of obstacles.
And, using an ultrasonic sensor, it can detect obstacles and judge their position. Ultrasonic sensors allow it to
more precisely locate obstacles.
We'll learn about the role each sensor plays and learn how to code it. Take advantage of the concepts you've
learned so far.
First, Let’s learn about the variables we need to code Tori autonomous vehicle.
Location with IR sensor Location with ULTRASONIC sensor
Coding Tori Autonomous Vehicle
Activities