Kjeld900 Posted April 15, 2024 Posted April 15, 2024 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!
crash test pilot Posted April 15, 2024 Posted April 15, 2024 (edited) No. As all your switches are connected to ground, your microcontroller cannot discern between any switch on the same row. See Example below: 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 April 15, 2024 by crash test pilot
Kjeld900 Posted April 15, 2024 Author Posted April 15, 2024 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: 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! 1
Recommended Posts