4×4 Keyboard for Arduino

by Linksprite in Circuits > Arduino

3437 Views, 24 Favorites, 0 Comments

4×4 Keyboard for Arduino

图片116.png

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: Part List

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

Step 2: Wiring Diagram

图片79.png

Step 3: Test Code

Test code in here : 

http://learn.linksprite.com/arduino/4x4-keyboard-for-arduino/

Step 4: Run Test

图片311.png
图片411.png
图片510.png

(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: Download Code