• +965 51122049
4 LED and 4 Keypad kit module for Arduino

4 LED and 4 Keypad kit module for Arduino

KWD1.500KWD1.500
0%Off

4 LED and 4 Keypad kit module for Arduino


25 products available

 

 


Share:

LED Module Kit for Keypad Button for Arduiuo MEGA2560 Pro mini nano due to Teensy 


Description: 

Can be directly inserted into Arduino UNO Mega2560Perfect for interface with Ardiuno UNO Mini Nano Mega2560 etc., or other MCU (AVR STM32 ARM7 ARM9 ARM10 PIC AT89C51 STC MSP430 FPGA CPLD etc.) 
Keyboard: 
1 x 4-button common cathode switch module. 
2'' GND K1 K2 K3 K4'' 4 Pin Out 2.54mm 
3 Power supply voltage: 3.3V-12V 
4 Size: 12.7mm x 33mm. 

LED panel: 
1 6-bit blue common cathode LED. 
2 7 pin external 2.54 mm 
3 1 kΩ limiting resistor 
4 Power supply voltage: 3.3-12V; 
5 Size: 17.78mm x 11.43mm. 
 
HTB1CdiHGpXXXXb6aXXXq6xXFXXXG.jpg
S0c5989325bab4650afdb5c24fda38062j.jpgHTB1k0SuGpXXXXaYaXXXq6xXFXXXZ.jpg


HTB1aSxUGpXXXXbkXVXXq6xXFXXXx.jpg?size=117276&height=700&width=700&hash=c7d57c1173638c0b6a38113c46bb1222


HTB1QsJWGpXXXXXiapXXq6xXFXXX9.jpg?size=103627&height=700&width=700&hash=de317e4254f2c88d163a3e4f7484018f


Circuit diagrams: 


HTB1YDH3GXXXXXa0XVXXq6xXFXXXu.jpg?size=50193&height=448&width=650&hash=b57454cf56527e8f20dcf6cde3e314c3


Arduino uno/mega2560 code 
 

//********************************************************// 


/* 


Ardiuno_4key_6led 
 

This example code is in the public domain. 

*/ 
 

//Define the key pin 

You K1 = 13; 

You K2 = 12; 

You K3 = 11; 

You K4 = 10; 

// Define LED pin 

You GND = 6; 

you D1 = 5; 

you D2 = 4; 

you D3 = 3; 

you D4 = 2; 

you D5 = 1; 

you D6 = 0; 
 

// Variables will change: 

int buttonState = 0; // Variable to read the push button state 
 
 

// The setup routine is run once when reset is pressed: 

void setup() { 

// Initialize the key pin as input. 
 

Pin mode (K1, input); 

Pin mode (K2, input); 

Pin mode (K3, input); 

Pin mode (K4, input); 
 

// Configure the LED pin as an output. 

Pin mode (GND, OUTPUT); 

Pin mode (D1, OUTPUT); 

Pin mode (D2, OUTPUT); 

Pin mode (D3, OUTPUT); 

Pin mode (D4, OUTPUT); 

Pin mode (D5, OUTPUT); 

Pin mode (D6, OUTPUT); 
 

// Activate the internal pull-up resistors of the switch pin 

digital write(K1, HIGH); 

Digital writing (K2, high); 

Digital writing (K3, high); 

Digital Writing (K4, High); 
 
 

// as LED GND 

Digital Write (GND, LOW); 

} 
 

// The loop runs over and over forever: 

empty loop() { 
 
 

Button state = digital readout(K1); 

digitalWrite(D1,buttonState); // 
 

Button status = digital reading (K2); 

digitalWrite(D2,buttonState); // 
 

Button status = digital readout (K3); 

digitalWrite(D3,buttonState); // 
 

Button status = digital readout (K4); 

digitalWrite(D4,buttonState); // 
 
 

digitalWrite(D5, HIGH); // Turn on the LED (voltage level is high) 

digitalWrite(D6, HIGH); // Turn on the LED (voltage level is high) 
 
 

} 
 
 

//********************************************************// 


 

Specifications:
Material: High quality
Product Category: Elle Products
Compatibility: Arduino MEGA2560, Pro Mini, Nano, Due, Teensy+
Design: Compact keypad, 33x33
LED Module: 6-bit red LED with 1K ohm resistor
Performance: Versatile voltage range (12V-12V)
Pin configuration: Easy to use! External pin


 


Add your review

Your email address will not be published. Required fields are marked *

Please login to write review!

Upload photos

Looks like there are no reviews yet.

Related Products