All
Product keywords
Please enter the email address account.
Keypad 4 Button Key Module Switch Keyboard For UNO MEGA2560 Breadboard for Arduino - products that work with official Arduino boards
Share to:

Keypad 4 Button Key Module Switch Keyboard For UNO MEGA2560 Breadboard for Arduino - products that work with official Arduino boards

- China
104971501848793196

0 Customer Reviews | Please refer to English description
4
Save an extra for using the app

Scan the QR code to buy:

  • 1. Download our FREE app on Google play or App Store.
  • 2. Launch the app and scan the QR code to buy directly.

Follow the below steps:

  • 1. Sign in to Gearbest.com
  • 2. Add marked product(s) to your Basket.
  • 3. Open our app, and go to your Basket.
  • 4. Pay for your order for an immediate discount!
  • FREE SHIPPING
    COD This product supports COD on delivery. Suggestions: Do not place orders with non-COD products, otherwise you will not be able to choose COD payment method.
    Ship between: Nov 02 - Nov 14, Estimated Shipping Time: business days Order Processing Time may require a few days. Once dispatched from warehouse, Shipping (or Delivery) Time depends on the Shipping Method.
  • +
  • interest-free You can enjoy a maximum of 0 interest-free instalments, and may not enjoy this offer when placing orders with other products
Tax Info Price Protection Price Disclaimer One Year Repair Warranty Report item
Clearance
Recommended Products for You

Descriptions

Main Features

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:



Package includes:

1 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);
}
    
 //******************************************************//

















Specification

Type
Voltage Regulator
Condition
New
View more

You Will Also Like

Customer Reviews

0
  • 0
  • 0
  • 0
  • 0
  • 0
See all 0 reviews Write a Review

Get GB Points! Be the FIRST to Write a Review!

Sponsored Products Related to This Item
Your Recently Viewed Items

See Personalized Recommendations

New customer? Start here
Pre-sale Service