The Limit Switch - Closed (LSClosed), manufactured by YuviPep, is a mechanical switch that is typically used to detect the presence or position of an object in a control system. When the actuator of the switch is engaged, the internal contacts are closed, allowing current to flow through the circuit. This component is widely used in industrial automation, robotics, and safety systems to provide precise control and feedback.
Parameter | Value |
---|---|
Manufacturer | YuviPep |
Part ID | LSClosed |
Operating Voltage | 5V - 30V DC |
Operating Current | 0.5A (max) |
Contact Resistance | ≤ 50 mΩ |
Insulation Resistance | ≥ 100 MΩ @ 500V DC |
Mechanical Life | 1,000,000 operations |
Electrical Life | 100,000 operations |
Operating Temperature | -25°C to +85°C |
Pin Number | Pin Name | Description |
---|---|---|
1 | COM | Common terminal |
2 | NO | Normally Open terminal (not used) |
3 | NC | Normally Closed terminal |
// Example code to read the state of the limit switch
const int limitSwitchPin = 2; // Pin connected to NC terminal of limit switch
const int ledPin = 13; // Pin connected to an LED for indication
void setup() {
pinMode(limitSwitchPin, INPUT_PULLUP); // Set limit switch pin as input with pull-up
pinMode(ledPin, OUTPUT); // Set LED pin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int switchState = digitalRead(limitSwitchPin); // Read the state of the limit switch
if (switchState == LOW) {
// Limit switch is engaged (closed)
digitalWrite(ledPin, HIGH); // Turn on the LED
Serial.println("Limit switch engaged");
} else {
// Limit switch is not engaged (open)
digitalWrite(ledPin, LOW); // Turn off the LED
Serial.println("Limit switch not engaged");
}
delay(100); // Small delay for debounce
}
Q1: Can I use the LSClosed limit switch with an AC power source?
Q2: How do I implement debouncing in my code?
Q3: What is the difference between the NC and NO terminals?
By following this documentation, users can effectively integrate the Limit Switch - Closed (LSClosed) into their projects, ensuring reliable and accurate detection of object presence or position.