

The TILT-SWITCH-SW-200D is a compact and reliable tilt switch designed to detect changes in orientation or position. It operates by closing or opening its internal circuit when tilted beyond a specific angle, making it ideal for applications requiring motion or tilt detection. This component is widely used in alarm systems, robotics, gaming devices, and other projects where orientation sensing is critical.








The TILT-SWITCH-SW-200D has two pins, which are not polarized. This means there is no specific positive or negative terminal, and the pins can be connected in either orientation.
| Pin Number | Description |
|---|---|
| 1 | Terminal 1 (non-polarized) |
| 2 | Terminal 2 (non-polarized) |
Basic Connection:
Signal Detection:
Debouncing:
Below is an example of how to use the TILT-SWITCH-SW-200D with an Arduino UNO to detect tilt:
// Define the pin connected to the tilt switch
const int tiltSwitchPin = 2; // Digital pin 2
const int ledPin = 13; // Built-in LED pin
void setup() {
pinMode(tiltSwitchPin, INPUT); // Set tilt switch pin as input
pinMode(ledPin, OUTPUT); // Set LED pin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int tiltState = digitalRead(tiltSwitchPin); // Read the tilt switch state
if (tiltState == HIGH) {
// If the switch is tilted, turn on the LED
digitalWrite(ledPin, HIGH);
Serial.println("Tilt detected!");
} else {
// If not tilted, turn off the LED
digitalWrite(ledPin, LOW);
Serial.println("No tilt detected.");
}
delay(100); // Small delay for stability
}
False Triggering:
No Signal Detected:
Intermittent Behavior:
By following these guidelines, the TILT-SWITCH-SW-200D can be effectively integrated into a wide range of projects, providing reliable tilt detection and orientation sensing.