Upload
harold-may
View
214
Download
1
Embed Size (px)
Citation preview
3 | Touch sensors
Created by H. Robinson & A. Gostelow
TOUCH SENSORS
3 | Touch sensors
Created by H. Robinson & A. Gostelow
Objectives•To see what a touch sensor does.•To build a simple program using a touch sensor•To extend programming skills
3 | Touch sensors
Created by H. Robinson & A. Gostelow
The touch sensor is a type of input sensor that causes a reaction when the robot hits an obstacle.
3 | Touch sensors
Created by H. Robinson & A. Gostelow
Use the touch sensor to make your robot stop at an obstacle.
Green light to begin program
Stop motor A
Motor A goes forward
Push in touch sensor
Red light to end program
3 | Touch sensors
Created by H. Robinson & A. Gostelow
3 | Touch sensors
Created by H. Robinson & A. Gostelow
Can you extend your program, remember the touch sensor is only on the front of the robot, think about using both motors and time symbols to achieve a more complicated program.
3 | Touch sensors
Created by H. Robinson & A. Gostelow
KEY POINTS•Touch sensor tells the robot when it hits an obstacle•Start and end your program with traffic lights•Use a stop sign to stop the motors •Make sure the symbols are linked correctly using the cotton reel symbol•Touch sensor defaults to input port 1•Test your program and improve it.