Introduction: Use Linker 1×2 Button Matrix on Arduino

Linker 1×2 button matrix  has two 6*6*5cm buttons, and will be more convenient in Arduino related projects.

Step 1: Part List

1  x  Linker 1×2 button matrix
1  x  Arduino Uno
1  x  20cm cable for linker kit
1  x Liker base shield for Arduino

Step 2: Wiring Diagram

Connect the Linker 1×2 button matrix to the base shield  [D2 D3] using a  linker cable.

The base shield is installed on a Arduino Uno.

Connect Arduino Uno to PC through a USB cable.

Step 3: Test Code

    > File Name: Linker_1x2_button_matrix.c
    > Author: Darren
    > Created Time: Fri Jan  1 00:05:19 2010

#include "Arduino.h"

const int s1_pin = 3;
const int s2_pin = 2;

void setup(){
    pinMode (s1_pin, INPUT);
    pinMode (s2_pin, INPUT);
        Serial.begin (9600);

void loop (){
    if(digitalRead (s1_pin)){
        Serial.println ("buttom_1 have been hold down!");
    delay (50);
    if(digitalRead (s2_pin)){
        Serial.println ("buttom_2 have been hold down!");
    delay (50);


Step 4: Test Result

Press the left button, the screen will print “button_2 has been hold down!”

Press the right button, the screen will print”button_1 has been hold down!”


About This Instructable




More by Yanny Guo:Use pcDuino as Photo Booth ControllerUse Si4703 FM Breakout Board on Arduino UnoUse SIM900 GPRS/GSM Shield on pcDuino
Add instructable to: