Keypade & Touchpad

Promoções

Produtos visualizados

4 x 4 Matrix Array 16 Key Membrane Ver maior

Teclado menbrana matrix fino 4x4

BE15000074

Novo produto

4 x 4 Matrix Array

Mais detalhes

5,00 € com IVA

Adicionar à Lista de desejos

Mais informação

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);
}
}

Acessórios

Clientes que compraram este produto também compraram: