16 Button Keypad | Botshop

16 Button Keypad

R68.40 inc VAT

3 in stock

Purchase this product now and earn 60 Bot Points!
SKU: keypad-42 Category: Tag:

Description

Introduction:
In the application system of microcontroller, a keyboard is essential in man-machine dialogue. When you are short of a button, you can connect one to the I/O port of the controller; but when you need a lot of buttons with limited I/O port resources, this 4*4 Matrix Keypad is no doubt your best choice. The 4*4 matrix keypad is the most applied keypad form. We need to master its keypad identification technology as an entry to microcontroller world. The key layout is in matrix form, so with only eight I/O ports, we can identify 16 buttons, saving lots of I/O port resources.

specifications:
1. Circuit grade: 35V(DC),100mA, 1W
2. Contact resistance: 10~ 500(changing with wire length and materials)
3. Insulation resistance: 100M 100V
4. Dielectric Strength: 250VRms(50~60Hz 1min)
5. Electrical shock shaking time: <5ms
6. Service life: Tactility type: 1 million times
7. Operating pressure: Tactility type: 170~397g(6~14oz)
8. Switching path: Tactility type: 0.6~1.5mm
9. Operating temperature: -40~+80’C
10.Storage temperature: -40~+80’C
11.Temperature: 40, 90%~95%, 240H
12. Vibration: 20G,max.(10~200Hz,Mil-SLD-202,M204.Condition B)

Documentation

Library: keypad.zip

2117

hex-keypad-arduino

Sketch

#include <Keypad.h>

const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns
//define the cymbols on the buttons of the keypads
char hexaKeys[ROWS][COLS] = {
{'0','1','2','3'},
{'4','5','6','7'},
{'8','9','A','B'},
{'C','D','E','F'}
};

//connect to the row pinouts of the keypad
byte rowPins[ROWS] = {2, 3, 4, 5};  
//connect to the column pinouts of the keypad
byte colPins[COLS] = {9, 8, 7, 6}; 

//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){
Serial.println(customKey);
}
}

 

 

Additional information

Weight0.001 kg
Dimensions1 x 1 x 1 cm

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.