Hello guys,
I have keypad but it isn't a standard keypad, I did remove this part from old alarm controller from my grandpa shop. Could you help me how connect this in Arduino? First I thought the first four pins are columns and next eight pins are rows but when I connect that and when I send to Serial.Begin data then only have once char from matrix working and every button on column send the same char... below I putting the picture about this keypad. btw I can't found any manual for this part
#include <Keypad.h>
const byte ROWS = 8; //eight rows
const byte COLS = 4; //five columns
//define the symbols on the buttons of the keypads
char hexaKeys[ROWS][COLS] = {
{'S'}, // start
{'A','B'}, // f1....
{'C','D','E',},
{'7','8','9'},
{'4','5','6'},
{'1','2','3'},
{'*','0','+'},
{'_', '<', ']' }
};
byte rowPins[ROWS] = {10, 12, 11, 10, 9, 8, 7, 6}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {2, 3, 4, 5}; //connect to the column pinouts of the keypad
//initialize an instance of class NewKeypad
Keypad customKeypad = Keypad( makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);
void setup(){
Serial.begin(9600);
}
void loop(){
char customKey = customKeypad.getKey();
if (customKey)
{ // print keys
Serial.print(customKey);
}
}