Adafruit Industries, Essential service and business: NYC – Executive Order 202.6 - Read more.
Skip navigation

4x4 Matrix Keypad

1-9 $5.95
10-99 $5.36
100+ $4.76
  • Description-


    Punch in your secret key (or Jenny's number) into this numeric matrix keypad. This keypad has 16 buttons, arranged in a telephone-line 4x4 grid. 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 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. Starting from the left there are four row pins, and then to the right are the four column pins.

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

    We also have a 3x4 version of this matrix keypad

  • 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, which matches the demo above

    #include "Arduino.h"
    #include "Keypad.h"
    const byte ROWS = 4; //four rows
    const byte COLS = 4; //four columns
    char keys[ROWS][COLS] = {
    byte rowPins[ROWS] = {A3, A2, A1, A0}; //connect to the row pinouts of the keypad - four in a row
    byte colPins[COLS] = {MOSI, SCK, A5, A4}; //connect to the column pinouts of the keypad - four in a row
    Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
    void setup() {
    void loop() {
      char key = keypad.getKey();
      if (key != NO_KEY){

    Product Dimensions: 69.0mm x 65.5mm x 9.7mm / 2.7" x 2.6" x 0.4"

    Product Weight: 21.2g / 0.7oz

    RoHS 2 2011 65 EU Compliant
    RoHS 2 2015 863 EU Compliant
  • Learn+


    Punch up your project with a matrix keypad