7
3 | Touch sensors Created by H. Robinson & A. Gostelow TOUCH SENSORS

3 | Touch sensors Created by H. Robinson & A. Gostelow TOUCH SENSORS

Embed Size (px)

Citation preview

Page 1: 3 | Touch sensors Created by H. Robinson & A. Gostelow TOUCH SENSORS

3 | Touch sensors

Created by H. Robinson & A. Gostelow

TOUCH SENSORS

Page 2: 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

Page 3: 3 | Touch sensors Created by H. Robinson & A. Gostelow TOUCH SENSORS

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.

Page 4: 3 | Touch sensors Created by H. Robinson & A. Gostelow TOUCH SENSORS

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

Page 5: 3 | Touch sensors Created by H. Robinson & A. Gostelow TOUCH SENSORS

3 | Touch sensors

Created by H. Robinson & A. Gostelow

Page 6: 3 | Touch sensors Created by H. Robinson & A. Gostelow TOUCH SENSORS

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.

Page 7: 3 | Touch sensors Created by H. Robinson & A. Gostelow TOUCH SENSORS

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.