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?
4 out of 6 found this helpful

Comments

  • Avatar
    Paulina Garcia Munoz

    This was helpful for me.

    1
    Comment actions Permalink
  • Avatar
    Elijah Flores

    yes it was helpful

    0
    Comment actions Permalink

Please sign in to leave a comment.