4x4 Matrix Keypad Symbol

4x4 Matrix Keypad symbol
The 4x4 Matrix Keypad symbol (IEC 60617 / ANSI Y32.2).

Definition: The 4×4 Matrix Keypad symbol represents a 16-key input device organised in four rows and four columns, where each key connects one row line to one column line, used in circuit diagrams to indicate a multiplexed key-scanning interface that reads 16 keys using only 8 microcontroller GPIO pins.

Also known as: 4x4 keypad, matrix keypad 4x4, 16-key keypad, button matrix, membrane keypad, numeric keypad module.

What the 4x4 Matrix Keypad symbol means

The 4×4 Matrix Keypad symbol denotes a membrane or PCB-mount input device that arranges 16 pushbutton keys at the intersections of a 4-row × 4-column wire matrix. Only 8 connection lines are needed — 4 row pins (R1–R4) and 4 column pins — to scan all 16 keys, exploiting multiplexed row/column scanning to reduce GPIO usage. The symbol shown exposes the R1–R4 row pins.

In schematic diagrams the matrix keypad symbol marks the user-input interface of a microcontroller-based project. The host MCU drives each row pin low in turn and reads the column pins to detect which key is pressed — a technique called row-scanning that requires only simple GPIO operations and is supported by standard keypad-scanning libraries on Arduino, STM32, and ESP32 platforms.

How to identify the 4x4 Matrix Keypad symbol

The symbol is drawn as a rectangular block labelled '4×4 Matrix Keypad' or 'Keypad 4×4'. Four row pins (R1, R2, R3, R4) emerge from the left or right side of the block, representing the four row drive lines. In a complete pinout, four column pins (C1–C4) also appear on the opposite side. The block may show a 4×4 grid of squares inside to represent the 16 key positions.

Function in a circuit

The matrix keypad scans keys by multiplexing: the MCU drives one row line low at a time while holding the others high, then reads all four column lines. A pressed key creates a conductive path from the driven row to one column, pulling that column pin low. The MCU identifies which key was pressed from the combination of the active row and the low column. This process cycles through all four rows at high speed (typically hundreds of times per second), providing reliable detection with software debouncing.

Standards: IEC vs ANSI

IEC 60617IEC 60617 does not define a dedicated symbol for a matrix keypad. It is represented as a labelled functional block in system diagrams. Individual keys within the matrix conform to the IEC 60617-07 switch symbol (momentary contact).
ANSI/IEEE 315ANSI Y32.2 / IEEE 315-1975 provides no dedicated matrix-keypad symbol; the device appears as a labelled module block. Individual momentary contacts follow IEEE 315 Section 13.6 (pushbutton switches).
Key differenceBoth IEC and ANSI represent the matrix keypad as a labelled functional block — no standard-specific glyph difference exists for this module.

Terminals / pins

PinName
r1R1
r2R2
r3R3
r4R4

Typical values

Number of keys: 16 (4×4 layout). Operating voltage: 3.3–5 V. Pin count: 8 (4 rows + 4 columns). Key current: <1 mA (logic-level driven). Contact resistance: <100 Ω (membrane type). Keypad typical dimensions: 69 × 77 mm (standard module). Operating temperature: −20 °C to +70 °C.

Where the 4x4 Matrix Keypad symbol is used

Example

In an Arduino door-lock project, the 4×4 matrix keypad symbol shows R1–R4 connected to Arduino digital pins 9–6 (row drive outputs) and C1–C4 connected to pins 5–2 (column sense inputs with internal pull-ups). The Arduino runs the Keypad library, scanning rows at 10 ms intervals. When the user presses the correct 4-digit PIN sequence, the sketch drives a relay coil connected to an electric door strike, unlocking the door.

Key facts

Frequently asked questions

What does the 4x4 matrix keypad symbol mean in a circuit diagram?

The 4×4 matrix keypad symbol represents a 16-key input device connected to a microcontroller via 8 pins (4 row pins and 4 column pins). It indicates that the circuit has a user-entry interface for PINs, numbers, or menu navigation, and that the MCU uses row-scanning to read key presses efficiently.

What do the R1, R2, R3, R4 pins on the matrix keypad symbol mean?

R1, R2, R3, and R4 are the four row drive lines of the keypad matrix. The microcontroller drives each row pin low in sequence (row scanning) while holding the others high. When a key is pressed, it connects the active row to one of the four column lines, and the MCU detects which column went low to identify the key.

How does a 4x4 matrix keypad work?

The keypad matrix places each of the 16 keys at a unique row-column intersection. During scanning, the MCU drives row R1 low and reads columns C1–C4. If any column reads low, the key at that (R1, Cx) position is pressed. The MCU repeats this for rows R2, R3, and R4 in rapid succession, cycling all 16 key positions many times per second.

How many GPIO pins does a 4x4 matrix keypad require?

A 4×4 matrix keypad requires 8 GPIO pins: 4 row pins (configured as outputs) and 4 column pins (configured as inputs, typically with internal pull-up resistors enabled). Without matrix scanning, 16 separate keys would each need one GPIO pin, so the matrix arrangement saves 8 pins.

What is the difference between a 3x4 and a 4x4 matrix keypad?

A 3×4 matrix keypad has 12 keys (the standard telephone layout: 0–9, *, #) using 7 pins (3 rows + 4 columns). A 4×4 matrix keypad has 16 keys — the 12 phone keys plus A, B, C, and D function keys — using 8 pins (4 rows + 4 columns). The 4×4 version is more common in maker and security projects requiring additional function keys.

What standard defines the matrix keypad symbol?

Neither IEC 60617 nor ANSI Y32.2 / IEEE 315 defines a dedicated symbol for a matrix keypad module. Both standards represent it as a labelled functional block in system diagrams. Individual momentary switch contacts within the matrix follow IEC 60617-07 (momentary contact switch) and IEEE 315 Section 13.6.

Place the 4x4 Matrix Keypad symbol on a wiring diagram or schematic in the free online circuit diagram maker — no download required.