Lesson 44--Microduino Matrix keyboard
|Language:||English • 中文|
Understanding the principle of matrix keyboard and learn how to use Microduino read each key's value of matrix keyboard
Matrix keyboard's structure is similar to the matrix of the keyboard group. When many keys in the keyboard, in order to reduce the occupation of the I/O port, we can use matrix keyboard. Such as the 4 * 4 matrix keyboard has 8 signal lines, then can control 16 buttons.
Each the horizontal and vertical line in the intersections are not directly connected, but through a button to connect them.
Column line through the resistance connects to power anode, and set the Microduino I/O ports connected to row line as output, the column line connected the I/O port as input. So when there is no button was pressed, all the input is high level, on behalf of no key pressed. Row line output is low level, once the key was pressed, the input line will be lower, so through reading the input line state can know if there is a key press.
If player don't have the matrix keyboard, you can use the independent keyboard to combine.
Method：From the schematic diagram, we can see that if the first button is pressed, corresponding to the first row line and column line that two wire connected. So we can use a multimeter ohm file to judge, use the pin to connect any two wires respectively, and then press the button, to see if in the conduction state, so that it can distinguish 8 lines how to connect the row and column.
Press the button and observe the OLED, check the value.
Use the Microduino to read the button on matrix keyboard and display the information on OLED. Playser also can make other application, such as combination lock