Knowledge Base

Touch Sensor

mceclip3.pngmceclip0.png

A touch sensor is a simple push button that can either be pressed or released. The sensor's values are represented by true/false readings in the HUD: pressed = true; released = false.

This sensor (or sensors) is usually placed on the robot's front, and can be used to determine when to stop driving. For example, once the robot hits a wall or some other object.

 

 output-onlinepngtools__231_.png  Here is EV3 Robot's touch sensor in action:

 EV3_touch_sensor.gif

 

output-onlinepngtools__10_.png And here is Ruby Robot's: 

Ruby_touch_sensor.gif

 

See also:

Get Touch is Pressed Block

Wait Until Touch (EV3)

 

Was this article helpful?
1 out of 1 found this helpful

Comments

Please sign in to leave a comment.

Powered by Zendesk