Hey everyone. I recently picked up a new keypad for my project and it works a bit differently than the one I was using before. My first keypad had 5 buttons and 6 wires. Each button had it's own wire, and they all shared a common wire. Easy enough to read with digitalRead.
This new keypad has four wires for five buttons. I've taken the keypad down as far as I can without breaking something ($75!), I can see everything for A, D, and E, but the other ones are on the backside of the board, away from what I can see.
As far as I can tell, the circuit is as follows:
Buttons A, D, and E are directly connected to pins 1, 3, and 7, respectively
Button B reads ~645 ohms to both 1 and 3, but when measuring ohms between pins 1 and 3, it is open. (that why I guess the diodes)
Button C is same as B, but with pins 1 and 7.
The only way I can think of to differentiate the pins is to do an analog read of each and determine by where the values are.
For example, if pins 1 3 or 7 read 1023 or close, then buttons A, D, or E is pressed, respectively.
If pins 3 or 7 read something in the middle, lets say between 300 and 700, then buttons B or C are pressed. (I'll have to read them to see where they actually measure at)
Would this be a good method, or is there some better standard way for this?