LogoLogo
  • Welcome!
  • Mission Statement
  • Contributing Guidelines
    • Embed CADs in Wiki Articles
  • VEX Worlds Livestream Archive
    • VEX U
    • V5RC High School
    • V5RC Middle School
    • VIQRC Middle School
    • VIQRC Elementary School
    • JROTC
  • ⚙️Hardware
    • Design Fundamentals
      • Gear Ratios
      • Internal Forces (Stress)
      • Torque
      • RPM
      • Center of Mass
    • Introduction to VEX Parts
      • Structure
        • C-Channels and Angles
        • Fasteners
        • Retainers
        • Gussets and Brackets
        • Bearings
        • Plate Metal and Flat Bars
      • Motion
        • High Strength Components
        • Gears and Sprockets
        • Traction Wheels
        • Mecanum Wheels
        • Omnidirectional Wheels
        • Flex Wheels
    • Robot Decorations
      • Part Dyeing
      • Metal Coloring
      • License Plate Holders
    • Lifts
      • Double Reverse Four Bar (DR4B or RD4B)
      • Four Bar
      • Scissor Lift
      • Six Bar
      • Other Lifts
      • Best Practices
    • Shooting Mechanisms
      • Catapult
      • Flywheel
      • Linear Puncher
    • Drivetrains
      • Tank Drive
      • Mecanum Drive
      • Holonomic Drive
      • Designing a Drivetrain
      • Best Practices
    • Pivots & Joints
    • Pneumatics
      • Best Practices - Pneumatics
    • Intakes
    • Flip Out Mechanisms
    • Defensive Mechanisms
    • Misc. Building Techniques
    • VexU
      • Common Manufacturing Techniques
        • 3D Printing
        • Laser Cutting
      • Custom Manufactured Parts Library
      • Commercial Off The Shelf Parts Library
  • 👑Team Administration
    • New Team Resources
      • Creating The Team
      • Gaining Interest for Robotics Teams
      • Attending Competitions
        • Elimination Bracket
    • Team Dynamics
      • Organization Structure and Longevity
      • Member Allocation and Management
      • How *Not* To Run a Team
    • Team Finances
      • One-Year Team Financial Breakdown
      • Funding Your Teams
    • Hosting Competitions
      • Live Streaming
      • Tournament Manager
        • Competition Electronics
        • Creating a Tournament
        • Tools
          • Field Set Control
          • Connecting Mobile Devices
          • Connecting Raspberry Pis
        • Match Control
          • Inputting Match Scores
          • Inputting Skills Scores
          • Inputting Scores on TM Mobile
        • Displays
        • Alliance Selection
      • Additional Event Partner Resources
    • VexU Organization Management
      • Getting Started in VexU
      • Team / Personnel Management
      • Volunteering At Local Events
  • 📚The Judging Process
    • The Engineering Design Process
      • Test and Refine
    • The Engineering Notebook
      • Segments of the Notebook
      • BLRS2 '23-'24 Engineering Notebook
      • Integrating Inventor Models into Documentation
      • Engineering Notebook Rubric Breakdown
    • The Interview
      • Interview Rubric Breakdown
    • Using Notion for an Engineering Notebook
      • How to Setup a Notebook
      • How to Create Entries
      • How to Export a Notebook
      • Purdue SIGBots Notion Template
        • Game Analysis
        • Identify The Problem
        • Brainstorm Solution
        • Select Best Approach & Plan
        • Build Log
        • Programming Log
        • Testing Solution
        • Tournament Recap
        • Innovative Feature
  • 🖥️VEX CAD
    • CAD Programs
      • Inventor
      • Fusion 360
      • Solidworks
      • OnShape
      • Protobot
    • Making a Chassis
      • Inventor Chassis: The Basics
        • Installation
        • User Interface Overview
        • Dark Mode
        • Assemblies
        • Placing Parts
        • Navigating CAD
        • Changing Visual Style
        • Grounding
        • Connecting Two C-Channels
        • Modifying Existing Constraints
        • Toggling Visibility on Existing Parts
        • Completing Half of the Chassis
          • Inner Drive Channel
          • Bearing Flats
          • Motors
          • Wheels
          • Sprockets
          • Spacers, Washers and Standoffs
          • Spacers Cont.
        • Creating Mid-Plane
        • Mirroring
      • Inventor Chassis: Best Practices
        • File Structure
        • Subassemblies
        • Wheel Subassembly
        • Origin Planes
        • Cross Brace
        • Drive Channels
        • Simple Motor iMates
        • Replacing Simple Electronics
        • Completing Half of the Drive
          • Bearing Flats (Best Practice)
          • Wheels
          • Powered Gear
          • Spacer Boxing
          • Spacers, Washers and Standoffs (Best Practice)
        • Model Browser Folders
        • Mirroring (Best Practice)
        • Model Browser Folder (Right)
        • Main Assembly
      • Fusion 360 Chassis
      • Solidworks Chassis, Chain, and Custom Plastic
    • Remembering The Best
      • 62A Skyrise
      • 400X Nothing But Net
      • 2587Z Nothing But Net
      • 365X Starstruck
      • 62A In The Zone
      • 202Z In The Zone
      • 5225A In The Zone
      • 169A Turning Point
      • 929U Turning Point
      • 7K Tower Takeover
      • 5225A Tower Takeover
      • 62A Change Up
    • Scuff Controller
  • 💻Software
    • Odometry
    • Path Planning
    • Robotics Basics
      • Arcade Drive
      • Tank Drive
      • Joystick Deadzones
      • Curvature (Cheesy) Drive
      • Subsystem Toggling
    • Organizing Code
      • Code Style
      • Code Styling Guide
      • Writing Good Comments
      • Version Control
    • Control Algorithms
      • Bang Bang
      • PID Controller
      • Basic Pure Pursuit
      • Flywheel Velocity Control
      • Kalman Filter
      • Take Back Half (TBH) Controller
      • RAMSETE Controller
    • Competition Specific
      • Operator Control
      • Autonomous Control
    • C++ Basics for VEX Robotics
      • Basic Control Flow
      • Enumerations
      • Namespaces (::)
      • Multiple Files (C/C++)
    • VEX Programming Software
      • PROS
        • OkapiLib
      • vexide
      • Robot Mesh Studio (RMS)
      • EasyC
      • RobotC
      • VEXcode
      • Midnight C
    • General
      • Stall Detection
      • Register Programming
      • Sensors and Odometry in Autonomous
      • Embedded Programming Tips
      • Debugging
      • Bit Shift
      • Bit Mask
      • Autoformatting
      • Finite State Machine
      • Data Logging
    • Object Recognition
      • Red Green Buoy
      • AMS
      • OpenCV
      • OpenNI
    • 🤖AI in VRC: Pac-Man Pete
  • ⚡VEX Electronics
    • V5 ESD Protection Board
    • VEX Electronics
      • VEX V5 Brain
        • V5 Electronics Observations and Issues
      • VEX Controller
      • VEXnet and V5 Robot Radio
      • VEX Battery
      • VEX Motors
    • VEX Sensors
      • 3-Pin / ADI Sensors
        • Encoder
        • Potentiometer
        • Limit Switch
        • Bumper Switch
        • Accelerometer
        • Gyroscope
        • Ultrasonic
        • Line Tracker
        • LED Indicator
      • Smart Port Sensors
        • GPS Sensor
        • Rotation Sensor
        • Vision Sensor
        • Optical Sensor
        • Distance Sensor
        • Inertial Sensor (IMU)
        • 3-Wire Expander
    • V5 Brain Wiring Guide
    • Legacy
      • VEX Cortex
      • Power Expander
      • VEX Motor Controller
      • VEX Cortex Wiring Guide
  • General Electronics
    • General Topics
      • External Boards
        • ASUS Tinker Board S
        • Arduino
        • Beagleboard
        • Leaflabs Maple
        • LattePanda
        • Meadow F7 Micro
        • Netduino
        • ODROID-XU4
        • Pandaboard
        • Raspberry Pi
      • Analog-Digital Converter (ADC)
      • Bit-Bang
      • GPIO
      • I2C
      • Jitter
      • Line Noise
      • List of Tools
      • Output Drive
      • Power Consumption
      • Radius Array
      • Resettable Fuse (PTC)
      • SPI
      • Slew Rate
      • Stalling
      • USART
      • UART
      • 5 Volt Tolerant
      • DC Motor Basics
