arduinomicrocontrollernodemcunumeric-keypad

How can I get input from undefined number of button Controller


If i want to get input from 20 to 30 buttons (Consider as a 30 Buttons of keypad), then what is the best approach to achieve it? Is these any keyboard available in market or I need to make it with my own talent?

Better if you can suggest with reference to Nodemcu,Esp8266, V3. Thank you


Solution

  • There are cheap keypads available in the market which can be used with Arduino. They can take 4-5 pins to attach and then, you cannot utilize the pins for other use. Thus, you can use OnewireKeypad.h library. With this, you'll just require only one pin for data transfer, unlike the previous traditional way. You can go here for further info on how to do it.

    The other way is to use an old PS2 PC keyboard which will take 4 wires and a library. Go here for further info about this.

    These methods can all be implemented for NodeMCU, ESP8266, etc.