Create own Membrane Matrix Keypad (and hooking it up to the Arduino)

Create own Membrane Matrix Keypad (and hooking it up to the Arduino)
So you want to create your own membrane keypad? Why? well making your own keypad can be useful for many reasons. It's cheap and easy to do, it can be placed in situations where it may be vandalized or stolen without much frustration, It can be fully customized to display whatever you like, and you can make as large a keypad as you like with as many inputs as you can handle. I created my keypad to go on the exterior of my door in residence to act as a keypad entry in much the same way as colin353 did here www.instructables.com/id/An-Electronic-Door-Opener/. I however have some more tricks up my sleeve for this coming up in a later Instructable.

****NOTE: This is not a complete instructable for the time being. It goes through the construction of a keypad fully, however it does not yet fully explain or demonstrate the means to make it useful. This will change

 
Remove these adsRemove these ads by Signing Up
 

Step 1Understanding the Keypad

   The first thing I want you to understand is how this keypad works. I know what you're thinking... Matrix keypad?... "I'm not going to have to take any blue pills to get this to work am I?". No its not that matrix.. The best way to think about a matrix style keypad is to think about battleship.

   A matrix is pretty much a grid like in battleship consisting of rows and columns. each button corresponds to a certain row and column. See the first picture to help illustrate this better. On a 9 button keypad you would use 3 rows and 3 columns. The first button would make a link between Row 1 and Column 1 (R1C1) just like in battleship. 2 would be R1C2, 3 R1C3, and lets say 8 would be R3C2... the rest are illustrated on the image.

   The point of this is instead of having 9 different buttons to wire up, all you would need to do is wire up 3 columns and 3 rows for significantly less wires. The real benefits come when you begin adding buttons. adding another row and column (2 wires) would add 7 buttons... see where I'm going?


« Previous StepDownload PDFView All StepsNext Step »
78 comments
1-40 of 78next »
Aug 1, 2011. 1:13 AMroachburn says:
I combined this instructable with Arduino 3 wire Matrix Keypad : http://www.instructables.com/id/Arduino-3-wire-Matrix-Keypad/
it works very nicely. Thanks for the fun and interesting project. :)
May 10, 2011. 12:47 PMespy13 says:
Does anyone have a copy of the code for the arduino? Can't get it from here it just saves a blank file.

thanks.
May 12, 2011. 5:51 AMespy13 says:
Thank you very much I got the sample working.
Mar 11, 2011. 10:43 PMEngineerJakit says:
If possible, this method could be used to make a modded cell phone part?
Jun 22, 2010. 3:10 PMhvandenberg says:
any progress on hooking up the arduino? im stuck at that step
Apr 21, 2010. 12:13 PMJavi93 says:
Wonderful!
Only got one question: im making a multicolour led cube for my room and I was wondering if that keypad could be used to change the colour? for example: number 1 for red, number 2 for blue, etc.
Feb 21, 2010. 6:39 AMnixoid says:
Why would you post an incomplete Instructable - not cool.
 
Feb 21, 2010. 8:07 AMcharlie_r says:
He did say in the intro that it would be a "work in progress", meaning that it will be added to as he has time and/or new steps completed.


Kudos to you Jorad! Great ideas!
Feb 21, 2010. 11:41 AMGeosync says:
Eaten? The original keypad was eaten?   Great article.  Looking forward to reading more.
Feb 22, 2010. 3:45 AMwocket says:
laminators love to eat anything thats not really flat. perhaps putting the pads on after laminating? I'm a complete nubie to all this make your own electronics stuff, could you explain some basics in this wonderful instructable or point out some links?

love the idea, can't wait to see what it could be used for.

could you make a while typing keypad or rolled up piano keypad this way?
Apr 12, 2010. 6:19 PMmdawg22 says:
there is already a roll-up-piano keyboard. I have one, but sadly i took it apart.

I had a very bad habit of taking things apart a while ago, thinking i could make them better. (Hmmm.... maybe i could combine my cell phone with my psp! oops....)

