4x4 Matrix Membrane Keypad Using Arduino Nano

About: someone who likes electronics

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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Required Components

This is a list of required components:

Required Library:

Step 2: Connect the Keypad to Arduino

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

Step 3: Programming

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.


Step 4: Result

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

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    Discussions