[insert contact resistance]
[insert contact resistance]
[insert insulation resistance]
[insert dielectric strength]
Physical Characteristics
[insert dimensions]
[insert weight]
[insert material, e.g., plastic, metal, etc.]
Packaging Information
[insert packaging type, e.g., blister pack, bag, etc.]
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.
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.