

The Self-Lock Push Button Switch is a mechanical switch designed to maintain its position after being pressed. Unlike momentary switches, which return to their default state when released, this switch "locks" into place, toggling between on and off states with each press. This functionality makes it ideal for applications requiring a persistent state without continuous user interaction.








Below are the key technical details for the Self-Lock Push Button Switch:
| Parameter | Value |
|---|---|
| Operating Voltage | 3V to 250V (AC/DC, depending on model) |
| Operating Current | 0.5A to 3A (varies by model) |
| Contact Resistance | ≤ 50 mΩ |
| Insulation Resistance | ≥ 100 MΩ |
| Mechanical Durability | ≥ 50,000 cycles |
| Mounting Type | Panel mount or PCB mount |
| Switch Type | Latching (self-locking) |
| Dimensions | Varies by model (e.g., 12mm diameter for panel mount) |
The Self-Lock Push Button Switch typically has two or more terminals. Below is a general description of the pin configuration:
| Pin | Description |
|---|---|
| Pin 1 | Common terminal (COM) - Connects to the power source or load. |
| Pin 2 | Normally Open (NO) - Connects to the load when the switch is pressed. |
| Pin 3* | Normally Closed (NC) - Disconnects from the load when the switch is pressed. (*Optional, depending on model) |
Note: Some models may only have two pins (COM and NO). Always refer to the datasheet for your specific switch model.
The Self-Lock Push Button Switch can be used with an Arduino UNO for toggling an LED. Below is an example circuit and code:
// Self-Lock Push Button Switch Example
// Toggles an LED on pin 13 when the switch is pressed.
const int buttonPin = 2; // Pin connected to the switch's NO terminal
const int ledPin = 13; // Pin connected to the LED
bool ledState = false; // Variable to store the LED state
void setup() {
pinMode(buttonPin, INPUT_PULLUP); // Set button pin as input with pull-up resistor
pinMode(ledPin, OUTPUT); // Set LED pin as output
}
void loop() {
static bool lastButtonState = HIGH; // Store the last button state
bool currentButtonState = digitalRead(buttonPin); // Read the button state
// Check if the button state has changed
if (currentButtonState == LOW && lastButtonState == HIGH) {
ledState = !ledState; // Toggle the LED state
digitalWrite(ledPin, ledState); // Update the LED
delay(50); // Debounce delay
}
lastButtonState = currentButtonState; // Update the last button state
}
Note: The
INPUT_PULLUPmode is used to simplify the circuit by eliminating the need for an external pull-up resistor.
FAQ: Can I use this switch for high-power applications? Answer: Yes, but only if the switch's voltage and current ratings meet the requirements of your application. For higher power, consider using the switch to control a relay.
This concludes the documentation for the Self-Lock Push Button Switch.