Jump to content

Recommended Posts

Posted

Hey all,

I just finished building my LCD screens for the MFD's and getting the hang of it(well, tbh just attaching a screen and make the MoniterSetup file was not too hard). Having the LCD screens is awesome and now i want more lol

My new project is now trying to build a button box for the AHCP for the A10C II.

I'm going to try to make a matrix using online tutorials, but have never done something like that before. So if anyone has tips that would be awesome. Attached I added the diagram I drew (along with diodes), would this setup work?

Thanks all!

 

 

wires.png

Posted (edited)

No. As all your switches are connected to ground, your microcontroller cannot discern between any switch on the same row. See Example below:

 

matrix.jpg

 

All connections must go to digital pins (most analoge pins are usable as digital) so when sending voltage to the column it can be sensed on the corresponding row. Diodes are not shown but as you want to use several switches at the same time they are needed. It does not matter if they are attached to the columns or the rows. as long as you pay attention to the direction of the flow of electricity (comes from the column and goes to the row). Three-position-switches may be confusing at first, as each is connected to two rows and one column (or two columns and one row) but with a little understanding of the principle of matrixes you will soon master this. Have fun and something to read:

http://pcbheaven.com/wikipages/How_Key_Matrices_Works/

 

Edited by crash test pilot
Posted
1 hour ago, crash test pilot said:

No. As all your switches are connected to ground, your microcontroller cannot discern between any switch on the same row. See Example below:

 

matrix.jpg

 

All connections must go to digital pins (most analoge pins are usable as digital) so when sending voltage to the column it can be sensed on the corresponding row. Diodes are not shown but as you want to use several switches at the same time they are needed. It does not matter if they are attached to the columns or the rows. as long as you pay attention to the direction of the flow of electricity (comes from the column and goes to the row). Three-position-switches may be confusing at first, as each is connected to two rows and one column (or two columns and one row) but with a little understanding of the principle of matrixes you will soon master this. Have fun and something to read:

http://pcbheaven.com/wikipages/How_Key_Matrices_Works/

 

 

Thank you for the info. I'll start reading a bit more first!

  • Like 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...