Stufin
Home Quick Cart Profile

2 Pin SPST Switch (10pcs) (Colour may vary)

Buy Now on Stufin

Component Name

2 Pin SPST Switch (10pcs)

Description

The 2 Pin SPST Switch is a type of electromechanical switch that is widely used in various electronic circuits and devices. This component is a single-pole single-throw (SPST) switch, meaning it has two terminals and can be in one of two statesopen (off) or closed (on). This switch is a basic component used to control the flow of electrical current in a circuit.

Functionality

The primary function of the 2 Pin SPST Switch is to connect or disconnect the circuit, allowing or blocking the flow of electrical current. When the switch is in the "on" position, the two terminals are connected, allowing current to flow through the circuit. When the switch is in the "off" position, the terminals are disconnected, breaking the circuit and stopping the flow of current.

Key Features

  • Single-Pole Single-Throw (SPST): The switch has two terminals and can be in one of two states: open (off) or closed (on).
  • 2-Pin Design: The switch has two pins, making it easy to integrate into various electronic circuits and devices.
  • Compact Size: The switch is compact and lightweight, making it ideal for use in space-constrained applications.
  • Durable Construction: The switch is built to last, with a rugged design that can withstand repeated use and handling.
  • Easy to Use: The switch is simple to operate, with a clear and intuitive design that makes it easy to toggle between the on and off states.
  • Colour May Vary: The switch colour may vary, but this does not affect its functionality or performance.
  • Pack of 10: This component comes in a pack of 10 switches, making it a convenient and cost-effective option for bulk purchases.

Applications

  • Electronics Projects: Use in DIY electronics projects, such as robotics, automation, and IoT devices.
  • Prototype Development: Ideal for prototyping and testing electronic circuits.
  • Repair and Maintenance: Use in repair and maintenance of electronic devices, appliances, and machinery.
  • Industrial Automation: Suitable for industrial automation applications, such as controlling motors, solenoids, and other devices.
The 2 Pin SPST Switch is suitable for a wide range of applications, including

Pin Count

2

Switch Type

SPST (Single-Pole Single-Throw)

Operating Voltage