Now my keyboard is broken. :)
Feb 21, 2010. 3:41 PMbighamms says:
Jarad,  hope you plan to complete this ible.  I am intrigued.  I would like to understand how to use the keypad when complete.  I'm assuming it interfaces with arduino.  I have no clue what arduino is or how to use it, but am guessing that I will know when you complete the projects. thanks in advance, look forward to it.
Mar 10, 2010. 7:33 AMleo_bergamo says:
Dumb question,  but how are you identifying the buttons on the Arduino.  The reason I am asking because my limited electronics knowledge tells me you should have a unique hot and a common ground for each button.  I did not see this.  Could you explain alittle.

This project is very intresting as I am a car PC enthuisiast and have pretty much hand made all the electrical interfaces that went along with it.  I could name about 100 applications for this when it comes to car PC's.  I would like to use an old USB game pad witch I have already tapped the button hots and grounds to all the buttons with small stranded wire.
Apr 12, 2010. 4:36 PMmdawg22 says:
the answer to your first question is that (obviously) Aluminum foil is an electric conductor. There are 6 pieces of foil, 3 for the horizontal and 3 for the vertical.

Lets name these first three A, B, and C. The second three are 1 2 and 3.

The combinations for the 9 numbers are A1, A2, A3, B1, B2, B3, C1, C2, and C3.

the arduino will recognize which Horizontal (A, B or C) input connects to which Vertical (1, 2, or 3) output.

so, assuming that the number 1 is A1, the number 3 is A3, the number 4 is B1 and so on, the combination 6, 7, and 2 would be B3, C1, and A2.

Get it now?
Apr 11, 2010. 6:43 PMmdawg22 says:
WOW! ever since i was little i always wanted one of these bad boys.. i didn't know it was that easy!! Thanks man! 5 stars!
Mar 11, 2010. 11:00 PMratgod says:
Excellent instructable.
I did something like this many years ago when I was interested in building my own computer from scratch, the most dificult part in my eyes were the spacers, I used card with holes in it but the paper+foil would eventually sag. it looks like you used foam type spacers, I will have to try it myself.

I also considered making a trackpad type device (years before they were on laptops) by making very fine strips of foil going vertically on one side and horizontaly on the other, same principal as the keypad but it would have been a nightmare to read electronically and very unreliable.
Feb 21, 2010. 10:27 AMfuntimems says:
I would suggest laminating the front cover (one side) before assembling the keypad entirely.  Or get some wide clear packaging tape and laminate it yourself with tape.
Mar 10, 2010. 7:21 AMleo_bergamo says:
How are you identifying each button press.  Are you measuring resistance.  The reason I ask is not every button has it's own seperate contact.  The ground I imagine would not matter.  The reason I am asking is instead of using an Arduino I want to actually interface it to an old USB game pad wich I have already tapped the ground and button leads with small wire. 

Great project!
Mar 10, 2010. 7:58 AMmagickaldan says:
It's a matrix layout that's how 6 wires can be used to sense the 9 buttons.
Mar 4, 2010. 12:28 PMjamwaffles says:
Genius! All those arduino projects will now have a pro touch :P

Nice work.
Feb 28, 2010. 9:19 AMsniper69jr says:
If i was going to connect some wire to the circuit how would i do that because if you solder it well melt through the tin foil.
Feb 28, 2010. 10:58 PMsniper69jr says:
thanks i will try that
Feb 21, 2010. 7:17 AMladybgood says:
just a thought here... you can buy copper foil in varying widths in rolls at any stained glass supply store. It has adhesive on one side and is used to put the lead around stained glass pieces.
Feb 28, 2010. 12:41 AMstatic says:
 Then again take a look at any inexpensive keypad or a not so inexpensive key pad, chances are you will find copper.
Feb 27, 2010. 10:01 PMamit_sci says:
I'm a rookie so, whats andruido??
Feb 22, 2010. 5:55 PMRakkety Tam says:
 Just finished building this myself. I ended up using felt for my spacers and hot glue to bind it together. 4 out of 9 keys working is pretty good, right?

A very cool project, I want to see the end result when its hooked up to the door.

Another idea I had was writing up some Processing code and getting it to open applications-- a sort of keyboard shortcut. 
1-40 of 78next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
14
Followers
1
Author:TheBestJohn(Check out my Site!)