Reading an analog potentiometer with the A/D converter MCP3008 and SPI


An analog potentiometer is a manually adjustable resistor and part of many electronic circuits, e.g. speakers for volume control. For the Raspberry Pi, potentiometers are great to change a device behaviour with no screen attached. For example, the speed of a robot could be modified by the user with a potentiometer. Sadly, the Raspberry Pi does not have an analog input; that’s why an Analog-Digital-Converter (ADC) like the MCP3008 used herein is necessary. Continue Reading