Depends on the specific application (consult datasheet or manufacturer's instructions)

Operating Current

Depends on the specific application (consult datasheet or manufacturer's instructions)

Dimensions

Compact size, approximately [insert dimensions]

Weight

Lightweight, approximately [insert weight]

Operating Temperature

-20C to 80C (consult datasheet or manufacturer's instructions)

Storage Temperature

-40C to 125C (consult datasheet or manufacturer's instructions)

Notes

Consult the datasheet or manufacturer's instructions for specific operating voltage, current, and temperature ratings.

Handle the switch with care to avoid damage or electrical shock.

Ensure proper installation and wiring to avoid electrical shock or fire hazards.

Pin Configuration

  • Component Documentation: 2 Pin SPST Switch (10pcs)
  • Overview
  • The 2 Pin SPST Switch is a single-pole, single-throw (SPST) switch component used to control the flow of electrical current in a circuit. It has two pins and is commonly used in electronic projects and circuits.
  • Pin Description
  • The 2 Pin SPST Switch has two pins, which are:
  • ### Pin 1: Input/Positive Leg
  • Function: This pin is used to connect the positive leg of the power source or the input signal.
  • Description: The input pin is the terminal where the voltage or signal is applied to the switch.
  • Connection: Connect the positive leg of the power source, signal, or voltage to this pin.
  • ### Pin 2: Output/Negative Leg
  • Function: This pin is used to connect the negative leg of the load or the output signal.
  • Description: The output pin is the terminal where the voltage or signal is sent to the load or the next stage of the circuit.
  • Connection: Connect the negative leg of the load, ground, or the next stage of the circuit to this pin.
  • Connecting the Pins (Step-by-Step Guide)
  • To connect the 2 Pin SPST Switch, follow these steps:
  • 1. Identify the pins: Determine which pin is Pin 1 (Input/Positive Leg) and Pin 2 (Output/Negative Leg).
  • 2. Connect the power source: Connect the positive leg of the power source (e.g., a battery or a voltage regulator) to Pin 1.
  • 3. Connect the load: Connect the negative leg of the load (e.g., an LED, a motor, or a sensor) to Pin 2.
  • 4. Complete the circuit: Close the switch to complete the circuit, allowing the voltage or signal to flow from Pin 1 to Pin 2 and energize the load.
  • 5. Open the switch: Open the switch to break the circuit, disconnecting the power source from the load.
  • Important Notes:
  • Ensure proper polarity when connecting the power source and load to the switch.
  • Use the switch within its rated voltage and current specifications to avoid damage or malfunction.
  • Always follow proper safety precautions when working with electrical circuits.
  • By following these instructions, you can successfully connect and use the 2 Pin SPST Switch in your electronic projects.

Code Examples

2 Pin SPST Switch (10pcs) Documentation
Overview
The 2 Pin SPST (Single Pole Single Throw) switch is a simple, versatile, and widely used component in electronics and IoT projects. This component is a manual switch that allows a user to connect or disconnect a circuit. This documentation provides an overview of the component, its pinout, and examples of how to use it in various contexts.
Pinout
The 2 Pin SPST switch has two terminals:
Pin 1 ( Normally Open (NO) ): This pin is connected to the load or the circuit that needs to be controlled.
 Pin 2 ( Common (COM) ):: This pin is connected to the power source or the circuit that provides power to the load.
How it Works
When the switch is in the OFF position, Pin 1 (NO) and Pin 2 (COM) are disconnected, and the circuit is broken. When the switch is in the ON position, Pin 1 (NO) and Pin 2 (COM) are connected, and the circuit is complete.
Code Examples
Here are a few examples that demonstrate how to use the 2 Pin SPST switch in various contexts:
Example 1: Simple LED Circuit
In this example, we will use the 2 Pin SPST switch to control an LED circuit.
Hardware Requirements:
1 x 2 Pin SPST switch
 1 x LED
 1 x 1k Resistor
 1 x Breadboard
 1 x Power Source (e.g., 9V Battery)
connections:
Pin 1 (NO) of the switch to the positive leg of the LED
 Pin 2 (COM) of the switch to the power source (e.g., 9V Battery)
 Negative leg of the LED to the 1k Resistor
 The other end of the 1k Resistor to the negative terminal of the power source (e.g., 9V Battery)
Code:
Not applicable, as this is a simple manual switch circuit.
Example 2: Arduino Controlled Relay
In this example, we will use the 2 Pin SPST switch to control a relay module using an Arduino board.
Hardware Requirements:
1 x 2 Pin SPST switch
 1 x Arduino Board (e.g., Arduino Uno)
 1 x Relay Module (e.g., SRD-05VDC-SL-C)
 1 x Breadboard
 Jumper Wires
connections:
Pin 1 (NO) of the switch to Digital Pin 2 of the Arduino Board
 Pin 2 (COM) of the switch to the VCC pin of the Arduino Board
 Relay Module:
	+ VCC to the VCC pin of the Arduino Board
	+ GND to the GND pin of the Arduino Board
	+ IN to Digital Pin 3 of the Arduino Board
Code:
```c
const int switchPin = 2;  // Pin connected to the switch
const int relayPin = 3;  // Pin connected to the relay module
void setup() {
  pinMode(switchPin, INPUT);
  pinMode(relayPin, OUTPUT);
}
void loop() {
  if (digitalRead(switchPin) == HIGH) {
    digitalWrite(relayPin, HIGH);  // Turn on the relay
  } else {
    digitalWrite(relayPin, LOW);  // Turn off the relay
  }
  delay(50);
}
```
This code reads the state of the switch and controls the relay module accordingly.
Note: The colour of the switch may vary, but the functionality remains the same.