Skip to Content

4x4 Matrix Membrane Keypad

https://circuitsnepal.odoo.com/web/image/product.template/32/image_1920?unique=260b304

The compact 4x4 keypad module for easy input and control. Features 16 tactile keys arranged in a 4x4 matrix. 1 Ideal for menu navigation, number entry, and custom user interfaces. 2 Supports both row and column scanning techniques for flexible implementation. Perfect for prototyping and embedded systems.  

0.00 ₨ 0.0 NPR 0.00 ₨

0.00 ₨

Not Available For Sale

This combination does not exist.

Free Delivery is available on orders worth Rs.2000 or more!

Terms and Conditions

Shipping: 2-3 Business Days

Product Description:


This 4x4 membrane keypad offers a simple and reliable input solution for your microcontroller projects. Its 16 tactile buttons, arranged in a 4x4 matrix, provide a user-friendly interface. The adhesive backing allows for easy mounting on various surfaces.

SpecificationValue
Keypad Layout4x4 Matrix
Key Quantity16
Key Labels0-9, *, #, A-D
Output TypeDigital
Interface8-pin header
DimensionsApproximately 50mm x 40mm
InterfaceDigital (requires digital pins on your microcontroller)

Using the 4x4 Keypad Module with Arduino

Required Components:

  • Arduino board (e.g., Uno, Nano)
  • 4x4 Keypad Module
  • Jumper wires

Wiring:

  1. Power: Connect the VCC pin of the keypad to the 5V pin of the Arduino.
  2. Ground: Connect the GND pin of the keypad to the GND pin of the Arduino.
  3. Data Lines: Connect the 8 data lines (D0-D7) of the keypad to digital pins on the Arduino (e.g., 2-9).

Arduino Code:

C++

const int rowPins[4] = {2, 3, 4, 5};
const int colPins[4] = {6, 7, 8, 9};

void setup() {
  for (int i = 0; i < 4; i++) {
    pinMode(rowPins[i], INPUT_PULLUP);
    pinMode(colPins[i], OUTPUT);
  }
  Serial.begin(9600);
}

void loop() {
  for (int row = 0; row < 4; row++) {
    for (int col = 0; col < 4; col++) {
      digitalWrite(colPins[col], LOW);
      if (digitalRead(rowPins[row]) == LOW) {
        Serial.print("Key pressed: ");
        Serial.println(row * 4 + col);
        delay(200); // Debounce delay
      }
      digitalWrite(colPins[col], HIGH);
    }
  }
}

Explanation:

  1. Row and Column Pins: The keypad is connected in a matrix format, where each row and column is connected to a digital pin on the Arduino.
  2. Scanning: The code scans each row and column sequentially to detect key presses.
  3. Debouncing: The delay(200) is added to debounce the keypresses, preventing multiple readings for a single press.
  4. Key Identification: The pressed key is identified based on the row and column combination.

This code provides a basic framework for reading keypresses from the 4x4 keypad. You can modify it to perform specific actions based on the pressed key, such as controlling LEDs, motors, or other devices.

Package Includes:


 1x 4x4 matrix Membrane Keypad

Our latest content

Check out what's new in our company !

Your Dynamic Snippet will be displayed here... This message is displayed because you did not provide both a filter and a template to use.