Interested?

* Indicates a required field

- from

TKU016CT-A100 Arduino Sample Code Guide

4×4 Keypad Arduino Example Programs

These example programs use the libraries included with the Arduino 1.6.7 IDE to send commands to the keypad module.
The demo performed by these sketches emulate interactive keys that activate the embedded buzzer when pressed.

Wiring Example

Circuit Diagram: UART & 4×4 Key-matrix
TKU016CT-A100 Connection diagram for UART Arduino Sample Code
Circuit Diagram: SPI
TKU016CT-A100 Connection diagram for SPI Arduino Sample Code
Circuit Diagram: I2C
TKU016CT-A100 Connection diagram for I2C Arduino Sample Code

Using either an Arduino UNO or Arduino PRO:

  • The only difference between the Arduino PRO and Arduino UNO wiring is the need for level shifting.
  • The Arduino UNO uses 5V communication signals when connected via USB, so a level shifter is needed. (Example Sparkfun BOB-12009)
  • The Arduino PRO is programmed with a TTL-232R-3V3 with the power (RED) wire cut. An external 3.3V power supply is required as well.
  • A level shifter is not required for the Arduino PRO.

Sample Code (Arduino Sketches) for Arduino 1.6.7 IDE

  • Copy the following sample code and upload it to your Arduino

Right-click in the code area to copy all of the source code to your clipboard.

Right-click in the code area to copy all of the source code to your clipboard.

Right-click in the code area to copy all of the source code to your clipboard.