DPDT On-Off-On Rocker Switch (16A) 250V AC - 6pin
DPDT On-Off-On Rocker Switch (16A) 250V AC - 6pin
The DPDT On-Off-On Rocker Switch is a type of electrical switch designed for use in various IoT applications, including home automation, industrial control systems, and consumer electronics. This 6-pin switch features a Double Pole Double Throw (DPDT) configuration, allowing it to control two separate circuits simultaneously.
The DPDT On-Off-On Rocker Switch is designed to provide three distinct states | ON, OFF, and ON. This means that the switch can toggle between two ON positions and one OFF position, making it ideal for applications that require multiple modes of operation. The switch's rocker design allows for easy actuation, with a clear and tactile feedback for the user. |
250V AC
16A
5 m
100 M
1500 V AC
-40C to 85C
-40C to 125C
10,000 cycles
IP20
Home automation systems
Industrial control systems
Consumer electronics
Lighting systems
HVAC systems
The switch should be installed and used in accordance with the manufacturer's instructions and relevant safety standards.
The switch should be handled and stored in a clean, dry environment to prevent damage or malfunction.
The switch should not be used in applications that exceed its rated voltage, current, or temperature specifications.
By providing a detailed description of the DPDT On-Off-On Rocker Switch, this documentation aims to help technical professionals and informed hobbyists understand the component's functionality, key features, and applications, ensuring safe and effective use in various IoT applications.
DPDT on-off-on Rocker Switch (16A) 250V AC - 6pin
Overview
The DPDT on-off-on Rocker Switch (16A) 250V AC - 6pin is a type of double-pole double-throw (DPDT) switch that allows for the control of two separate circuits or devices. This switch features a rocker-style actuator and has a maximum rating of 16A at 250V AC. The 6-pin configuration enables connections for two poles, each with a common terminal and two normally open (NO) terminals.
Pinout
The DPDT on-off-on Rocker Switch (16A) 250V AC - 6pin has the following pinout:
| Pin | Function |
| --- | --- |
| 1 | Pole 1 Common (COM1) |
| 2 | Pole 1 Normally Open 1 (NO1_1) |
| 3 | Pole 1 Normally Open 2 (NO1_2) |
| 4 | Pole 2 Common (COM2) |
| 5 | Pole 2 Normally Open 1 (NO2_1) |
| 6 | Pole 2 Normally Open 2 (NO2_2) |
Example 1: Basic On-Off-On Rocker Switch Operation
In this example, we will demonstrate the basic operation of the DPDT on-off-on Rocker Switch (16A) 250V AC - 6pin using an Arduino Uno board.
Circuit Diagram:
<IMAGE>
Arduino Code:
```c
const int switchPin = 2; // Connect the switch to digital pin 2
const int ledPin1 = 13; // Connect LED 1 to digital pin 13
const int ledPin2 = 12; // Connect LED 2 to digital pin 12
void setup() {
pinMode(switchPin, INPUT);
pinMode(ledPin1, OUTPUT);
pinMode(ledPin2, OUTPUT);
}
void loop() {
int switchState = digitalRead(switchPin);
if (switchState == HIGH) {
// Switch is in the "on" position
digitalWrite(ledPin1, HIGH);
digitalWrite(ledPin2, LOW);
} else if (switchState == LOW && digitalRead(3) == HIGH) {
// Switch is in the "off" position
digitalWrite(ledPin1, LOW);
digitalWrite(ledPin2, LOW);
} else {
// Switch is in the "on" position (second circuit)
digitalWrite(ledPin1, LOW);
digitalWrite(ledPin2, HIGH);
}
delay(10);
}
```
Example 2: Controlling Two Independent Circuits
In this example, we will demonstrate how to use the DPDT on-off-on Rocker Switch (16A) 250V AC - 6pin to control two independent circuits.
Circuit Diagram:
<IMAGE>
Raspberry Pi Python Code:
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
# Define the switch pins
switch_pin1 = 17
switch_pin2 = 23
# Define the output pins
output_pin1 = 18
output_pin2 = 24
GPIO.setup(switch_pin1, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(switch_pin2, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(output_pin1, GPIO.OUT)
GPIO.setup(output_pin2, GPIO.OUT)
while True:
switch_state1 = GPIO.input(switch_pin1)
switch_state2 = GPIO.input(switch_pin2)
if switch_state1 == GPIO.HIGH:
# Switch 1 is in the "on" position
GPIO.output(output_pin1, GPIO.HIGH)
elif switch_state1 == GPIO.LOW and GPIO.input(3) == GPIO.HIGH:
# Switch 1 is in the "off" position
GPIO.output(output_pin1, GPIO.LOW)
else:
# Switch 1 is in the "on" position (second circuit)
GPIO.output(output_pin1, GPIO.HIGH)
if switch_state2 == GPIO.HIGH:
# Switch 2 is in the "on" position
GPIO.output(output_pin2, GPIO.HIGH)
elif switch_state2 == GPIO.LOW and GPIO.input(5) == GPIO.HIGH:
# Switch 2 is in the "off" position
GPIO.output(output_pin2, GPIO.LOW)
else:
# Switch 2 is in the "on" position (second circuit)
GPIO.output(output_pin2, GPIO.HIGH)
time.sleep(0.1)
```
Note: The above examples are for illustration purposes only and may require modifications based on the specific application and setup. Ensure proper safety measures and electrical isolation when working with AC circuits.