513
edits
No edit summary |
No edit summary |
||
Line 116: | Line 116: | ||
I was mostly interested in using the matrix as a variable resistor rather than using it as a „multiple digital pin input device“.<br> | I was mostly interested in using the matrix as a variable resistor rather than using it as a „multiple digital pin input device“.<br> | ||
I achieved that by connecting different resistor values in between each contact of the vertical and the horizontal button lines. <br> | I achieved that by connecting different resistor values in between each contact of the vertical and the horizontal button lines. <br> | ||
In the end a voltage divider helped to create different voltage changes for the arduinos analog input.<br><br> | In the end a voltage divider helped to create different voltage changes for the arduinos analog input.<br> | ||
The matrix is actually meant to be used as a "multiple digital pin input / output interface" like shown on [http://pcbheaven.com/wikipages/How_Key_Matrices_Works/ this website].<br> | |||
<br><br> | |||
This way every button represents a certain value in the analog input of the arduino.<br> | This way every button represents a certain value in the analog input of the arduino.<br> | ||
By doing that I discovered a major problem: some of the values almost overlapped. In addition to the arduinos analog input pin generated quite some noise.<br> | By doing that I discovered a major problem: some of the values almost overlapped. In addition to the arduinos analog input pin generated quite some noise.<br> |
edits