Musta 4x4-matriisinäppäimistö kalvokytkimillä pääsykoodien syöttöön ja upotettaviin asennuksiin.
SKU: OT2085-B118 Tuotenumero: NA171 EAN: 8126478667001 Sijainti: B11.08
Vaihtoehto
3x4 matriisinäppäimistö musta
€ 3,40
Katso tämä vaihtoehto
Näin kytket 4x4 matriisinäppäimistö musta:n Arduino UNOon tai ESP32:een, mukana esimerkkisketsi, jonka voit ladata heti.
Tämä projekti näyttää, kuinka 4x4-matriisinäppäimistön syötteitä luetaan Arduino Unolla. Kun mitä tahansa näppäimistön painiketta painetaan, sitä vastaava merkki tulostetaan suoraan Serial Monitoriin nopeudella 115200 baud.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : 4x4 Matrix Keypad Input Reader
* Board : Arduino UNO (arduino:avr:uno)
* Parts : Keypad 4x4
* Libraries : Keypad 3.1.1
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
#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};
byte colPins[COLS] = {5, 4, 3, 2};
Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);
void setup() {
Serial.begin(115200);
Serial.println(F("4x4 Keypad Demo"));
Serial.println(F("Press any key on the keypad..."));
}
void loop() {
char key = keypad.getKey();
if (key) {
Serial.print(F("Key Pressed: "));
Serial.println(key);
}
}
Tarvittavat kirjastot: Keypad 3.1.1
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Tämä piiri kytkee 4x4-matriisinäppäimistön suoraan ESP32:n GPIO-pinnihin. Keypad library skannaa matriisin rivit ja sarakkeet käyttäen sisäisiä pull-up-vastuksia. Kun mitä tahansa näppäintä painetaan, sen merkki tulostuu reaaliajassa Serial Monitoriin.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : ESP32 4x4 Matrix Keypad Reader
* Board : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
* Parts : Keypad 4x4
* Libraries : Keypad 3.1.1
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
#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] = {19, 18, 5, 4};
byte colPins[COLS] = {13, 12, 14, 27};
Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);
void setup() {
Serial.begin(115200);
Serial.println("4x4 Keypad Test Ready. Press any key...");
}
void loop() {
char customKey = keypad.getKey();
if (customKey) {
Serial.print("Key pressed: ");
Serial.println(customKey);
}
}
Tarvittavat kirjastot: Keypad 3.1.1
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Näppäimistö muovisilla näppäimillä. Ihanteellinen esimerkiksi pääsykoodin syöttämiseen.
Näppäimistössä on kalvokytkimet ja kaikissa painikkeissa on numerointi 0-9 sekä merkit * ja #. Oikealla on vielä 4 painiketta A, B, C ja D
Moduuli soveltuu erittäin hyvin upotettavaksi. Moduulissa on myös neljä 2mm reikää kiinnitystä varten.
Mitat
Pituus: 6,9cm
Leveys: 6,5cm
Korkeus: 1cm

| Leveys | 6,5 cm |
|---|---|
| Väri | musta |
| Materiaali | muovi |
| Pituus | 6,9 cm |
| Korkeus | 1 cm |
| Reiän halkaisija | 2 mm |
| Asennusreiät | 4 |
| Näppäinten määrä | 16 |
jämäkämpi kuin odotin hintaan nähden
En ole vielä käyttänyt sitä, eikä siihen varmaan vielä hetkeen olekaan tarvetta. Oletan, että kaikki menee hyvin.
Etkö ole tyytyväinen? Sinulla on 30 päivää aikaa vastaanotosta palauttaa tuote.
Kaikki palautuksista
4x4 matriisinäppäimistö musta