4×4 Matrix Keypad – 16-Key Black Numeric Keypad
The 4×4 Matrix Keypad is a compact 16-button input device designed for microcontroller, embedded-system, access-control, and electronic interface projects.
It provides the numeric keys 0–9, four function keys A–D, plus * and #, giving a total of 16 individual buttons arranged in a 4-row × 4-column matrix.
The matrix configuration allows all 16 buttons to be read using only 8 microcontroller I/O connections, making it an efficient solution for entering numbers, passwords, commands, menu selections, and other user inputs.
Technical Specifications
-
Product Type: Matrix Keypad
-
Layout: 4 × 4
-
Number of Keys: 16
-
Numeric Keys: 0–9
-
Function Keys: A, B, C, D
-
Additional Keys: * and #
-
Matrix Interface: 4 Rows + 4 Columns
-
Signal Connections: 8
-
Key Type: Tactile / Rubber-Dome
-
Key Color: Black
-
Character Color: White
-
Connection Pitch: 2.54mm / 0.1" on Common Versions
-
Interface Type: Passive Switch Matrix
-
Compatible With: Arduino, ESP32, STM32, Raspberry Pi Pico, AVR, PIC and Other Microcontrollers
16-Key Matrix Layout
The keypad uses the standard 4×4 arrangement:
1 | 2 | 3 | A
4 | 5 | 6 | B
7 | 8 | 9 | C
*** | 0 | # | D**
This layout is particularly useful for applications requiring both numeric input and additional programmable function keys.
How the Matrix Keypad Works
Instead of providing a separate electrical connection for every button, the 16 switches are arranged into four rows and four columns.
When a key is pressed, it electrically connects one row with one column.
A microcontroller scans the rows and columns to determine which intersection is active and therefore which button has been pressed.
This allows 16 buttons to be monitored using only 8 GPIO connections.
Microcontroller Compatibility
The keypad can be interfaced with popular development platforms including:
- Arduino Uno / Mega / Nano
- ESP32
- ESP8266
- STM32
- Raspberry Pi Pico
- PIC
- AVR
- Other GPIO-Based Controllers
Because it is essentially a passive switch matrix, it does not require a communication protocol such as I2C, SPI, or UART.
Typical Applications
The 4×4 keypad is suitable for:
- Password Entry Systems
- Electronic Door Locks
- Access-Control Systems
- Security Systems
- Menu Navigation
- Calculator Projects
- Numeric Data Entry
- Robot Control Panels
- Home Automation
- Industrial Control Interfaces
- Arduino Projects
- Educational Electronics
- Arduino Integration
The 4×4 matrix arrangement is widely supported by Arduino keypad libraries.
The four row connections and four column connections are assigned to GPIO pins, and the software continuously scans the matrix to identify key presses.
This makes the keypad straightforward to integrate into projects requiring PIN codes, menus, numerical values, or user commands.
Important Note
The exact row/column pin order should be verified on the supplied keypad before final wiring, as pin arrangements can differ between manufacturers and keypad versions.
This is a passive matrix keypad rather than a USB or PS/2 computer keyboard. It must be connected to a microcontroller or suitable electronic circuit that scans the row and column signals.
When using a 3.3V controller such as an ESP32 or Raspberry Pi Pico, configure the keypad scanning circuit for the controller's appropriate GPIO logic level.
Package Includes
1 × Black 4×4 Matrix Keypad – 16 Keys