Adafruit Industries, Essential service and business: NYC – Executive Order 202.6 - Read more. Accepting essential orders - here's how.
Skip navigation

3x4 Matrix Keypad

1-9 $6.50
10-99 $5.85
100+ $5.20
  • 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, ROW3, ROW2

    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

  • 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] = {
    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(){
    void loop(){
      char key = keypad.getKey();
      if (key != NO_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

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


    Punch up your project with a matrix keypad