3x4 Matrix Keypad

PRODUCT ID: 3845
$6.50
QTY DISCOUNT
1-9 $6.50
10-99 $5.85
100+ $5.20
  • Description

    Description-

    Punch in your secret key (or Jenny's number) into this numeric matrix keypad. This keypad has 12 buttons, arranged in a telephone-line 3x4 grid. The keys are connected into a matrix, so you only need 7 microcontroller pins (3-columns and 4-rows) to scan through the pad. Check the tutorials tab for links to an Arduino library and example code.

    We include some header so you can plug this into a breadboard with ease, some light soldering is required to attach it. Or you can use plain wires if you like.

    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. Note that the rows and columns are intermixed. The order from left to right is COL2, ROW1, COL1, ROW4, COL3, ROW2, ROW1

    We also have a 4x4 version of this matrix keypad and a version that has phone-styling with letters printed over the numbers

    If you dig our demo, check out the Adafruit FeatherWing OLED - 128x32 OLED

    https://www.youtube.com/embed/9HQjpNSX9HE?start=355

  • Technical Details

    Technical Details+

    • Force: 160-180g
    • Contact Resistance: <100Ω

    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"
    
    const byte ROWS = 4; //four rows
    const byte COLS = 3; //three columns
    char keys[ROWS][COLS] = {
      {'1','2','3'},
      {'4','5','6'},
      {'7','8','9'},
      {'*','0','#'}
    };
    byte rowPins[ROWS] = {12, 5, 6, 10}; //connect to the row pinouts of the keypad
    byte colPins[COLS] = {11, 13, 9}; //connect to the column pinouts of the keypad
    
    Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
    
    void setup(){
      Serial.begin(9600);
    }
      
    void loop(){
      char key = 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

    Product Dimensions: 70.0mm x 51.0mm x 9.7mm / 2.8" x 2.0" x 0.4"

    Product Weight: 17.6g / 0.6oz

MAY WE ALSO SUGGEST...