Skip to main content

Keypad 4 Button Key Module Switch Keyboard For Arduino UNO MEGA2560 Breadboard

Keypad 4 Button Key Module Switch Keyboard For Arduino UNO MEGA2560 Breadboard
Keypad 4 Button Key Module Switch Keyboard For Arduino UNO MEGA2560 Breadboard Keypad 4 Button Key Module Switch Keyboard For Arduino UNO MEGA2560 Breadboard Keypad 4 Button Key Module Switch Keyboard For Arduino UNO MEGA2560 Breadboard



Description: 
 
Can be inserted directly into Arduino uno mega2560, Ideal for linking up to your  Arduino UNO Mini Nano Mega2560 Breadboard etc, or others MCU ( AVR STM32 ARM PIC AT89C51 STC MSP430 STM8 FPGA CPLD etc.) 
 
4-button Common Cathode key module
GND "K1 K2 K3 K4" 4 PIN OUT 2.54mm
Size: 12.7MM x 33MM.
 
Circuit schematics:

Keypad 4 Button Key Module Switch Keyboard For Arduino UNO MEGA2560 Breadboard

Package includes:

1 x Keyboard


Arduino uno/mega2560 Code
 
//******************************************************//
 
 
/*
Arduino_4key_uart
 
This example code is in the public domain.
*/
 
// Define key pin
int K1 = 13;
int K2 = 12;
int K3 = 11;
int K4 = 10;
 
 
// variables will change:
int buttonState = 0; // variable for reading the pushbutton status
 
// the setup routine runs once when you press reset:
void setup() {
// initialize the keys pin as an input.
 
pinMode(K1, INPUT);
pinMode(K2, INPUT);
pinMode(K3, INPUT);
pinMode(K4, INPUT);
 
//Activate key pin internal pull-up resistors
digitalWrite(K1, HIGH);
digitalWrite(K2, HIGH);
digitalWrite(K3, HIGH);
digitalWrite(K4, HIGH);
 
// initialize serial communications at 9600 bps:
Serial.begin(9600);
}
 
// the loop routine runs over and over again forever:
void loop() {
 
buttonState = digitalRead(K1);
if(!buttonState)Serial.print("k1 n" );
do
{
buttonState = digitalRead(K1);
}
while(!buttonState);//Wait button release
 
buttonState = digitalRead(K2);
if(!buttonState)Serial.print("k2 n" );
do
{
buttonState = digitalRead(K2);
}
while(!buttonState);//Wait button release
 
buttonState = digitalRead(K3);
if(!buttonState)Serial.print("k3 n" );
do
{
buttonState = digitalRead(K3);
}
while(!buttonState);//Wait button release
 
buttonState = digitalRead(K4);
if(!buttonState)Serial.print("k4 n" );
do
{
buttonState = digitalRead(K4);
}
while(!buttonState);//Wait button release
 
delay(100);
}
    
 //******************************************************//



















Keypad 4 Button Key Module Switch Keyboard For Arduino UNO MEGA2560 Breadboard See detail


Popular posts from this blog

TTGO 0.96 Inch ESP32 V2.0 OLED WiFi Module + Bluetooth Double ESP-32 et OLED 4 MB For Arduino

Get TTGO 0.96 Inch ESP32 V2.0 OLED WiFi Module + Bluetooth Double ESP-32 et OLED 4 MB For Arduino Features:   1. Main control chip uses ESP32, Tensilica dual core processor, clocked at 240 MHz, computing capacity of up to 600 DMIPS, 520 SRAM, 802.11 KB chip b/g/n HT40 Wi-Fi transceiver, baseband, and LWIP protocol stack, Bluetooth (Bluetooth dual-mode integrated traditional and BLE low-power Bluetooth) 2. Onboard 4 M bytes (32 M bit) , flash, and Wi-Fi antennas 3. 0.96-inch White OLED display 4. Lithium battery charging circuit and interface 5. CP2102 USB to serial chip, perfect support for Arduino development   Package includes:   1 x ESP32 OLED V2.0 1 x line ​2 x pin TTGO 0.96 Inch ESP32 V2.0 OLED WiFi Module + Bluetooth Double ESP-32 et OLED 4 MB For Arduino See detail

TEMT6000 Ambient Light Sensor Module Visible Ambient Light Intensity Detection For Smart Home

Get TEMT6000 Ambient Light Sensor Module Visible Ambient Light Intensity Detection For Smart Home Description:   TEMT6000 is a silicon NPN epitaxial planar pho- totransistor in a miniature transparent mold for sur- face mounting onto a printed circuit board. The device is sensitive to the visible spectrum.   Features:   •Adapted to human eye responsivity •Wide-angle of half sensitivity = ± 60° •SMD style package on PCB technology •Suitable for IR reflow soldering •Lead-free component •The component in accordance with RoHS 2002/95/EC and WEEE 2002/96/EC   Applications:   Ambient light sensor for display backlight dimming in:  Mobile phones Notebook computers  PDA’s Cameras  Dashboards Package includes: 1 x Sensor Module TEMT6000 Ambient Light Sensor Module Visible Ambient Light Intensity Detection For Smart Home See detail

Anti-Scan Leather Aluminum Case Slim RFID Blocking Wallet ID Credit Card Holder for Cash Men

Get Anti-Scan Leather Aluminum Case Slim RFID Blocking Wallet ID Credit Card Holder for Cash Men Features : 100% Brand new. This wallet can be use as a credit card holder case or business card case; With a click all cards slide out gradually,you can put 6 cards inside It also have a small pocket for a few cash Keep it in your back pocket. No breaking, No bending; RFID protection. Prevents hackers to steal your privacy and credit card numbers.   Specification : Type: RFID Blocking Wallet Color: Black/Brown/Coffee Material: PU Leather Size: approx.10 x 6.5 x 2m/3.94 x 2.56 x 0.79" (1cm=10mm=0.39inch)   Package includeds : 1 x RFID Blocking Wallet   Details pictures : Anti-Scan Leather Aluminum Case Slim RFID Blocking Wallet ID Credit Card Holder for Cash Men See detail