encoder
A sensor that measures the rotation angle of a joint. Internal encoders track how much each joint has rotated, providing crucial feedback about the robot’s position.
What it is:
A sensor attached to each joint that measures and reports how much that joint has rotated. It's the robot's "position awareness system"—providing real-time feedback about where each joint actually is.
How it works:
- As a motor rotates a joint, the encoder rotates with it
- The encoder counts the rotation and converts it to an angle measurement
- This data is sent back to the control system continuously
- Result: The robot knows its actual joint angles at every moment
Types of encoders:
- Absolute encoders — Remember their position even when powered off (like knowing the clock time)
- Relative encoders — Only track changes from a starting point (like counting steps from home)
Why it's essential:
Feedback loop:
- Motor receives a command: "Rotate to 45°"
- Encoder measures actual rotation in real-time
- Control system compares commanded angle vs. actual angle
- If there's a mismatch, it adjusts motor power to correct it
- This is how PID controllers work—they need encoder feedback to function
Without encoders:
- The robot would have no idea if joints moved as commanded
- No way to correct errors (motor slip, external forces, etc.)
- Tasks requiring precision would be impossible
- The robot would be "blind" to its own position
Practical example:
You command a robot to pick up a bolt at a specific location. The encoders tell you: "Joint 1 is at 45°, Joint 2 is at 90°." This data feeds into forward kinematics to calculate the exact hand position—confirming the gripper is where it needs to be.
Share: