spst mini toggle switch 2 pin 2 position on-off
Out of Stock
Price: KSH 30.00

SPST Mini Toggle Switch 2 Pin 2 Position ON-Off

The SPST Mini Toggle Switch is a compact and reliable switch used for controlling electronic circuits. This switch is typically used in low-power applications where space is limited. It features a 2-pin, 2-position ON-Off configuration, making it ideal for a variety of DIY electronics projects.

Specifications

  • Type: SPST (Single Pole Single Throw)
  • Pin Configuration: 2 Pins
  • Switch Type: 2-Position ON-OFF
  • Current Rating: Typically 0.5A to 1A
  • Voltage Rating: 12V or 24V (depending on the specific model)
  • Size: Small and compact, ideal for space-constrained applications
  • Mounting Type: Panel Mount

Applications

The SPST Mini Toggle Switch can be used in a variety of applications, including:

  • Power Switches: Control power to a circuit or device by toggling the switch ON or OFF.
  • Control Systems: Ideal for manually controlling devices such as lights, motors, and fans.
  • Automotive Applications: Commonly used in cars or other vehicles for controlling lights, horns, or other accessories.
  • DIY Projects: Perfect for makers, hobbyists, and engineers working on small electronic devices.

Pinout

The SPST Mini Toggle Switch typically has the following pins:

  • Pin 1: Connected to the input or power source.
  • Pin 2: Connected to the output or load (device to be controlled).

How It Works

The switch operates by toggling between two positions—ON and OFF. When the switch is in the ON position, current flows from the input (Pin 1) to the output (Pin 2), powering the connected device. When the switch is in the OFF position, the circuit is open, and no current flows to the output.

Sample Code (Arduino)

Here is an example of using an SPST Mini Toggle Switch in an Arduino project. The switch is used to control an LED, toggling the LED ON and OFF:

// Define the pin where the switch is connected
const int switchPin = 2;   // Switch connected to pin 2
const int ledPin = 13;     // LED connected to pin 13

void setup() {
  pinMode(switchPin, INPUT);   // Set the switch pin as input
  pinMode(ledPin, OUTPUT);     // Set the LED pin as output
}

void loop() {
  int switchState = digitalRead(switchPin);   // Read the switch state

  if (switchState == HIGH) {    // If switch is ON
    digitalWrite(ledPin, HIGH);  // Turn ON the LED
  } else {                      // If switch is OFF
    digitalWrite(ledPin, LOW);   // Turn OFF the LED
  }
  delay(100);  // Small delay for debouncing
}
    

Installation Tips

  • Ensure that the switch is securely mounted to avoid any loose connections.
  • Double-check the voltage and current ratings to ensure compatibility with your circuit.
  • If using in a high-current application, ensure that the switch is rated for the required current to avoid overheating or damage.
  • Consider adding a pull-down resistor to ensure a stable OFF state when the switch is not engaged.

🔥RELATED PRODUCTS🔥

🔗 HIMASTORES PRODUCTS