Powered by GitBook
LogoLogo

This work is licensed under a Attribution-ShareAlike 2.0 Generic License

On this page
  • Installation
  • Testing
  • How it works
  • Usage
  • Teams Contributed to this Article:

Was this helpful?

Edit on GitHub
Export as PDF
  1. VEX Electronics
  2. VEX Sensors
  3. 3-Pin / ADI Sensors

Potentiometer

The VEX Potentiometer helps track the rotations of shafts

PreviousEncoderNextLimit Switch

Last updated 3 years ago

Was this helpful?

The is a simple analog sensor used to measure angular position. It returns a voltage between 0 and +5 V linearly proportional to its angular offset from one side. Currently, there are two different models: the older red potentiometer, and the newer black potentiometer. While the red potentiometer has a range of motion of approximately 260º, it can only electrically measure up to approximately 250º. Because it is somewhat fragile. it is important that these older units be protected against external stresses past its limits to prevent breaking the device. The new potentiometer, however, is able to rotate a full 360º and has a 333º electrical rotation angle, and this lack of a hard stop means that it is much less easily damaged (although one should always be careful).

Installation

To install the potentiometer, run the shaft of the arm whose movement needs to be measured through the small, white square hole in the middle, which is able to rotate. The larger black (or red, depending on the model) outer casing is screwed onto the robot. Then when the arm lifts, its axle turns the inner portion of the sensor to produce a reading.

