4 x 4 Matrix Array 16 Key Membrane
  • 4 x 4 Matrix Array 16 Key Membrane

4 x 4 Matrix Array 16 Key Membrane

0 Review
€4.40
Tax included
BE15000074

4 x 4 Matrix Array

Quantity

  • Política de segurança (editar com o módulo Garantia do cliente) Política de segurança (editar com o módulo Garantia do cliente)
  • Política de entrega (editar com o módulo Garantia do cliente) Política de entrega (editar com o módulo Garantia do cliente)
  • Política de devolução (editar com o módulo Garantia do cliente) Política de devolução (editar com o módulo Garantia do cliente)

Characteristics:

Ultra-thin design
Membrane adhesive for mounting
Interface easy for any microcontroller

 

Application Ideas:

Security systems
Selection Menu
Input for embedded systems

 

Specifications:

Voltage / maximum current: 24 VDC, 30 mA
Interface: 8-pin
Operating temperature: from 0 to 50 ° C
Dimensions: 6.9 x 7.6cm

 

 

Download:

Library Keypad.h for Arduino

 

Code:

#include <Keypad.h>

const byte ROWS = 4; //four rows
const byte COLS = 4; //four columns
//define the cymbols on the buttons of the keypads
char hexaKeys[ROWS][COLS] = {
{ '1', '2', '3', 'A' },
{ '4', '5', '6', 'B' },
{ '7', '8', '9', 'C' },
{ '*', '0', '#', 'D' }
};
byte rowPins[ROWS] = {3, 2, 1, 0}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {7, 6, 5, 4}; //connect to the column pinouts of the keypad

//initialize an instance of class NewKeypad
Keypad customKeypad = Keypad( makeKeymap(hexaKeys), rowPins, colPins, ROWS, COLS);

void setup(){
Serial.begin(9600);
}

void loop(){
char customKey = customKeypad.getKey();

if (customKey){
Serial.println(customKey);
}
}
BE15000074

No customer reviews for the moment.

Add a review

Your email address will not be published.Required fields are marked*

Customers who bought this product also bought: