Simple Keypade Interface
MR
Posts: 46
Hello All.
I have read the nuts and volts articles and web searched interfacing a keypad to the Basic Stamp 40 pin module. I need help. I do not understand. I have only taken basic electronics, and digital electronics in college. Those two classes 5 years ago got me interested in hobby electronics. I have some led displays shift registers and 7447s bcd to 7 seg decoders. What I need to do is adapt a keypad for entry into the shift registers.
I can understand a simple 12 "Button Keypad" each key wired to a common ground. What I don't understand is Matrix Keypads.
3x4, 4x4. I understand there are rows and columns. What is a matrix in this case? How does it work? Please use simple terms to help me understand. What would the code look like? I need it to output 4 bit binary nibbles into the shift registers.
How does a simple keypad work? I.E. The Button Command?
Again, I have read the nuts and volts but don't understand them, I am new at this. Please Help.
Thanks.
I have read the nuts and volts articles and web searched interfacing a keypad to the Basic Stamp 40 pin module. I need help. I do not understand. I have only taken basic electronics, and digital electronics in college. Those two classes 5 years ago got me interested in hobby electronics. I have some led displays shift registers and 7447s bcd to 7 seg decoders. What I need to do is adapt a keypad for entry into the shift registers.
I can understand a simple 12 "Button Keypad" each key wired to a common ground. What I don't understand is Matrix Keypads.
3x4, 4x4. I understand there are rows and columns. What is a matrix in this case? How does it work? Please use simple terms to help me understand. What would the code look like? I need it to output 4 bit binary nibbles into the shift registers.
How does a simple keypad work? I.E. The Button Command?
Again, I have read the nuts and volts but don't understand them, I am new at this. Please Help.
Thanks.
Comments
A "matrix" is the name of any unit or thing made of rows and columns. If you understand a 1x4 keypad with common ground:
then a 4x4 matrix keypad is just four of those.
I recently hoked up a 4x4 keypad, so this is my code which should more or less self explaining. Of course you will have to match the LOOKUP-table to your particular type of keypad.
For basic articles about how to connect all sorts of things I would suggest searching the nuts-and-volts articles, tracy allen's (emesys.com) articles, and last
but not least the BS manual.
Greetings
Adrian