In this chapter, we will take a look at the pulse width modulation (PWM) and analog-to-digital converter (ADC) subsystems. We will cover the following topics:
Fading an LED
Controlling servo motors
Voltage dividers
Voltage followers
Sensing light levels with a photocell
Sensing distance with Sharp IR rangefinders
Building a simple robot