Look a little closer
See the mechanism
How one key appears during a matrix scan
Read the diagram steps
Open switches. At an open intersection the crossing row and column are separate conductors.
One addressed switch. When the key at R2 and C2 closes, C2 responds while R2 is driven low.
Original conceptual matrix convention: hollow circles are open switch positions, and a solid marked intersection connects the selected row to the sensed column.
Diagram basis: AN3407 — Using Matrix Keypad with AVR Devices, 2 Theory of Operation.
Sources: Microchip Technology
Two groups of wires identify many switches
Under a keycap, a physical switch can connect two conductors. A matrix arranges those conductors in shared rows and columns, with a switch between one pair at each key position. Pressing a key connects its own row to its column.
A controller can reuse the same row and column connections across many keys. Each switch has its own pair even though the individual wires are shared.
Sources: Microchip Technology
One selected row makes the column meaningful
In one active-low scanning method, the controller drives one row to a low voltage and reads the column inputs. A column normally held high can read low if a switch in that row has closed. The controller knows which row it selected, so the low column completes the key address.
Then the controller selects the next row and checks again. A key in a different row can use the same column wire, and it will respond on its own row’s turn.

Sources: Microchip Technology
Sources: Microchip Technology
The address becomes a key event
The electrical address identifies a physical switch position. The keyboard’s mapping lets its controller associate that position with the intended key. The visible character can also depend on modifiers and layout. What the matrix itself reports is a change in connection between two conductors.
Sources: Microchip Technology
The thing to remember
A closed switch makes a column respond during one row’s scan, giving the controller a two-coordinate key address.
What this example leaves out
Simple physical switch matrix with one driven row at a time. Other sensing methods and multi-key isolation schemes vary.
Sources & further reading
Source access dates are listed below. Manufacturer descriptions and patents support the specific constructions described, not every product.
- AN3407 — Using Matrix Keypad with AVR Devices, 2 Theory of Operation ↗
Microchip Technology · Retrieved 2026-11-26 · Switch closes a row/column connection. Controller can drive one row at a time and read other-axis wires to identify switch positions.
Simple physical switch matrix. Not all keyboards scan this way, and multi-key handling varies.


