Sw 520D Tilt Sensor
Rs. 43.00 Rs. 52.00
- Product Code: SEN-VIB
- SKU -
- Availability: In Stock
- For Bulk Order 9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
SPECIFICATIONS:
a meter :5.2mm
Height :11.5mm (excluding leads)
OVERVIEW:
-Detect orientation or inclination
-Small and inexpensive
-Low-power and easy-to-use
-If used properly, they will not wear out.
-Sensitivity range: > +-15 degrees
-Lifetime: 50,000+ cycles (switches)
-Power supply: Up to 24V, switching less than 5mA
PACKAGE INCLUDES:
1 PCS x Sw 520D Tilt Sensor
//SOURCE CODE TAKEN FROM BELOW LINK
//https://www.electroschematics.com/arduino-tilt-sensor-experiment/
const int statusLED = 13;
const int switchTilt = 2;
int val = 0;
void setup(){
pinMode (statusLED,OUTPUT);
pinMode (switchTilt,INPUT);
}
void loop(){
val = digitalRead(switchTilt);
if (val == HIGH){
digitalWrite(statusLED,HIGH);
}
else {
digitalWrite(statusLED,LOW);
}
}
15 days