Adafruit Industries LLC 的 1824 规格书

fiadafruit —m.uuuu,u
3x4 Phone-style Matrix Keypad
PRODUCT ID: 1824
Description
Hey, Jenny, I've got your number! And I'm going to dial 867-5309 into this very nice phone-style matrix keypad.
This keypad has 12 buttons, arranged in a telephone-line 3x4 grid. It's made of plastic with sturdy plastic buttons.
The keys are connected to a matrix so you only need 7 microcontroller pins (3-columns and 4-rows) to scan through
the pad.
There's a great Matrix Keypad Arduino library that should work great with this item with minor adjustments. It's
basically a sturdier version of our Membrane 3x4 Matrix Keypad and comes with 7 or 8 header pins pre-soldered on
for easy plugging. Starting from the left there are three column pins, and then to the right are the four row pins. If
yours has an 8th pin, its not used and you can just leave it disconnected
59 64 1414 m [3.3 m [*H‘fikla: V 85 2534/ " l l 1 | 9:) ,Ln |_J 14
TechnicalDetails
o Force: 160-180g
o Contact Resistance: <100
o Weight: 23g
There 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:
#include"Arduino.h"
#include"Keypad.h"
constbyteROWS=4;//fourrows
constbyteCOLS=3;//threecolumns
charkeys[ROWS][COLS]={
{'1','2','3'},
{'4','5','6'},
{'7','8','9'},
{'*','0','#'}
};
byterowPins[ROWS]={5,6,7,8};//connecttotherowpinoutsofthekeypad
bytecolPins[COLS]={2,3,4};//connecttothecolumnpinoutsofthekeypad
Keypadkeypad=Keypad(makeKeymap(keys),rowPins,colPins,ROWS,COLS);
voidsetup(){
Serial.begin(9600);
}

voidloop(){
charkey=keypad.getKey();

if(key!=NO_KEY){
Serial.println(key);
}
}
This will swap the * and # keys and also let you connect to the Arduino with all the pins in order/in a row
starting from digital 2 thru digital 9
EngineeredinNYCAdafruit®https://www.adafruit.com/product/18245517