
Figure 8-8.
Wiring up a force-sensitive resistor to the ADC requires
a voltage divider circuit.
Going Further
Controlling a DC Motor with PWM
(bit.ly/1xpmBIF)
Adafruit has an excellent guide that teaches you how to use
PWM to control the speed of a DC motor.
Reading Resistive Sensors with RC Timing
(bit.ly/1rk6yJI)
Adafruit also shows you how to use a simple circuit to read resis-
tive analog sensors without an analog-to-digital converter.
138 Getting Started with Raspberry Pi
GSW_RASPI_4ED_FIN.indd 138GSW_RASPI_4ED_FIN.indd 138 10/28/21 10:54 AM10/28/21 10:54 AM