LST Robotics Logo

Learning • Sensors • Tech

LST Robotics

Lessons
← Back to Theory Track

Theory Track · Lesson 5

Encoders and Motion Feedback

5.1 Introduction to Motion Feedback

In robotics, simply commanding a robot to move is not enough. For accurate and reliable operation, the robot must be able to measure its own movement. This is known as motion feedback. Without feedback:

With feedback:

Motion feedback is essential for:

5.2 What is an Encoder?

An encoder is a sensor used to measure rotation. It is typically attached to a motor shaft or wheel. As the motor rotates, the encoder generates signals that can be counted and converted into:

moving.

5.3 Types of Encoders

1. Incremental Encoders

2. Absolute Encoders

5.4 How Encoders Work

Example: If one full wheel rotation produces 100 pulses:

This allows precise measurement of movement.

5.5 Measuring Distance Using Encoders

Encoders can be used to calculate how far a robot has travelled. To do this, the system must know:

Concept: Distance traveled = number of rotations × wheel circumference This allows the robot to move:

Coding Guide. How to convert encoder values into distance and display them is implemented in the Coding Guide.

5.6 Measuring Speed

Encoders can also be used to measure speed. This is done by:

This allows:

5.7 Why Feedback is Important

Without encoders, robots rely on open-loop control, meaning they assume movement happens as expected. This leads to:

With encoders, robots use closed-loop control, meaning they continuously adjust based on actual movement. This results in:

5.8 Encoders in Drivetrain Systems

Encoders are commonly used in drivetrain systems to:

Example: If one side of the robot moves faster than the other:

Coding Guide. Using encoders to control drivetrain movement and correct errors is covered in the Coding Guide.

5.9 Common Encoder Challenges

1. Incorrect Calibration

If the distance per pulse is incorrect:

2. Noise and Interference

3. Slippage

If wheels slip:

4. Misalignment

5.10 Improving Accuracy

To improve encoder accuracy:

This leads to more reliable motion tracking.

Coding Guide. You will implement encoder reading, distance calculation, and motion control in the Coding Guide.
Challenge
  • 1. Explain the difference between open-loop and closed-loop control.
  • 2. Describe how an encoder measures rotation.
  • 3. Explain how distance is calculated using encoder data.
  • 4. List common issues that affect encoder accuracy.
  • 5. Explain why encoders are important in drivetrain systems.
  • Program a robot to:
  • Move forward a specific distance
  • Stop accurately using encoder feedback
  • Display the distance on SmartDashboard
← Robot Drive Systems Control Systems (PID) →