Closed loop control is an essential topic for embedded systems, bringing together actuators and sensors with the control algorithm in software. The central point of this chapter is to use motor feedback via encoders for velocity control and position control of motors. We will exemplify this by a stepwise introduction of PID (Proportional, Integral, Derivative) control.
In Chapter 4, we showed how to drive a motor forward or backward and how to change its speed. However, because of the lack of feedback, the actual motor speed could not be verified. This is important, because supplying the same analog voltage (or equivalent: the same PWM signal) to a motor does not guarantee that the motor will run at the same speed under all circumstances. For example, a motor will run faster when free spinning than under load (for example driving a vehicle) with the same PWM signal. In order to control the motor speed we do need feedback from the motor shaft encoders. Feedback control is called “closed loop control” (simply called “control” in the following), as opposed to “open loop control”, which was discussed in Chapter.
Keywords
Motor Speed Velocity Control Actual Speed Proportional Controller Robot VehiclePreview
Unable to display preview. Download preview PDF.
5.6 References
- Åström, K., Hägglund, T. PID Controllers: Theory, Design, and Tuning, 2nd Ed., Instrument Society of America, Research Triangle Park NC, 1995Google Scholar
- Bolton, W. Mechatronics - Electronic Control Systems in Mechanical Engineering, Addison Wesley Longman, Harlow UK, 1995Google Scholar
- Jones, J., Flynn, A., Seiger, B. Mobile Robots - From Inspiration to Implementation, 2nd Ed., AK Peters, Wellesley MA, 1999Google Scholar
- Kasper, M. Rug Warrior Lab Notes, Internal report, Univ. Kaiserslautern, Fachbereich Informatik, 2001Google Scholar
- Kim, B., Tsiotras, P. Controllers for Unicycle-Type Wheeled Robots: Theoretical Results and Experimental Validation, IEEE Transactions on Robotics and Automation, vol. 18, no. 3, June 2002, pp. 294-307 (14)CrossRefGoogle Scholar
- Seraji, H., Howard, A. Behavior-Based Robot Navigation on Challenging Terrain: A Fuzzy Logic Approach, IEEE Transactions on Robotics and Automation, vol. 18, no. 3, June 2002, pp. 308–321 (14)CrossRefGoogle Scholar
- Williams, C. Tuning a PID Temperature Controller, web: http://new-ton.ex.ac.uk/teaching/CDHW/Feedback/Setup-PID.html, 2006