• -25%

8 db-2/8/24db Nyomógombos Kapcsoló 4 Billentyűzet modul Billentyűzet gomb - PIC PLC ARM FPGA CPLD MCU Fejlesztői kártyához

8 db-2/8/24db Nyomógombos Kapcsoló 4 Billentyűzet modul Billentyűzet gomb - PIC PLC ARM FPGA CPLD MCU Fejlesztői kártyához

3 579 Ft 25% megtakarítás
4 771 Ft
Nincs adó
Product Name:2/8/24Pcs Push Button Switch 4 Keyboard Module key Board Button For PIC PLC ARM FPGA CPLD MCU Development Board. Packing list(Does not include UNO R3 Board): 2/8/24Pcs 4xkey push button switch module, . Description: Can be in
Mennyiség

 

Biztonsági feltételek

 

Szállításii feltételek

 

Visszaküldési feltételek

Product Name:2/8/24Pcs Push Button Switch 4 Keyboard Module key Board Button For PIC PLC ARM FPGA CPLD MCU Development Board
Packing list(Does not include UNO R3 Board):
2/8/24Pcs 4xkey push button switch module,
Description:
Can be inserted directly into Arduiuo uno mega2560 due Leonardo ZERO,Ideal for linking up to your Arduiuo DUE UNO Pro Mini Nano Mega2560 Breadboard raspberry pi banana pi etc,or others MCU PLD CPU ( AVR STM32 ARM PIC C51 Zigbee NRF24LE1 CC2530 MSP430 STM8 FPGA CPLD etc.)
1 4-button Common Cathode botton board(When pressed button, output low level).
2 '' GND K1 K2 K3 K4'' 4 PIN OUT 2.54mm Pin Header
3 Working voltage: DC 0-48V(Can be DC 1.8V 2.5V 3.3V 5V 12V 24V 36V 48V)
4 Size: 12.7MM x 33MM.
Arduiuo uno/mega2560/LeonardoCode
//******************************************************//
/*
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),
}
//******************************************************//
Circuit schematics :
Specifications
Material
PCB
Origin
Mainland China
Numbers
4 key
Output Level
Low level(0)
1005005790713627/1

Hasonló kategóriák mint 16 :

Reviews

Write your review

8 db-2/8/24db Nyomógombos Kapcsoló 4 Billentyűzet modul Billentyűzet gomb - PIC PLC ARM FPGA CPLD MCU Fejlesztői kártyához

Product Name:2/8/24Pcs Push Button Switch 4 Keyboard Module key Board Button For PIC PLC ARM FPGA CPLD MCU Development Board. Packing list(Does not include UNO R3 Board): 2/8/24Pcs 4xkey push button switch module, . Description: Can be in

Write your review