+

10pcs KY-004 3pin Button Key Switch Sensor Module for Arduino Diy Starter Kit 6*6*5mm 6x6x5mm KY004

USD 3.74

10pcs KY-004 3pin Button Key Switch Sensor Module for Arduino Diy Starter Kit 6*6*5mm 6x6x5mm KY004

Description
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) } } Package Included:
 
10 x For Arduino PIC AVR Key Switch Module KY-004 UNO MEGA2560 Breadboard

 

Specification

Condition : New

Brand Name : RELAND SUN

Type : Voltage Regulator

+