Tilt SW-200D Sensor (W-200D) [S051]



https://www.youtube.com/watch?v=Awp-0iWdAm4


*GitHubhttps://github.com/rdiot/rdiot-s051.git


* Specs

the switch using metal manufacturing, electrical characteristics and mercury switches are similar but not the risk of mercury switches and environmental issues, while shaking unidirectional conducting the same characteristics, the assembly of the use of more convenient and safe;

Operating Characteristics: Switch in the stationary state, as shown in Figure (ON) side below the level of 15 degrees, the switch is in the ON state; when (OFF) side below the level of 15 degrees, the switch is in the OFF state; when achieved by external shaking shaking force, or set the conduction angle, the conductive pin electrical characteristics will produce short or continuous conduction.

when the electrical characteristics of the open state to be restored (OFF) when the switch is set to the environment must be static, and the (OFF) is set to be lower than the level of the open end angle;

the switch all materials are manufactured using environmentally friendly raw materials, in line with ROHS requirements;

when the switch below the horizontal angle of 15 degrees, shaking hard trigger conduction;

the trigger switch for low current circuit, does not apply when the power switch;

this switch is a sealed package, dustproof and waterproof.

The switch is lacoste type better than the single bead type conduction effect


Maximum operating voltage (Vmax): 12V

Maximum operating current (Imax): 2mA

Open resistance: greater than 10M

Resistance: less than 5 ohm

Ambient temperature: less than 100 degrees

Life: 500,000 times


* Contents

- Connect

1 ---- 5V

2 ----- R220 ----- D2

           ------ GND


- Key Code

int pin = 2;

int val = digitalRead(pin);


if(val == LOW)

  lcd.setCursor(0,2);

  lcd.print("Tilt CLOSE");

}

else

{

  lcd.setCursor(0,2);

  lcd.print("Tilt OPEN ");  

}

Posted by RDIoT
|