Clavier Rigide 16 Boutons (4×4) – Matrice de touches pour Arduino / ESP32

> SKU: ED1-027-01

Clavier rigide 4×4 avec 16 boutons (0–9, A–D, , #), idéal pour les digicodes, menus, interfaces utilisateurs. Compatible Arduino et ESP32. Lecture facile via bibliothèque Keypad.*

TND 5,00

4 in stock

Compare

Description

Clavier rigide 4×4 (16 boutons) robuste avec connecteur en ligne, parfait pour la création de digicodes, menus interactifs et interfaces utilisateur. Compatible avec Arduino et ESP32 via 8 broches. Facile à programmer avec la bibliothèque Keypad. Format compact, idéal pour projets embarqués ou systèmes de contrôle.

Connexion avec Arduino UNO/Nano :

Pin Clavier Fonction Arduino
1 à 8 Lignes et Colonnes D2 à D9 (ou autre GPIO digitale)

Connexion avec ESP32 :

Pin Clavier Fonction ESP32
1 à 8 Lignes et Colonnes GPIO14 à GPIO21 (ou autres GPIO libres)

 

Exemple Code :

#include <Keypad.h>

const byte ROWS = 4;
const byte COLS = 4;

char keys[ROWS][COLS] = {
  {'1','2','3','A'},
  {'4','5','6','B'},
  {'7','8','9','C'},
  {'*','0','#','D'}
};

byte rowPins[ROWS] = {9, 8, 7, 6}; // Relier aux lignes
byte colPins[COLS] = {5, 4, 3, 2}; // Relier aux colonnes

Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);

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

void loop() {
  char key = keypad.getKey();
  if (key) {
    Serial.print("Touche : ");
    Serial.println(key);
  }
}

Reviews (0)

0.0
0
0
0
0
0

Be the first to review “Clavier Rigide 16 Boutons (4×4) – Matrice de touches pour Arduino / ESP32”

There are no reviews yet.

Select at least 2 products
to compare