If you enjoy the articles in this web site, please consider supporting it by ordering the items you want by clicking on the recommended Amazon product links in the articles, which will just add those products to your Amazon shopping cart.

The product links contain a referral tag that allows me to earn a small commission on the sale of the products from Amazon.  This doesn't cost you anything extra but will help to offset the cost of running this web site and writing new articles.

Article Index

Since the Raspberry Pi only has digital I/O, adding analog inputs (like potentiometers) requires the addition of an analog to digital converter chip, such as the MCP3008 (10 bit resolution) or MCP3208 (12 bit resolution).  Another option is to use a microcontroller, which natively supports analog inputs.  Rather using an Arduino, a much cheaper option is to use a Raspberry Pi Pico, which allows 3 analog inputs and 23 digital inputs/outputs.

References