2pcs 4 Key MCU Keyboard Push Button Switch Matrix for UNO MEGA2560 DUE

2pcs 4 Key MCU Keyboard Push Button Switch Matrix for UNO MEGA2560 DUE

Price
$25.72
Collect 25 Everyday Rewards points
Plus get 2x points on every order when you spend $100+
Ends 11:59pm 26/03/2025. Exclusions & T&Cs apply
Log in to MyDeal to link your card
Shipping
Free Shipping
 
24-48 hour dispatch
Take 10% Off Purchases Over $29

Exclusive to Zhongshan Junchang Mould Co Ltd (Direct Import) products only. Expires 11.59pm 30/03/2025. Excludes Shipping. Everyday Rewards points will be collected on your total purchase less any discounts. T&C's apply.

Copy code 2BFLA
Quantity
Maximum item limit (20000) has been reached.
 
Description:

Can be inserted directly into Arduiuo uno mega2560,Ideal for linking up to your Arduiuo UNO Pro Mini Nano Mega2560 Breadboard raspberry pi etc,or others MCU ( PLC AVR STM32 ARM PIC AT89C51 MSP430 STM8 Xilinx Altera Lattice FPGA CPLD etc.)

1 4-button Common Cathode key module .
2 " GND K1 K2 K3 K4" 4 PIN OUT 2.54mm
3? Working voltage: Can be DC 1.2V 1.8V 2.5V 3V 3.3V 4.5V 5V 9V 12V 24V 36V 48V
4 Size: 12.7MM x 33MM.

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

Packing list:1 PCS? 4 key push button switch Module;
GTIN: 774048924894

Shipping Details

Please note it will need about 12~20days for the delivery!

Delivery times are as provided by our carriers and are estimates only. Delays may occur during peak periods, and due to factors outside the carriers control.

Thank you for your understanding!

 Return policies :We 100% support our customers,  If you are not satisfied or you have any problem with our products, please CONTACT US at once. We will help you free return the goods.

 Warranty policies: Our products have 180 days warranty.

Refund Guarantee Icon
Shop with peace of mind
All marketplace products are covered by our MyDeal Refund Guarantee Learn More

Estimated Delivery Time Frame: 12-20 business days

Have a question about this product? Click here
Secure ways to pay at checkout
Buy Now, Pay Later
From $10/week with
Zip
4 interest-free instalments of $6.43 (excluding shipping) by AfterPay
Pay in 4 interest-free payments of $6.43 with PayPal
cashback icon
gold Seller
A seller's rating is an overall score calculated from performance metrics. Learn More
93.11%
Proudly growing a MyDeal Forest
Proudly growing a MyDeal Forest
By purchasing from MyDeal, you’re helping us plant 7.8 hectares of trees per year with Greenfleet. Learn More
Reference ID: 7040033