The Senser SW1801P is a compact, high-performance tilt switch designed to detect changes in orientation. It operates by closing or opening its internal contacts when tilted beyond a certain angle, making it ideal for applications requiring tilt or inclination detection. This component is widely used in safety systems, automotive devices, consumer electronics, and other applications where orientation-based triggering is essential.
The following table outlines the key technical details of the Senser SW1801P:
Parameter | Value |
---|---|
Operating Voltage | 3.3V to 5V |
Contact Resistance | ≤ 10Ω |
Insulation Resistance | ≥ 10MΩ |
Operating Angle | 15° to 90° |
Maximum Current | 20mA |
Operating Temperature | -25°C to +85°C |
Dimensions | 10mm x 5mm x 5mm |
The Senser SW1801P is a two-terminal device. Below is the pin configuration:
Pin | Description |
---|---|
Pin 1 | One terminal of the tilt switch (signal) |
Pin 2 | The other terminal of the tilt switch |
Basic Connection:
Pull-Up Resistor:
Debouncing:
Below is an example of how to connect and use the Senser SW1801P with an Arduino UNO:
// Example code for using the Senser SW1801P with Arduino UNO
const int tiltSwitchPin = 2; // Pin connected to SW1801P
const int ledPin = 13; // Built-in LED pin for indication
void setup() {
pinMode(tiltSwitchPin, INPUT_PULLUP); // Set tilt switch pin as input with pull-up
pinMode(ledPin, OUTPUT); // Set LED pin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int tiltState = digitalRead(tiltSwitchPin); // Read the state of the tilt switch
if (tiltState == LOW) { // If the switch is tilted (contacts closed)
digitalWrite(ledPin, HIGH); // Turn on the LED
Serial.println("Tilt detected!"); // Print message to serial monitor
} else {
digitalWrite(ledPin, LOW); // Turn off the LED
Serial.println("No tilt detected."); // Print message to serial monitor
}
delay(100); // Small delay for stability
}
No Response from the Switch:
False Triggers or Noise:
Switch Not Detecting Tilt:
Q1: Can the SW1801P be used with 3.3V systems?
Yes, the SW1801P operates reliably within a voltage range of 3.3V to 5V.
Q2: How do I reduce noise in the output signal?
You can reduce noise by adding a small capacitor (e.g., 0.1µF) across the switch terminals or by implementing software debouncing in your microcontroller code.
Q3: What is the maximum tilt angle the SW1801P can detect?
The SW1801P can detect tilt angles up to 90°, depending on the mounting orientation.
Q4: Is the SW1801P suitable for outdoor use?
The SW1801P is not specifically designed for outdoor use. Protect it from moisture and extreme environmental conditions to ensure reliable operation.