-
Notifications
You must be signed in to change notification settings - Fork 433
Matthew Heironimus edited this page Sep 20, 2017
·
6 revisions
How can I connect 32 (or some other large number) of buttons to an Arduino Leonardo or Arduino Micro that only has 13 digital pins and 6 analog/digital pins?
There are various ways this can be done.
- The Arduino website has a good example of how this can be done using a one or more SN74HC165N shift registers (see https://playground.arduino.cc/Code/ShiftRegSN74HC165N).
- Another possibility is using an encoder, like the 74LS348.
- A key matrices can also be used. A good article on key matrices can be found at http://pcbheaven.com/wikipages/How_Key_Matrices_Works/.