KY-004 Key Switch Module For Arduno AVR PIC UNO MEGA2560 Breadboard

$10.56

Availability: 49980 in stock

SKU: 3256809122414656 Category:
  • Brand Name: SUNLEPHANT
  • Origin: Mainland China
  • Hign-concerned Chemical: None
  • Condition: New
  • Type: Voltage Regulator
  • Supply Voltage: V
  • Dissipation Power: W
  • is_customized: Yes
  • Operating Temperature: -20 to +50
  • Application: Computer
  • Package: SMD

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:

1 x For Arduno PIC AVR Key Switch Module KY-004 UNO MEGA2560 Breadboard

Reviews

There are no reviews yet.

Be the first to review “KY-004 Key Switch Module For Arduno AVR PIC UNO MEGA2560 Breadboard”

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

Scroll to Top