Odometry Ticks per Inch
Converts between encoder ticks and real inches on the floor.
Inputs
Diameter across the wheel. Mecanum and flex wheels share a diameter with the plain ones, so pick by name rather than by size. Anything not listed can be typed in.
Needed for the turn figures. Left wheel center to right wheel center.
Count the ticks
One tile's worth of floor, the wheel at its real size, and the encoder counting. Roll it and watch the count climb: ticks per inch is the number your program divides by to turn counts into inches, and this is where it comes from.
Results
Ticks per inch
—
Ticks per wheel turn
—
Inches per tick
—
Ticks for your distance
—
Ticks per side for your turn
—
Point turn, wheels opposing.
Ticks per tile
—
24 inches.
Motor degrees per inch
—
To use it: Enter your cartridge, gearing and wheel size.
Easy to miss: Gearing down gives you more ticks per inch, which is free precision.
How it works
The encoder is inside the motor, so it never sees the wheel directly. The calculator multiplies the cartridge's ticks per turn by the gear ratio to get the ticks in one turn of the wheel. Dividing that by the distance around the wheel gives ticks per inch.
For a turn in place, each side of the drive travels along a circle as wide as the track width. The calculator works out that distance for your angle and converts it to ticks. Treat every figure as a starting value: wheels slip and wear, so drive a known distance and adjust.
Worked example
With your numbers
Measure it on your robot
- Cartridge. Check the color of the cartridge in a drive motor: red is 100 RPM, green is 200 and blue is 600.
- Driving gear. Count the teeth on the gear that sits on the drive motor's shaft.
- Driven gear. Count the teeth on the gear that shares a shaft with the wheel.
- Wheel size. Measure straight across the wheel through its center with a ruler, or pick the wheel by its name in the list.
- Track width. Measure from the center of a left wheel to the center of the right wheel directly across from it.
- Distance to drive. Measure on the field, with a tape measure, how far the robot has to travel.
- Angle to turn. Lay a protractor on the field at the turning spot and read the angle between the old heading and the new one.
When you would use this
Our autonomous drives the wrong distance.
Ticks per inch is the number your code converts with. Work it out here from your real gearing and wheel size rather than trusting a figure copied from another team, whose drive is not yours.
We changed our wheels and everything broke.
Wheel size changes ticks per inch directly. Run it again with the new wheel and update the constant. This is the single most common reason a working autonomous stops working.
Our turns are close but never exact.
Enter the angle and your track width to get the distance each side has to travel. If your code turns by driving one side, that is the number it needs.
We want more precision without buying anything.
Gearing down multiplies ticks per inch. Try a taller reduction here and see how much resolution it buys, before deciding whether tracking wheels are worth it.
How this is calculated
The encoder is inside the motor, not on the wheel. So the first job is working out how many motor turns make one wheel turn, which is exactly the gear ratio:
ticks per wheel turn = ticks per motor turn × (driven ÷ driving) ticks per inch = ticks per wheel turn ÷ (π × wheel diameter)Gearing down multiplies your resolution. A drive geared 5:1 gives five times as many ticks per inch as a direct drive with the same cartridge, because the motor spins five times for each wheel rotation.
Cartridges change resolution too
The three cartridges report different tick counts per output turn: 1800, 900 and 300 for the 100, 200 and 600 RPM cartridges. That is the internal gearing showing through: the same encoder on the same motor shaft, divided by a different reduction.
So a red cartridge gives six times the positional resolution of a blue one at the same wheel. If a mechanism needs to stop precisely, that matters more than the speed does.
Turning
In a point turn each side drives a circle of radius half the track width, so the distance each side travels for a given angle is:
distance per side = (angle ÷ 360) × π × track widthTurn figures drift more than straight-line ones, because turning scrubs the wheels sideways across the tiles by design. Almost every reliable autonomous uses a gyro or inertial sensor for angles and saves the encoder for distances. Treat the turn number here as a fallback, not a plan.
If you have tracking wheels
Unpowered tracking wheels sidestep most of this. They carry no torque so they barely slip, and their encoder sits on the wheel itself, so there is no gear ratio in the sum at all, and ticks per inch is just the encoder resolution divided by the wheel circumference.
Sources & assumptions
Encoder resolutions of 1800, 900 and 300 ticks per output revolution for the 100, 200 and 600 RPM cartridges are published figures, as are the cartridge ratios and wheel diameters. Circumference is computed as π × diameter rather than VEX's rounded travel figures.
Assumes rolling without slip and a wheel at its nominal diameter, neither of which holds exactly, which is why the calibration note above matters more than the arithmetic.
- Purdue SIGBots Wiki: VEX Motors — checked August 2026
- VEX Library: Understanding VEX V5 Wheels — checked August 2026
Save this run, and compare
Keeps what is on screen so you can change something and see both sides of the change. Saved in this browser only, never uploaded.
Code for these numbers
Only the numbers come from this page. How your program uses them is up to you, so read each line before you paste it.
Make a notebook page
Turns this calculation into a dated engineering notebook page: the setup, data, results, figures, working and sources, numbered and cited. You add the goal, the decision and the reflection in your own words, plus photos and sketches. Print it, paste it into Google Docs, or download a Word file or slides.