KY-004 Key Switch Module For Arduino

€1.50
Tax included *
19 items
Quantity

 

 

100% confiance. Vos achats et données sont totalement sécurisés.

 

Envoi le jour même si commande validé avant 11h30.

1.Rating: 50mA 12VDC.   
2. Contact Resistance : 50mΩ max. (initial)   
3. Insulation Resistance: 100MΩ.(minDC 250V)   
4. Dielectric Strength : AC250V.(50/60Hz for 1minute)   
5. Electrically Life: 100,000cycles.   
6. Environment Temperature: -25°~+105°.   
7. Operating Force: 180/230.(±20gf)   
8. Seal Temperature: 250°-280°.   
Key switch module and a digital interface, built-in 13 LED build a simple circuit to produce key warning lamp.13 comes with digital interfaces of the LED,   
theaccess number 3 button switch sensor interfaces, when the key switch sensor senses a key signal , LED lights , otherwise off.   


Routines Source Code:   
int Led=13;// Definition LED Interface   
int buttonpin=3 // Define the key switch sensor interface   
int val;// Defines a numeric variable val   
void setup()   
{   
pinMode(Led,OUTPUT);// Definition LED as output interface   
pinMode(buttonpin,INPUT);// Defined the button switch sensor as the output interface   
}   
void loop()   
{   
val=digitalRead(buttonpin);// The digital interface is assigned a value of 3 to read val   
if(val==HIGH)// When the key switch test the sensor detects a signal , LED flashes   
{   
digitalWrite(Led,HIGH)   
}   
else   
{   
digitalWrite(Led,LOW)   
}   
}  

1008Z
19 Items

4 other products in the same category: