4x4 Matrix Membrane Keypad Using Arduino Nano

by MrSottong in Circuits > Arduino

4469 Views, 3 Favorites, 0 Comments

4x4 Matrix Membrane Keypad Using Arduino Nano

IMG_6925.JPG

4x4 Matrix Membrane Keypad is a keypad module that is often used to make Arduino projects, such as calculators, password input and others.

This is the features of this keypad:

  • Very thin design
  • easy to use in any microcontroller

Key Specification:

  • Maximum voltage 24VDC, 30mA
  • 8-pin access to 4x4 matrix
  • 4x4 key (4 Row & 4 Column)
  • Operating temperature: 0 to 50°C

Required Components

IMG_6926.JPG
IMG_6882.JPG
IMG_6885.JPG
IMG_6886.JPG

This is a list of required components:

Required Library:

Connect the Keypad to Arduino

P_20190924_205442.jpg
P_20190924_205520.jpg

Follow the instructions below to connect the keypad to Arduino

Keypad to Arduino

1. Row 0 ==> D5

2. Row 1 ==> D4

3. Row 2 ==> D3

4. Row 3 ==> D2

5. Col 0 ==> D11

6. Col 1 ==> D10

7. Col 2 ==> D9

8. Col 3 ==> D8

Programming

d.png

Make sure the "Adafruit Keypad" library has been added in the Arduino IDE. If you don't know how to add a library, see this article "Add library to Arduino"

OK, back to the topic
The way to open the sketch is like this:

  • Open Arduino IDE
  • Click File > Examples > Adafruit Keypad > keypad_test
  • Click Upload.


Result

Untitled.png
P_20190924_205235.jpg

To see the results, open the serial monitor.

The result will be like this:

For example, the '1' button on the keypad is pressed, the monitor serial will display "1 pressed". Then when the '1' button on the keypad is released, the serial monitor will display "1 released".

Thank you for reading this article, see you in the next article. if there are questions, just write in the comments column