How to code a Potentiometer in Vex Coding Studio

I need help coding the Potentiometer for our Robot. We are doing an extending passive intake and we need an arm to put the cubes on the ground and to do that, we need to use a potentiometer. Can someone please explain to me how you code this?

Thanks

VEX discontinued VCS some time ago. Please download VEXcode instead:

3 Likes

Use the Vex API. It may not have the commands exactly for VexCode but it works exactly to VCS (last I checked). If you are using VCS, highly recommend you change to VexCode.
Vex API

When you download VEXCode v5 Text, you can go to ‘File’ > ‘Open Examples’. In the list of examples you’ll see the ‘Reading Angles’ example which will ‘Print the potentiometer values to the V5 Brain’s Screen’.

image

1 Like

If you choose to use VEXCode v5 Blocks, it has a similar example called “Reading Angles”:

image

2 Likes