Introduction: 12 Key Common Terminal Keypad

This is a quick and dirty way of addressing the pins on a 12 key common terminal keypad with an Arduino type micro-controller dev board. The keypad is branded Seeedstudios and I got it from the RadioShack Electronics Component Pack 2. The "Arduino" today will be an UNO Rev3 clone.

Step 1: Program the Controller

First, take your bare Arduino board without anything hooked up. I strongly recommend programming the board before hooking anything up to it. You don't want to accidentally short an output pin set to high to ground!

Open the code in Arduino's software and compile and upload it.(Or do whatever you do to program your Arduino.)

Step 2: Connect the Pins

The easiest way to do this would be with a solder-less breadboard and jumper wires. Jump each pin directly to the headers on the Uno.

When facing the buttons of the keypad, the leftmost pin will be the common terminal("pin 1" see image). Wire this pin to ground. Then wire the remaining pins from left to right(pins 2-13) to Arduino pins 2-13 respectively.

Now there's nothing left to do but reconnect the Arduino and try it out.

Step 3: Watch the Numbers Fly In!

Open the serial monitor and press some buttons on the keypad. If wired correctly, the compiled code should have Arduino printing the character of the key on a newline in the serial monitor. ( Serial.println("*") )

Comments

author
jgraham26 (author)2015-05-13

Made it, but for practical use, I'm going to add debounce code. Plan to use the keypad for frequency entry to my Arduino Mega ADK multiple output square-wave generator.

152129.jpg
author
DavidE14 (author)jgraham262015-05-13

Nice! Though i have to admit, i was very distracted by that Fluke 199c.

author
jgraham26 (author)DavidE142015-05-13

Thanks. I only wish the Fluke belonged to me (it's a loaner I'm presently using in my home office/lab to develop code for my employer).

author
DavidE14 (author)jgraham262015-05-13

I hope you'll share your debounce code. I didn't bother for simplicity's sake.

author
jgraham26 (author)DavidE142015-05-14

I'll certainly post it here when it's functional.

About This Instructable

3,993views

22favorites

License:

More by DavidE14:Drive the HSD4039GA-1 with Arduino12 Key Common Terminal Keypad
Add instructable to: