1 MULTIPLE BUTTONS WITH ONE ANALOG INPUT
Rather than using multiple digital inputs for multiple buttons, you can read many buttons with just one analog input pin. This not only reduces the number of input/output (I/O) pins used on your Arduino but can also save you money since you won’t need any external integrated circuits (ICs), such as shift registers or port expanders.
In this chapter, you’ll learn to:
- Use voltage dividers and buttons to create different voltages, differentiating buttons connected to an analog-to-digital converter (ADC) pin
- Read three or six buttons with one analog input
- Build a 12-button keypad that can be read with ...
Get Arduino for Arduinians now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.