This sensor will require some advance planning in the robot design. First of all, they take up space; it is important to plan where the sensor should be to avoid issues with other parts, especially moveable ones. The newer sensor is smaller, but it will also necessitate advance planning. Second, it can be difficult to put one of these on after the fact; doing so would likely involve taking the arm joint apart and changing all of the existing spacers, etc. to get it to fit since usually it would be installed fairly early on in the construction process. Not only that, but if the spot is tight enough to where it just won’t fit, it may require even more disassembly or even a partial re-design.

If the arm is geared, that is, the motor is turning at speed X and through gears makes the arm move at speed Y, and you are planning to use one of the older red potentiometers, be sure to install the potentiometer on the shaft that stays within that 250º arc. Do not install an older potentiometer on any shaft that is spinning more than 250º. If it is installed on a shaft that exceeds this, the sensor’s “stops” at each end of the arc will likely break, and the data will be meaningless. Since the newer potentiometers do not have a hard stop, they may be installed on any shaft.

Testing

Despite what VEX says in their documentation, the shaft may not “slide easily” into the sensor; it may be necessary to use a significant amount of force. Be careful, though; this stiffness increases the likelihood of inserting the square arm shaft in not-quite-the-right orientation of the sensor, which could damage it. Take some time and make sure to think through and visualize each step before committing to it and screw everything together.

Install it “just enough” at first; no need to tighten it completely or put lock nuts on yet. Using the online/debugger window, manually move the robot’s arm up & down to make sure that the sensor data is between 0 and 4095 at all times. If the sensor value does not move smoothly through the range, that is, if it stays at one number for a long time, or has a gigantic jump, then it is likely on the wrong way.

The arm’s potentiometer values (POT, for short) don’t need to start at zero at the bottom of your robot’s arm movement; the important thing is that the arm’s lowest position and highest position are both in the sensor’s range as listed above. When doing testing, make sure to write down the minimum and maximum values for your robot’s arm movement and put them in the engineering notebook. The programmers for your team will need this information.

How it works

Inside the outer casing is an adjustable resistor, and turning the shaft at the bottom of the sensor changes the resistance, allowing varying amounts of voltage to get to the other end of the circuit. That amount of voltage is measured and converted by the cortex into a value between 0 and 4095.

Usage

Teams Contributed to this Article:

Here’s VEX’s with the technical specs.

Potentiometers measure absolute position through a short range of motion, so they are good for lifts and other subsystems with a defined range of motion. The resolution is higher than with an and the potentiometer only requires one wire, so if a system can use a potentiometer then that's recommended.

(Purdue SIGBots)

⚡
documentation sheet
Encoder
BLRS
VEX Potentiometer
VEX Potentiometers: Older EDR Model (Left) and Newer V5 Model (Right) (Courtesy of VEX KB)
Courtesy of VEX Forum user jpearman