商品图

Elecbee 20pcs Keypad 4 Button Key Module Switch Keyboard For UNO MEGA2560 Breadboard

SKU: EB0049372
Favorites

Key Features

Show More
Description
Description: 
 
Can be inserted directly into uno mega2560, Ideal for linking up to your   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:

20pcs-Keypad-4-Button-Key-Module-Switch-Keyboard-For-UNO-MEGA2560-Breadboard-1590012



20 x Keyboard


uno/mega2560 Code
 
//******************************************************//
 
 
/*
_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);
}
    
 //******************************************************//




20pcs-Keypad-4-Button-Key-Module-Switch-Keyboard-For-UNO-MEGA2560-Breadboard-1590012

20pcs-Keypad-4-Button-Key-Module-Switch-Keyboard-For-UNO-MEGA2560-Breadboard-1590012

20pcs-Keypad-4-Button-Key-Module-Switch-Keyboard-For-UNO-MEGA2560-Breadboard-1590012

20pcs-Keypad-4-Button-Key-Module-Switch-Keyboard-For-UNO-MEGA2560-Breadboard-1590012

20pcs-Keypad-4-Button-Key-Module-Switch-Keyboard-For-UNO-MEGA2560-Breadboard-1590012

20pcs-Keypad-4-Button-Key-Module-Switch-Keyboard-For-UNO-MEGA2560-Breadboard-1590012
Shopping Guide
Shipping
Delivery Period
For in-stock parts, orders are estimated to ship out in 3 days.
Elecbee ships orders once a day at about 5pm except Sunday.
Once shipped, estimated delivery time depends on the below carriers you chose.
DHL Express: 3-7 business days
DHLeCommerce: 12-22 business days
FedEx International Priority: 3-7 business days
EMS: 10-15 business days
Registered Air Mail: 15-30 business days
Shipping RatesShipping rates for your order can be found in the shopping cart.
Shipping OptionsShipping rates for your order can be found in the shopping cart.
Shipping TrackingWe will notify you by email with tracking number once order is shipped. You can track your order using the “Track My Order” feature.
Returning/WarrantyReturningReturns are normally accepted when completed within 30 days from date of shipment, please contact customer service for a return authorization. Parts should be unused and in original packaging. Customer has to take charge for the shipping
WarrantyAll Elecbee purchases come with a 30-day money-back return policy, plus 1-year Elecbee warranty against any manufacturing defects.
This warranty shall not apply to any item where defects have been caused by improper customer assembly failure by customer to follow instructions, product modification, negligent or improper operation
OrderingHow to BuyElecbee accepts online orders.
Add to cart > Check out > Submit order > Complete payment > Delivery
PaymentPayPal, Credit Card includes Visa, Master, American Express, Bank transfer.
Reviews
ELECBEE
All reviews come from verified purchasers
5
0%
4
0%
3
0%
2
0%
1
0%
In-Stock:9999
Qty.
1
Unit Price
$ 21.24$ 24.99
Ext. Price
$ 21.24$ 24.99
$ 21.24$ 24.99
Can Ship in 1-3 Business Days