3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Analog Keypad Backpack

Analog Keypad Backpack
You know those ole 12 button keypads which are very easy to use but eat microcontroller IOs like they are candy? Well now you can have your cake and eat it with this simple backpack board which will convert one of these hungry beasts down to consuming only a single analog input rather than 12 digital inputs.

You will need:
  • 12 button common terminal keypad. 1x
  • 1k ohm resistor, 12x
  • 12k ohm resistor, 1x
  • Protoboard (approx 1.5" x 1.5"), 1x
  • Soldering iron & solder
  • Hookup wire (red - approx 2"), x1
  • Hookup wire (black - approx 2"), x12
  • Hookup wire (red,black,yellow - approx 5"), x3
Optional:
  • Molex crimp pins, 3x
  • Molex female connector, 1x
  • Molex male connector, 1x
  • Hot glue gun
  • Mini vise

 
Remove these adsRemove these ads by Signing Up
 

Step 1Circuit Design

Circuit Design
The circuit is a simple series resistor ladder + voltage divider.
The common terminal of the keypad is held high through a 12k pullup resistor.
Each key terminal of the keypad is connected to a 1k resistor.
That resistor is in turn connected in series with its neighbor in a ladder twoards the common terminal.
The end of the resistor ladder is tied to ground.
The signal line is a voltage divider with its reference point between the 12K resistor and the resistor ladder.
Depressing a key causes a chain of resistors with a unique value to be introduced into the voltage divider, giving each key a unique analog value.

Eagle schematic files are attached for ease of reproduction on a protoboard or single sided etched copper board.
« Previous StepDownload PDFView All StepsNext Step »
15 comments
Dec 19, 2011. 1:03 AMDominion-Network says:
Here's an image of my DIY keypad

http://dominion-network.co.uk/projectstuff/keypad.jpg

I'm currently in the process of neatening it up so it looks a lot better, and so I'm also able to 'waterproof' it with a diy membrane.
Nov 17, 2011. 1:47 PMDominion-Network says:
Hey, it's me again, I'm trying to get your library to work with this library
http://www.arduino.cc/playground/Code/Password
But I'm not having any luck, could you give me a hand?
Nov 18, 2011. 12:00 AMDominion-Network says:
I don't have a fancy one like you, I've scratch built mine (Working on turning it into an instructable) and it works perfectly (All the buttons match up with the keys) and I've not really got any code (None that work anyway) other than the two separate libraries, I've tried combining the "PasswordKeypad" example with the analog keypad library but doesn't seem to want to work and I'm currently at a loss.
Nov 18, 2011. 8:09 PMDominion-Network says:
I sent the stuff you requested, it'll be from "webmaster[at]dominion-network[dot]co[dot]uk"
Nov 18, 2011. 9:20 AMDominion-Network says:
I haven't been able to make it into a solder board project yet (the board hasn't been delivered yet), I've currently got buttons 1 through 9 on a solderless breadboard at the moment.

But yeah I'm trying to capture input from the analog keypad and pass it through to the password library and so far everything I've attempted has failed...

Once I've had my dinner I will take the required photos and I will email them as well as the code I've got.
Jul 14, 2011. 11:19 AMDominion-Network says:
By any chance would you be able to take some more photos of the resistors? I'm trying to design a PCB and some of the steps are a little confusing for example the placement of the black, red and yellow wires, a diagram would be great.
Jul 3, 2011. 2:29 PMDominion-Network says:
Thank you for this!, I've read an instructable (look for Arduino 3 wire Matrix Keypad) saying how to do this, but it never gave any actual step by step instructions with images, I've bookmarked this and when I get one of these keypads I'll be doing this.

Where did you get your keypad from? was it Maplins? (UK) or Sparkfun? (USA)
Jul 6, 2011. 4:30 AMDominion-Network says:
I have another question about that keypad, do you have a datasheet for it? I'm looking at creating a disposable one for a project (Don't want to pay money for a keypad that may get damaged in this particular project)
Jul 4, 2011. 12:26 AMDominion-Network says:
Thanks for the link and the information, I can't wait to do/use this for my project

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!
1
Followers
3
Author:declanshanaghy(350 Nice)
I Make stuff. Use Arduino with DIY manufactured PCBs. Love the precision of CNC, Getting into 3D Printing. Someday I'll have a CNC mill. :-)