TB371 TB258 Key Button Board LED Module kit for Arduino DIY MEGA2560 Pro mini nano due Teensy++

TB371 TB258 Key Button Board LED Module kit for Arduino DIY MEGA2560 Pro mini nano due Teensy++

  • Model: TB371*1+TB258*1
  • Availability: In stock
  • Weight: 0.003Kg
US$1.69
  • Description
  • Datasheet Document Download
  • Guidance videos
  • Reviews
  • Shipping & Returns

Product Name:Key Button Board LED Module kit for Arduiuo MEGA2560 Pro mini nano due Teensy++

Packing list:



1 PCS 4 button Key Board;


1 PCS 6 bit RED LED Board;


Description:


Can be inserted directly into
Ardiuno uno mega2560
,Ideal for linking up to your Ardiuno UNO Mini Nano Mega2560 etc,or others MCU ( AVR STM32 ARM7 ARM9 ARM10 PIC AT89C51 STC MSP430 FPGA CPLD etc.)

key board:

1 4-button Common Cathode key 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 board:

1 6 bit Blue Common Cathode LEDS.

2 7 PIN OUT 2.54mm

3 1K ohm Limiting resistor

4 Power Supply Voltage: 3.3-12V;

5 Size: 17.78MM x 11.43MM.

 








Circuit schematics :









Ardiuno uno/mega2560 Code



 




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




/*





Ardiuno_4key_6led



 




This example code is in the public domain.




*/



 




// Define key pin




int K1 = 13;




int K2 = 12;




int K3 = 11;




int K4 = 10;




// Define led pin




int GND = 6;




int D1 = 5;




int D2 = 4;




int D3 = 3;




int D4 = 2;




int D5 = 1;




int D6 = 0;



 




// 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);



 




// initialize the leds pin as an output.




pinMode(GND, OUTPUT);




pinMode(D1, OUTPUT);




pinMode(D2, OUTPUT);




pinMode(D3, OUTPUT);




pinMode(D4, OUTPUT);




pinMode(D5, OUTPUT);




pinMode(D6, OUTPUT);



 




//Activate key pin internal pull-up resistors




digitalWrite(K1, HIGH);




digitalWrite(K2, HIGH);




digitalWrite(K3, HIGH);




digitalWrite(K4, HIGH);



 



 




//as LED GND




digitalWrite(GND, LOW);




}



 




// the loop routine runs over and over again forever:




void loop() {



 



 




buttonState = digitalRead(K1);




digitalWrite(D1, buttonState); //



 




buttonState = digitalRead(K2);




digitalWrite(D2, buttonState); //



 




buttonState = digitalRead(K3);




digitalWrite(D3, buttonState); //



 




buttonState = digitalRead(K4);




digitalWrite(D4, buttonState); //



 



 




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




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



 



 




}



 


 




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

 

Choose a ranking for this item. 1 star is the worst and 5 stars is the best.





NOTE: HTML tags are not allowed.
NOTE: Reviews require prior approval before they will be displayed

* Delivery Time.
We need 1-2 days to process your order before shipping.There are two shipping methoed. Fast Delivery: The delivery time for US, European countries the delivery will take 3-5 days.Slow Delivery: The delivery time for US, European countries the delivery will take 10-15 days.
* Tracking information.
After we ship package, customer receive automatic email with tracking details.
* Lost Package Policy.
If a package did not arrive in 4 weeks after the shipping date, then this package is treated as Lost. In this case a new package will be shipped to the customer provided we are able to give the same items as those purchased by the customer. If we are not able to provide the same items to substitute the lost ones we will either propose to the customer similar items or refund their cost as it will be mutually agree with the customer. If one or more items neither the same nor similar are available to be shipped, the customer can request to cancel the order entirely, thus the total cost of the order including shipping and handling cost will be fully refunded.

payment
Copyright © 2024 Eletechsup All Rights Reserved.