16-311 Introduction to Robotics |
|||
Main Schedule Homework Labs Links |
Lab 4: Controls |
|||||
Challenge StatementCreate a two-wheeled inverted pendulum capable of balancing itself using LEGO sensors. Lab Goals
BackgroundPrinciplesYou may have to combat the following while developing your machines:
PID control, which stands for Proportional-Integral-Derivative control, is an extremely flexible and powerful control method. An output signal can be generated by summing the three components: The constants , , and are referred to as the proportional, integral, and derivative constants, or sometimes the PID tuning constants. is the error from the desired output at time t. While these exist in continuous space, more practical implementations can be considered below: The derivative component can be implemented as the difference between the current and the previous errors, divided by the time between the two. However, in most practical applications the time sampling rate is constant, so we do not divide by a constant and instead modulate . The integral component is somewhat straightforward, as we can simply sum all the elements in our array (this works especially well if uninitialized values are set to 0). However, for various reasons, we may not actually want an integral term in our system. Depending on the implementation of the integral error, it could dominate the controller over time, or add undesired effects near the beginning of the curve (before the error has had sufficient time to settle).
Lab RequirementsThe 2018 Specifications for Lab 4 are presented in the following document. This will be the most up-to-date resource for lab requirements. Lab 4 Demonstration Sign Up Sheet Extensions |
|||||
|