Pages: [1]   Go Down
Author Topic: How to use membrane matrix keypad??  (Read 754 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys! I'm a newbie in using arduino and I have a school experiment about it. I have to use a "membrane matrix keypad" and two led lights (1 red and 1 green). If the password typed on the keypad is correct, the green light will turn on but if the password is incorrect, the red light will turn on. I don't have an idea how to use the keypad and its program that's why i can't finish the experiment. I need help from you guys as soon as possible. Thank you!! smiley-neutral
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 291
Posts: 25899
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Without your code and accurate descriptions of your hardware, it is going to be hard to help you.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 144
Posts: 5378
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys! I'm a newbie in using arduino and I have a school experiment about it.

We can't do your homework for you, only give clues. What have you done so far?
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Offline Offline
Full Member
***
Karma: 1
Posts: 135
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The way membrance keypad works is to short two contacts, one belongs to "row" and one belongs to "column". Most of the time you need to "scan" the matrix by, for example, making row to be output and columns to be input. Set only one row to logic high and read columns (pulled down by resistors), and then next row, and so on.

If row 1 is logic high (other rows to low) and column 2 of row 1 is pressed, the column 2 reading will be high, so you know row 1 column 2 button is pressed.

Of course, you need to debounce all buttons so that you do not get false readings.

Like many said, we are not here to do your homework, so go and have fun now :-)
Logged

Search for "mjkzz" on eBay :-)

Offline Offline
Sr. Member
****
Karma: 6
Posts: 429
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are several ways to do this.

Type "Arduino Keypad" into Google, to see how to do it. smiley-wink
Logged

Pages: [1]   Go Up
Jump to: