Keszoox
12-Key 4×3 Matrix Membrane Switch Keypad 5PCS | 0–9 * # Flexible Keyboard for Arduino Microcontroller
12-Key 4×3 Matrix Membrane Switch Keypad 5PCS | 0–9 * # Flexible Keyboard for Arduino Microcontroller
Couldn't load pickup availability
12-Key 4×3 Matrix Membrane Switch Keypad — 5PCS | Arduino & Microcontroller Compatible
A compact, flexible 12-key 4×3 matrix membrane keypad providing numeric input (0–9) plus * and # keys for Arduino, ESP32, STM32, and any microcontroller project requiring a simple, low-profile keypad interface. The matrix scanning architecture reduces the required GPIO pins from 12 (one per key) to just 7 (4 rows + 3 columns) — making it ideal for microcontrollers with limited I/O. The thin, flexible membrane construction and self-adhesive backing allow mounting on curved or flat surfaces, enclosure panels, and project boxes. Supplied in a 5-piece pack for prototyping and small production runs.
Specifications
| Key Layout | 4 rows × 3 columns (12 keys total) |
| Key Labels | 1 2 3 / 4 5 6 / 7 8 9 / * 0 # |
| Interface | 7-pin ribbon cable (4 row + 3 column) |
| Construction | Flexible membrane (polyester) |
| Mounting | Self-adhesive backing |
| Operating Voltage | 3.3V – 5V (compatible with Arduino and ESP32) |
| Quantity | 5PCS per pack |
| Origin | Mainland China |
How Matrix Keypads Work — Why 7 Pins for 12 Keys
A matrix keypad arranges keys in a grid of rows and columns. Instead of one wire per key (12 wires for 12 keys), the matrix uses shared row and column wires:
- 4 row wires + 3 column wires = 7 wires total for 12 keys
- The microcontroller scans by driving each row LOW in turn and reading which columns go LOW
- The intersection of the active row and active column identifies the pressed key
- This scanning happens faster than human key press speed, so simultaneous key detection is reliable
Pin Assignment (7-Pin Ribbon Cable)
| Pin | Function |
|---|---|
| 1 | Row 1 (keys 1, 2, 3) |
| 2 | Row 2 (keys 4, 5, 6) |
| 3 | Row 3 (keys 7, 8, 9) |
| 4 | Row 4 (keys *, 0, #) |
| 5 | Column 1 (keys 1, 4, 7, *) |
| 6 | Column 2 (keys 2, 5, 8, 0) |
| 7 | Column 3 (keys 3, 6, 9, #) |
Key Features
- ✅ 12 keys in 7 GPIO pins — matrix scanning minimises microcontroller I/O usage
- ✅ Flexible membrane construction — thin, lightweight, mounts on flat or slightly curved surfaces
- ✅ Self-adhesive backing — peel-and-stick installation on enclosure panels and project boxes
- ✅ 3.3V and 5V compatible — works with Arduino (5V), ESP32 (3.3V), and STM32 (3.3V)
- ✅ Standard 4×3 layout — compatible with the widely-used Keypad Arduino library
- ✅ 5PCS pack — cost-effective for prototyping and small production runs
Common Applications
- Arduino PIN entry and access control systems
- Password-protected relay and lock control
- Numeric data entry for LCD display projects
- Calculator and numeric input projects
- Alarm system keypad
- Industrial HMI numeric input
- Vending machine and kiosk numeric entry
- Safe and locker combination entry
Arduino Quick Start
- Install the Keypad library by Mark Stanley via Arduino Library Manager.
- Connect the 7-pin ribbon cable to 7 Arduino digital pins (e.g., D2–D8).
- Define the row and column pin arrays in your sketch.
- Use
keypad.getKey()to read the pressed key character.
#include <Keypad.h>
const byte ROWS = 4, COLS = 3;
char keys[ROWS][COLS] = {{'1','2','3'},{'4','5','6'},{'7','8','9'},{'*','0','#'}};
byte rowPins[ROWS] = {2,3,4,5};
byte colPins[COLS] = {6,7,8};
Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);
void loop() { char key = keypad.getKey(); if (key) Serial.println(key); }
Frequently Asked Questions
Q: Can I detect multiple simultaneous key presses?
A: Basic matrix keypads without diodes are susceptible to “ghosting” (false key detection) when 3 or more keys are pressed simultaneously. For single key press applications (PIN entry, numeric input), this is not an issue.
Q: Is the ribbon cable connector compatible with standard breadboards?
A: The ribbon cable has 2.54mm pitch pins that plug directly into a standard breadboard or female Dupont connector headers.
Package Contents
- 5× 12-Key 4×3 Matrix Membrane Switch Keypad with 7-pin ribbon cable
