Tuesday, 20 May 2014

How would I use this 12 key keyboard?


I'm trying to make this simple code lock circuit, and I ordered this keyboard for it.


Keyboard


However, there isn't any kind of manual for it, and I simply don't understand how it works.


Here's a larger picture of it (sorry for the horrible soldering, I've a bad solder, and I probably do it wrong also.)


enter image description here


So there's 7 wires on it currently, but how do I actually use this thing?



Answer




There are four rows and three columns which make a matrix of 12 possible connections. Each switch is located at one of the cross-points of the columns and rows: -


enter image description here


If you "read" the value of the voltages on a single column and activate each row with a positive voltage (not together but in turn) you can deduce which of the four switches is pressed in that column.


Read the voltage for each of the three columns and you can deduce which button is pressed of the 12. Two buttons being pressed can confuse things so be aware of that.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...