6A 250V AC SPST ON-OFF Round Rocker Switch Black
6A 250V AC SPST ON-OFF Round Rocker Switch Black
The 6A 250V AC SPST ON-OFF Round Rocker Switch Black is a type of electrical switch used to control the flow of alternating current (AC) in various applications, including IoT devices, appliances, and industrial equipment. This switch is designed to provide a safe and reliable way to turn devices on and off, making it an essential component in many modern systems.
The 6A 250V AC SPST ON-OFF Round Rocker Switch Black is a Single-Pole Single-Throw (SPST) switch, which means it has two terminals and can be used to control a single circuit. When the switch is in the "ON" position, it connects the two terminals, allowing current to flow through the circuit. When the switch is in the "OFF" position, it breaks the connection between the two terminals, interrupting the current flow.
| The switch's primary function is to provide a simple and intuitive way to turn devices on and off. It is commonly used in applications where a simple, binary control mechanism is required, such as |
Controlling the power supply to a device or circuit
Turning lights or appliances on and off
Activating or deactivating sensors or actuators
250V AC
6A
SPST (Single-Pole Single-Throw)
Round Rocker
Black Plastic
Panel Mount
-20C to 85C
-40C to 100C
100M
2000V
| The 6A 250V AC SPST ON-OFF Round Rocker Switch Black is suitable for use in a wide range of applications, including |
IoT devices and sensors
Home appliances and automation systems
Industrial control systems and equipment
Medical devices and equipment
Aerospace and defense systems
When working with the 6A 250V AC SPST ON-OFF Round Rocker Switch Black, it is essential to follow proper safety precautions to avoid electrical shock or injury. Ensure that the switch is installed and used in accordance with the manufacturer's instructions and local electrical codes and regulations. Always turn off the power supply to the circuit before performing any maintenance or repairs.
Component Documentation: 6A 250V AC SPST ON-OFF Round Rocker Switch BlackOverviewThe 6A 250V AC SPST ON-OFF Round Rocker Switch Black is a single-pole single-throw (SPST) rocker switch designed for controlling AC circuits up to 250V. It features a robust construction, making it suitable for a wide range of applications, including IoT projects, home automation, and industrial control systems.PinoutThe switch has two terminals:Terminal 1: Input (connected to the power source)
Terminal 2: Output (connected to the load)Technical SpecificationsCurrent Rating: 6A
Voltage Rating: 250V AC
Contact Configuration: SPST ON-OFF
Actuator Type: Rocker
Color: Black
Operating Temperature: -20C to 70CCode ExamplesHere are a few code examples demonstrating how to use the 6A 250V AC SPST ON-OFF Round Rocker Switch Black in various contexts:Example 1: Basic On/Off Control using ArduinoIn this example, we'll use the rocker switch to control an LED connected to an Arduino board.```cpp
const int ledPin = 13; // choose the pin for the LED
const int switchPin = 2; // choose the pin for the switchvoid 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(50);
}
```Example 2: Home Automation using ESP32 and Wi-FiIn this example, we'll use the rocker switch to control a lamp connected to an ESP32 board using Wi-Fi.```cpp
#include <WiFi.h>const char ssid = "your_wifi_ssid";
const char password = "your_wifi_password";
const char lampUrl = "http://lamp_ip_address/control";WiFiClient client;
int switchPin = 0; // choose the pin for the switchvoid 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");
}void loop() {
int switchState = digitalRead(switchPin);
if (switchState == HIGH) {
client.begin(lampUrl);
client.println("GET /turn_on HTTP/1.1");
client.println("Host: lamp_ip_address");
client.println("Connection: close");
client.println();
} else {
client.begin(lampUrl);
client.println("GET /turn_off HTTP/1.1");
client.println("Host: lamp_ip_address");
client.println("Connection: close");
client.println();
}
delay(50);
}
```These examples demonstrate the basic usage of the 6A 250V AC SPST ON-OFF Round Rocker Switch Black in IoT applications. The switch can be used in various other contexts, such as industrial control systems, robotics, and more.