Membrane 4X4 Matrix Keypad
$24.3
$36.21
Punch in your secret key into this numeric matrix keypad. This keypad has 12 buttons, arranged in a telephone-line 4x4 grid. It’s made of a thin, flexible membrane material with an adhesive backing (just remove the paper) so you can attach it to nearly anything. The keys are connected into a matrix, so you only need 8 microcontroller pins (4‑columns and 4‑rows) to scan through the pad. Check the tutorials tab for links to an Arduino library and example code.We include a 8‑pin extra-long header strip so you can plug this into a breadboard with ease.DETAILSPad Size: 70 * 77 * 0.8mmCable Length: 85mm(include connector)Connector: 8 pins female header, 2.54mm PitchMax Circuit Rating: 35VDC, 100mAInsulation Spe: 100M Ohm, 100VDielectric Withstand: 250VRms (60Hz, 1min)Contact Bounce: <=5msLife Expectancy: 1 million closuresOperation Temperature: ‑20 to 40 °CThere is a very nice Matrix Keypad Arduino library that works great with this item. The only thing we suggest is to change the initialization code in the examples to this:Arduino #include "Arduino.h" #include "Keypad.h" const byte ROWS = 4; //four rows const byte COLS = 4; //three columns char keys[ROWS][COLS] = { {'1','2','3','A'}, {'4','5','6','B'}, {'7','8','9','C'}, {'*','0','#','D'} }; byte rowPins[ROWS] = {9, 8, 7, 6}; //connect to the row pinouts of the keypad byte colPins[COLS] = {5, 4, 3, 2}; //connect to the column pinouts of the keypad Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );123456789101112131415#include “Arduino.h”#include “Keypad.h” const byte ROWS = 4; //four rowsconst byte COLS = 4; //three columnschar keys[ROWS][COLS] = { {‘1’,‘2’,‘3’,‘A’}, {‘4’,‘5’,‘6’,‘B’}, {‘7’,‘8’,‘9’,‘C’}, {‘*’,‘0’,’#’,‘D’}};byte rowPins[ROWS] = {9, 8, 7, 6}; //connect to the row pinouts of the keypadbyte colPins[COLS] = {5, 4, 3, 2}; //connect to the column pinouts of the keypad Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
Buttons/Switches