Stufin
Home Quick Cart Profile

Sub-Miniature Toggle Switch (Pack of 5)

Buy Now

Contact Resistance

[insert contact resistance]

Insulation Resistance

[insert insulation resistance]

Dielectric Strength

[insert dielectric strength]

Physical Characteristics

Dimensions

[insert dimensions]

Weight

[insert weight]

Material

[insert material, e.g., plastic, metal, etc.]

Packaging Information

Packaging Type

[insert packaging type, e.g., blister pack, bag, etc.]

Quantity

5 pieces per pack

Applications

The Sub-Miniature Toggle Switch is suitable for use in a variety of applications, including

IoT projects

Robotics

Electronic devices

Industrial control systems

Medical devices

Aerospace applications

Certifications and Compliance

The Sub-Miniature Toggle Switch meets or exceeds the following certifications and standards

[insert certifications, e.g., CE, RoHS, UL, etc.]

Warranty and Support

The Sub-Miniature Toggle Switch is backed by a [insert warranty period] warranty. Technical support and documentation are available online.

Ordering Information

To order, please specify the part number [insert part number]. For large quantities or custom orders, please contact our sales department.

Pin Configuration

  • Sub-Miniature Toggle Switch (Pack of 5) Documentation
  • Overview
  • The Sub-Miniature Toggle Switch is a compact, rugged, and reliable switching component designed for various IoT applications. This switch features a miniature design, making it an ideal choice for projects where space is limited. This documentation provides a detailed explanation of the pins and their connections.
  • Pinout
  • The Sub-Miniature Toggle Switch has three pins, which are:
  • 1. Pin 1: COM (Common)
  • Function: Common terminal, connects to the power source or input signal.
  • Description: This pin serves as the common connection point for the switch. When the switch is in the ON position, the COM pin connects to the NC (Normally Closed) pin. When the switch is in the OFF position, the COM pin connects to the NO (Normally Open) pin.
  • 2. Pin 2: NO (Normally Open)
  • Function: Normally Open terminal, connects to the load or output circuit.
  • Description: This pin is connected to the COM pin when the switch is in the OFF position. When the switch is flipped to the ON position, the NO pin disconnects from the COM pin.
  • 3. Pin 3: NC (Normally Closed)
  • Function: Normally Closed terminal, connects to the load or output circuit.
  • Description: This pin is connected to the COM pin when the switch is in the ON position. When the switch is flipped to the OFF position, the NC pin disconnects from the COM pin.
  • Connection Structure
  • To connect the Sub-Miniature Toggle Switch, follow these steps:
  • Step 1: Connect the Power Source
  • + Connect the power source (e.g., a battery or a power supply) to the COM (Pin 1) terminal.
  • Step 2: Connect the Load or Output Circuit
  • + Connect the load or output circuit (e.g., an LED, a relay, or a sensor) to the NO (Pin 2) terminal.
  • + Connect the same load or output circuit to the NC (Pin 3) terminal.
  • Step 3: Toggle the Switch
  • + Flip the switch to the ON position to connect the COM pin to the NC pin, completing the circuit.
  • + Flip the switch to the OFF position to connect the COM pin to the NO pin, breaking the circuit.
  • Important Notes
  • Ensure proper polarity when connecting the power source to the COM pin.
  • Use suitable wiring and connections to prevent damage to the switch and connected components.
  • The Sub-Miniature Toggle Switch is designed for low-voltage and low-current applications. Exceeding the recommended specifications may damage the switch.
  • By following these instructions and understanding the pinout and connection structure, you can effectively utilize the Sub-Miniature Toggle Switch in your IoT projects.

Code Examples

Sub-Miniature Toggle Switch (Pack of 5) Documentation
Overview
The Sub-Miniature Toggle Switch is a compact, high-quality switch designed for a wide range of applications in IoT projects. This pack of 5 switches is ideal for prototyping, proof-of-concept development, and small-scale production. Each switch features a durable construction, stable contacts, and a compact size, making it perfect for use in space-constrained designs.
Technical Specifications
Operating Voltage: 12V DC
 Current Rating: 1A
 Contact Resistance: <20m
 Insulation Resistance: >100M
 Operating Temperature: -20C to 70C
 Dimensions: 6.5mm x 3.5mm x 2.5mm (L x W x H)
Pinout
The Sub-Miniature Toggle Switch has three pins:
Pin 1: Common (COM)
 Pin 2: Normally Open (NO)
 Pin 3: Normally Closed (NC)
Example 1: Basic Toggle Switch with LED Indicator
In this example, we'll use the Sub-Miniature Toggle Switch to control an LED indicator. We'll connect the switch to a microcontroller (Arduino Uno) and use it to toggle the LED on and off.
Hardware Requirements
Sub-Miniature Toggle Switch (Pack of 5)
 Arduino Uno
 LED indicator
 Resistor (1k)
 Breadboard and jumper wires
Code Example (Arduino)
```c
const int switchPin = 2;  // Connect switch pin 1 (COM) to Arduino digital pin 2
const int ledPin = 13;   // Connect LED indicator to Arduino digital pin 13
void setup() {
  pinMode(switchPin, INPUT);
  pinMode(ledPin, OUTPUT);
}
void loop() {
  int switchState = digitalRead(switchPin);
  if (switchState == HIGH) {
    digitalWrite(ledPin, HIGH);  // Turn on LED indicator
  } else {
    digitalWrite(ledPin, LOW);  // Turn off LED indicator
  }
  delay(50);
}
```
Example 2: Home Automation using ESP8266 and the Sub-Miniature Toggle Switch
In this example, we'll use the Sub-Miniature Toggle Switch to control a relay module connected to an ESP8266 microcontroller. We'll create a simple web interface to toggle a connected device on and off using the switch.
Hardware Requirements
Sub-Miniature Toggle Switch (Pack of 5)
 ESP8266 microcontroller (e.g., NodeMCU)
 Relay module (e.g., SRD-05VDC-SL-C)
 Breadboard and jumper wires
Code Example (ESP8266)
```c
#include <WiFi.h>
#include <WiFiClient.h>
const char ssid = "your_wifi_ssid";
const char password = "your_wifi_password";
const int switchPin = 2;  // Connect switch pin 1 (COM) to ESP8266 digital pin 2
const int relayPin = 15;  // Connect relay module to ESP8266 digital pin 15
WiFiServer server(80);
void setup() {
  Serial.begin(115200);
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(1000);
    Serial.println("Connecting to WiFi...");
  }
  Serial.println("Connected to WiFi");
  server.begin();
pinMode(switchPin, INPUT);
  pinMode(relayPin, OUTPUT);
}
void loop() {
  WiFiClient client = server.available();
  if (client) {
    String request = client.readStringUntil('
');
    if (request.indexOf("/toggle") != -1) {
      int switchState = digitalRead(switchPin);
      if (switchState == HIGH) {
        digitalWrite(relayPin, HIGH);  // Toggle device on
      } else {
        digitalWrite(relayPin, LOW);  // Toggle device off
      }
    }
    client.stop();
  }
  delay(50);
}
```
These examples demonstrate the versatility and ease of use of the Sub-Miniature Toggle Switch in various IoT applications.