6 Pin Toggle Switch (3A 250V)
6 Pin Toggle Switch (3A 250V)
The 6 Pin Toggle Switch (3A 250V) is a type of electromechanical switch designed for use in various Internet of Things (IoT) applications, providing a reliable and efficient way to control electrical circuits. This toggle switch features six pins and is rated for 3A at 250V, making it suitable for a wide range of low-to-medium power devices.
| The 6 Pin Toggle Switch (3A 250V) is a bi-stable device, meaning it has two stable states | ON and OFF. When the switch is toggled, it connects or disconnects the circuit, allowing the flow of electrical current. This switch is commonly used to control devices such as LEDs, relays, solenoids, and small motors. |
Two pins for the input voltage (e.g., VCC and GND)
Two pins for the output terminals (e.g., NO and NC)
Two pins for the toggle mechanism (e.g., COM and ACT)
| The 6 Pin Toggle Switch (3A 250V) is suitable for a wide range of IoT applications, including |
250V
3A
10m
100M
-20C to 85C
-30C to 100C
10,000 cycles
5,000 cycles
Ensure the switch is used within its specified voltage and current ratings to avoid damage or electrical shock.
Use the switch in a well-ventilated area, away from flammable materials and explosive environments.
Avoid touching the switch's electrical terminals or internal components to prevent electrical shock or injury.
By providing a clear understanding of the 6 Pin Toggle Switch (3A 250V)'s functionality, key features, and technical specifications, this documentation aims to assist both technical professionals and informed hobbyists in selecting and utilizing this component effectively in their IoT projects.
6 Pin Toggle Switch (3A 250V) Component DocumentationOverviewThe 6 Pin Toggle Switch (3A 250V) is a versatile and reliable component designed for controlling AC or DC circuits. It features six terminals, allowing for multiple connections and configurations, and can handle up to 3A of current at 250V. This switch is ideal for various IoT applications, including smart home automation, industrial control systems, and robotics.Pinout and FunctionalityThe 6 Pin Toggle Switch has the following pinout:| Pin Number | Function |
| --- | --- |
| 1 | Common (COM) |
| 2 | Normally Open (NO) |
| 3 | Normally Closed (NC) |
| 4 | COM |
| 5 | NO |
| 6 | NC |The switch has two positions: ON and OFF. In the ON position, the COM pin is connected to the NO pins (2 and 5), and in the OFF position, the COM pin is connected to the NC pins (3 and 6).Example 1: Basic Toggle Switch Control in ArduinoIn this example, we'll use the 6 Pin Toggle Switch to control an LED connected to an Arduino board.```c++
const int ledPin = 13; // Choose any digital pin for the LED
const int switchPin = 2; // Connect the switch to any digital pinvoid setup() {
pinMode(ledPin, OUTPUT);
pinMode(switchPin, INPUT);
}void loop() {
int switchState = digitalRead(switchPin);
if (switchState == HIGH) {
digitalWrite(ledPin, HIGH); // Turn the LED on
} else {
digitalWrite(ledPin, LOW); // Turn the LED off
}
delay(1);
}
```Example 2: Home Automation with Raspberry Pi and PythonIn this example, we'll use the 6 Pin Toggle Switch to control a relay module connected to a Raspberry Pi, which will then control a household appliance.```python
import RPi.GPIO as GPIO
import time# Set up GPIO mode
GPIO.setmode(GPIO.BCM)# Define switch and relay pins
switch_pin = 17
relay_pin = 23# Set up switch and relay as inputs and outputs
GPIO.setup(switch_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(relay_pin, GPIO.OUT)try:
while True:
switch_state = GPIO.input(switch_pin)
if switch_state == GPIO.HIGH:
GPIO.output(relay_pin, GPIO.HIGH) # Turn the relay on
else:
GPIO.output(relay_pin, GPIO.LOW) # Turn the relay off
time.sleep(0.1)except KeyboardInterrupt:
GPIO.cleanup()
```Example 3: Industrial Control with ESP32 and MicroPythonIn this example, we'll use the 6 Pin Toggle Switch to control a motor connected to an ESP32 board using MicroPython.```python
import machine# Define switch and motor pins
switch_pin = machine.Pin(15, machine.Pin.IN, machine.Pin.PULL_UP)
motor_pin = machine.Pin(32, machine.Pin.OUT)while True:
switch_state = switch_pin.value()
if switch_state == 1:
motor_pin.value(1) # Turn the motor on
else:
motor_pin.value(0) # Turn the motor off
```These examples demonstrate how to use the 6 Pin Toggle Switch (3A 250V) in various contexts, including Arduino, Raspberry Pi, and ESP32 platforms. The switch's versatility and reliability make it an ideal component for a wide range of IoT applications.