Seamonsters-2605.github.io

Sensors and Feedback Loops

Sensors on the robot

Encoder

AMT-103 Encoder

NavX

Limelight

Limelight

Feedback loops

Feedback means that the output of a system directly affects the input. For example, the shaft of a motor is connected to an encoder, meaning that the motor output directly changes the encoder input. We can then use the encoder input in our program to change the output of the motor, completing the loop. This is known as “closed-loop” control.

In robotics programming we often use negative feedback loops, which attempt to maintain a state by dampening the stimulus of the input. For example we can use the NavX and drivetrain motors to keep the robot pointed in a direction. When the robot rotates too far in one direction, the code will compensate by running the motors in the opposite direction (negative feedback).

You can read more about “Control Theory” on Wikipedia.

Steps of a feedback loop:

Your Task