Analog meters and instrumentation were the only ways to display data prior to the rise of digital technologies. Once the move was made to digital, analog meters fell out of vogue. Generations that grew up learning to tell the time on an analog clock may suddenly find this skill to be out of date, as digital displays of time have become the norm.
In this chapter, we will bridge the gap between the digital and analog worlds by changing the position of a servo motor based on a digital value.
The following topics will be covered in this chapter:
- Wiring up a servo motor to the Raspberry Pi
- Controlling the servo through the command line
- Writing a Python program to control the servo