Knowledge Base

Touch Sensor


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:



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



See also:

Get Touch is Pressed Block

Wait Until Touch (EV3)


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


Please sign in to leave a comment.

Powered by Zendesk