I'm working on a small project with a keypad that I am trying to interface with the Keypad.h library. Everything is working fine, but when I push the A, B, C, or D button it gives me the characters from the first column instead of the 4th. I'm not sure what's going wrong in my code. Does someone have any ideas?
What do you get when you press keys in the first column ?
When the first column (1, 4, 7, *) is pressed it gives the correct characters. Same with the second and third column. When the 4th column is pressed it gives the characters as if it were the 1st column.
I took the keypad out to test the row and column wires by shorting them (like the keypad would) and they all work properly. Except pin 9 seems to be a duplicate of pin 6.
jamescb82:
I took the keypad out to test the row and column wires by shorting them (like the keypad would) and they all work properly. Except pin 9 seems to be a duplicate of pin 6.
Very strange. Have you checked to see if 9 and 6 are shorted together? The sketch looks fine so I think it is a hardware problem.
Very strange. Have you checked to see if 9 and 6 are shorted together? The sketch looks fine so I think it is a hardware problem.
It really is weird. I moved the pin 9 wire around to tidy a few things up and made sure nothing was shorting, I even checked with a multimeter. Still a no go.