Introduction: 4×4 Keyboard for Arduino

In Arduino app system, keyboard is one of the indispensable component to
man-machine dialogue. When the button is less, we can connect the button to the I/O port of Arduino. While there need more button and the I/O resource of Arduino is limit, it is better to choose the matrix keboard. Next I will demo that use the 4 * 4 keyboard on Arduino.

Step 1: Step 1: Part List

  1. 1 x Arduino UNO
  2. 1 x 4*4 keyboard
  3. 8 x Wire

Step 2: Step 2: Wiring Diagram

Step 3: Step 3: Test Code

Test code in here :

Step 4: Step 4: Run Test

(1) Connect the wiring according to the wiring diagram

(2) Download the Arduino library in attachment and save it to the Arduino IDE libraries:

(3) Open the ArduinoIDE and put the test code into the IDE, compile and download:

(4)Open the serial Monitor, set the baud rate to 9600, press any key and you will see the corresponding key value in the monitor;

Step 5: Step 5: Download Code