Lesson 23: Recap

This recap covers the second group of lessons: debugging, state, timing, encoders, gyros, pneumatics, threading, and PID control.

You Should Be Able To

Practice Project

Design a small elevator in code. You do not need real hardware for the design. Write the classes and variables you would use.

  1. Create states for idle, moving up, moving down, and holding.
  2. Add calibration values for motor speeds and maximum safe height.
  3. Add an encoder value for position.
  4. Add a timeout for movement.
  5. Add a proportional controller that moves toward a target height.

If you can explain how those pieces fit together, you are ready to apply feedback control to drive trains.