Matrix keypad without encoder?
SamM
Posts: 24
Is it possible to use a matrix keypad with a stamp *without* an encoder such as the 74c923? I have plenty of pins free, so lack of inputs is not a problem. I've thought about some method of strobing rows and checking columns to determine which key is pressed, but I'm wondering if this can cause hardware problems if more than one key is pressed at a time.
Any suggestions, or is the only 'safe' method to use an encoder chip?
Any suggestions, or is the only 'safe' method to use an encoder chip?
Comments
http://www.parallax.com/dl/docs/cols/nv/vol1/col/3.pdf
http://www.parallax.com/dl/docs/cols/nv/vol1/col/22.pdf
http://www.parallax.com/dl/docs/cols/nv/vol2/col/62.pdf
http://www.parallax.com/dl/docs/cols/nv/vol3/col/79.pdf
http://www.parallax.com/dl/docs/cols/nv/vol4/col/97.pdf
I've used the interface from issue #22 above, and found it works better if you change the 10K pullup resistors to pulldown resistors and change the BS2 program accordingly.
Beau Schwabe posted the circuit in the attachment thats interesting - it uses 1 resistor for each row/column and 1 capacitor and just 1 BasicStamp pin.
You just use the RCTIME command....Open a PBASIC editor and type the word RCTIME. Highlight the command and press F1 for help using RCTIME.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
My final decision was to go with the method of pulsing the rows and scanning the columns. A bit simpler hardware-wise, although debouncing and non-repeating proved to be fun in software.
Appreciate the help!