# 4x4 Matrix Keypad

**Type:** Product page · **SKU:** ADA3844 · **Brand:** [Adafruit](https://core-electronics.com.au/brands/adafruit-australia)
**Page:** https://core-electronics.com.au/4x4-matrix-keypad.html ([markdown](https://core-electronics.com.au/4x4-matrix-keypad.html.md))

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...

## Pricing

- **Price:** $12.30 (inc GST) — $11.18 AUD, exc GST
- **Quantity discounts:** 10+ $10.85 (exc GST) · 50+ $10.62 (exc GST)

## Availability & dispatch

- In stock, ships same business day if ordered before 2PM (Australia/Sydney).
- We can dispatch 5 today, and up to 500 more in 8–12 days.

## Description

Punch in your secret key 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.Adafruit 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 Adafruit's [Membrane 3x4 Matrix Keypad](https://core-electronics.com.au/membrane-3x4-matrix-keypad-3x4.html). Starting from the left there are four row pins, and then to the right are the four column pins.

If you dig Adafruit's demo, check out the [Adafruit FeatherWing OLED - 128x32 OLED](https://core-electronics.com.au/featherwing-oled-128x32-oled-add-on-for-all-feather-boards.html)

[We also have a 3x4 version of this matrix keypad](https://core-electronics.com.au/3x4-phone-style-matrix-keypad.html)[ ](https://core-electronics.com.au/3x4-matrix-keypad.html)

### Technical Details

- Force: 160-180g
- Contact Resistance: &lt;100&amp;
 
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" <br></br>#include "Keypad.h" <br></br><br></br>const byte ROWS = 4; //four rows <br></br>const byte COLS = 4; //four columns<br></br> <br></br>char keys[ROWS][COLS] = { {'1','2','3','A'}, {'4','5','6','B'}, {'7','8','9','C'}, {'*','0','#','D'} }; <br></br>byte rowPins[ROWS] = {A3, A2, A1, A0}; //connect to the row pinouts of the keypad - four in a row <br></br>byte colPins[COLS] = {MOSI, SCK, A5, A4}; //connect to the column pinouts of the keypad - four in a row <br></br>Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); <br></br><br></br><br></br>void setup() { <br></br><br></br>     Serial.begin(9600); <br></br>} <br></br><br></br><br></br>void loop() { <br></br>     char key = keypad.getKey(); <br></br><br></br>     if (key != NO_KEY){ <br></br>          Serial.println(key); <br></br>     } <br></br><br></br>}
```

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

Product Weight: 21.2g / 0.7oz

## Images

- [Product image 1](https://core-electronics.com.au/media/catalog/product/3/8/3844-00_1.jpg)
