Potentiometer Sensing#

To make Potentiometer Sensor blocks appear in VEXcode V5, a 3-Wire Potentiometer Sensor must be configured in the Devices window.

For more information, refer to these articles:

Potentiometer Angle#

The Potentiometer Angle block is used to report the angular position of the Potentiometer.

  ([Potentiometer3A v] angle in [% v])

Choose which Potentiometer to use.

Image of a potentiometer angle device used for sensing angular position in robotics applications.

Choose which unit to report in: percent (%) or degrees.

Potentiometer angle measurement display showing angular position in degrees or percent for V5 Brain.

In this example, the Potentiometer will print its current angular position to the Brain’s Screen.

  when started :: hat events
  print ([Potentiometer3A v] angle in[degrees v]) on [Brain v] ◀ and set cursor to next row