Summary
In this chapter, we learned many important aspects of robot programming with Arduino. Cooperative multitasking and a good understanding of state machines are important for almost any reboot program that needs to run on a microcontroller. A good grasp and intuition for feedback control systems are also very useful when building robots. To get you there, we built a PID position-controlled DC servo motor that allows you to experiment with parameters, code, and hardware changes to solidify your understanding of feedback control systems.
In the next chapter, we will focus on object orientation, a very powerful feature of the C++ language that allows us to reuse much of our code and that simplifies using code written by others. You will learn how to write your own object-oriented (OO) Arduino libraries that can be used by anyone.
Instead of the Further reading section on this topic, it is worth spending some time experimenting with your DC servo motor. You can test the effects...