Chapter 10! "Are we there yet?" Finally, yes! In the previous two chapters, we learned about the Arduino MEGA: how to control a servo and supply adequate power; we built the chassis for our dog using ice cream sticks and created a tiny circuit to get rid of the breadboard and a dozen of wires.
In this chapter, we will finally learn to program a complex machine such as the robot dog that we've built, and how to tackle hurdles that we face. The reason why this is so hard to program is because of all the servos that need to be controlled and coordinated in order to produce the right balance and meaningful motions. This chapter is split into the following sections: