keypad with 14 pins

I tried the keypad with 9 pins by using the libeary code from Arduino Tutorial and it works fine. But I don't know how shold I connect a keypad with 14 pins to an Arduino now. Each key has an output pin with this 14 pins keypad, I don't if this still fits the keypad libeary?

Any one with with keypad with 14pins?

Thanks!!!!

I think the library expects the keys to be organized in a matrix.

If your 14 pin keypad has a pin for each key, you could just hook up each pin to a digital pin on Arduino and read the state of the pin, just as if you were hooking up 14 individual switches.

It would help to know how many buttons there are on the keypad. It would help even more to know how they are wired.

Don

It's a 3x4 keypad, there are 12 buttons, and every button has an output pins. So there are 14 pins, two pins are useless.

If there are 12 buttons, I suspect you need to wire 13 pins.
One for each button + common ground.

As for the library, it does expect a matrix keypad.

I think you're best off following MikMo's advice.

You could actually hold all key states in a single integer. The code might get a little terse though.
[a lot of bit manipulating macros <bitRead,bitWrite>]

Good luck! :slight_smile:

... and every button has an output pins. So there are 14 pins, two pins are useless.

How did you determine this? We could help you more if we were provided with all of the information.

As AlphaBeta has implied each button needs two pins. They may be wired so that all 12 buttons share a common pin in which case there would be 13 pins required. A 4x3 matrix would require 7 pins and a 2x6 matrix would require 8 pins.

Don