0
\$\begingroup\$

we are trying to built Electronic Locker Which is Controlling by a specific Combinational Password but we have a Problem with (4x4 Switch Matrix Numbering Order)

In the Circuit Diagram the numbering order is Following ,

By default the The Password is Set (0,1,2,3)

enter image description here

But we have a different Numbering order Switch Matrix

In This Switch Matrix How do i use X OR Y Axes Pins According by Circuit Diagram ? Means That i want to set 0123 input from Switch Matrix. enter image description here

\$\endgroup\$

closed as unclear what you're asking by Dmitry Grigoryev, PeterJ, placeholder, Daniel Grillo, uint128_t Apr 29 '16 at 17:08

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • \$\begingroup\$ Just use *0#D as password. In fact, I don't understand your problem. Do you want to hardcode a password? But if so, your schematic is incomplete. You probably won't get useful answers. \$\endgroup\$ – Ariser Apr 29 '16 at 7:35
  • \$\begingroup\$ Look i have different type numbering key matrix. as i mention but in the circuit diagram the key matrix numbering is different so i confuse which one is use. the key matrix i have as you looked the bottom numbering is *0#d but in the circuit diagram 0123. \$\endgroup\$ – Arsalan Arain Apr 29 '16 at 7:40
1
\$\begingroup\$

We read in your question that your keypad has different matrix connection order than some other one that you see in a schematic. But it is completely unclear why this is of concern. Here are various situations and how you may work around the issue.

  1. If you are making a product from scratch, including your own circuit boards, microcontroller and firmware then you can program your keypad to operate as you wish. If some type of positional translation of key positions to actual code represented is required then just do it in your firmware.

  2. If you are copying someones design using their circuit board and microcontroller firmware then just wire in the keypad's 8 connections as is. The only thing that changes is the physical position of each one of the buttons. If there is any specific button that needs to be decoded a certain way (i.e. such as when you press the 1 that a '1' shows up on a display) then simply adjust the reference firmware to translate the keypad codes from the keypad scanning module. If you so not have the source code for the reference firmware then quite possibly you may be doing something illegal and should revert to #1 above.

  3. If you are trying to repair an existing unit because the keypad on the device is damaged or missing then you have limited choices. One is to just let the keys of the replacement keypad work as they will map (although if there is a display the key press may not match the display). Another choice is to set aside your keypad and source in another one that has the same mapping as the original. And finally you could use a label printer to print out new button legend stickers which you place on each button of the replacement keypad.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.