Robot Pi Shop

4×4 Matrix 16-Key Membrane Keypad Module

$0.99

Shipping calculated at checkout.

Quantity

The 4×4 Matrix Keypad Module is a compact input device featuring 16 push buttons arranged in a 4-row × 4-column matrix. It is ideal for adding numeric, menu, password, and control inputs to Arduino, ESP32, Raspberry Pi, and other microcontroller-based projects.

Instead of requiring a separate connection for every button, the matrix design uses only 8 pins to control all 16 keys — four row pins and four column pins.

The module comes with pre-soldered pin headers, making it easy to connect to a development board or breadboard.

Key Features

  • 4×4 matrix keypad
  • 16 push-button keys
  • Uses only 8 I/O pins
  • 4 row connections
  • 4 column connections
  • Compact and space-saving design
  • Pre-soldered pin headers
  • Simple interface with microcontrollers
  • 4 × M3 mounting holes
  • Easy to integrate into DIY electronics projects
  • Suitable for Arduino, ESP32, Raspberry Pi, and other controllers

How It Works

The 16 buttons are arranged electrically as a matrix consisting of 4 rows and 4 columns.

When a button is pressed, it creates a connection between its corresponding row and column. The microcontroller identifies the pressed key by scanning the rows and reading the state of the columns.

For example, the controller activates each row one at a time and checks the four column inputs. When a connection is detected, the combination of the active row and detected column identifies exactly which button has been pressed.

This matrix configuration allows 16 individual buttons to be monitored using only 8 microcontroller pins.

Pin Configuration

The module has 8 connection pins:

  • R1 – Row 1
  • R2 – Row 2
  • R3 – Row 3
  • R4 – Row 4
  • C1 – Column 1
  • C2 – Column 2
  • C3 – Column 3
  • C4 – Column 4

Pin labeling may vary slightly depending on the module version.

Applications

Ideal for:

  • Arduino projects
  • ESP32 projects
  • Raspberry Pi projects
  • Password entry systems
  • Electronic door locks
  • Security systems
  • Access-control systems
  • Menu navigation
  • Calculator projects
  • Robot control panels
  • DIY electronics
  • Embedded systems
  • Educational electronics projects

Specifications

Type: Matrix Keypad Module
Matrix: 4 × 4
Number of Keys: 16
Interface: 8-pin matrix
Rows: 4
Columns: 4
Mounting: 4 × M3 mounting holes
Connection: Pre-soldered pin header
Output Type: Non-encoded matrix
Compatible Platforms: Arduino, ESP32, Raspberry Pi and other microcontrollers