The Crowtail- Tilt Switch is a sensor to detect the station of forwards. It outputs logic LOW in Horizontal direction and logic HIHG in vertical direction.
Inside the tilt switch is a pair of balls that make contact with the pins when in the case of vertical. Tilt the case over and the balls don’t touch, thus not making a connection.
Features
- Connection Mode: D(Digital)
- Working Voltage:5V
Part List
- 1 X Crowtail- Tilt Switch
- 1 X Crowtail 3 Pin Cable
Wiki & External links
Festure
- Crowtail Interface
- Easy to use
Specification
Item | Min | Typical | Max | Unit |
---|---|---|---|---|
Voltage | 4.75 | 5.0 | 5.25 | V |
Connect angle | 10° ~170° | – | ||
Disconnect angle | 190° ~350° | – | ||
Electrical life | 100000 | cycles |
void setup() { pinMode(4, INPUT); //connect to Crowtail- Tilt Switch pinMode(5, OUTPUT);//connect to Crowtail- LED } void loop() { if (digitalRead(4)==HIGH) { digitalWrite(1, HIGH); delay(100); digitalWrite(5, HIGH); } else { digitalWrite(5, LOW); } }
دیدگاهها
هیچ دیدگاهی برای این محصول نوشته نشده است.