Round Rocker Switch 6A 250V 3 PIN RED LED
Round Rocker Switch 6A 250V 3 PIN RED LED
The Round Rocker Switch 6A 250V 3 PIN RED LED is a type of electrical switch designed for use in various applications, including IoT devices, appliances, and electronic circuits. This switch is characterized by its round rocker design, 3-pin configuration, and integrated red LED indicator.
| The primary function of the Round Rocker Switch is to control the flow of electrical current in a circuit. The switch has two states | ON and OFF. When the switch is in the ON position, it allows the electrical current to flow through the circuit, and when it is in the OFF position, it breaks the circuit, interrupting the current flow. |
6A (amperes)
250V (volts)
1500W (watts)
Round rocker switch with a momentary action (press-to-make)
SPST (Single Pole Single Throw) configuration
Red LED light indicates the switch's ON state
The LED is connected to one of the switch pins and requires an external power source
| 3-pin design with the following connections | |
| + Pin 1 | Input/Source (connected to the power source) |
| + Pin 2 | Output/Load (connected to the load or circuit being controlled) |
| + Pin 3 | LED (connected to the red LED indicator) |
Round rocker design with a smooth, quiet operation
Durable construction with a long lifespan
Compact size with a diameter of approximately 12mm
The switch can be mounted on a PCB (Printed Circuit Board) or a panel using the provided mounting holes
The switch is designed to operate within a temperature range of -20C to 80C (-4F to 176F)
The switch meets international safety standards, including UL, CE, and RoHS certifications
| The Round Rocker Switch 6A 250V 3 PIN RED LED is suitable for a wide range of applications, including |
IoT devices
Home automation systems
Industrial control systems
Appliances (e.g., lighting, fans, pumps)
Electronic circuits and projects
Make sure to follow proper safety guidelines when working with electrical components and circuits.
Ensure the switch is used within its rated specifications to prevent damage or failure.
Consult the datasheet and manufacturer's instructions for specific usage guidelines and precautions.
Component Documentation: Round Rocker Switch 6A 250V 3 PIN RED LEDOverviewThe Round Rocker Switch 6A 250V 3 PIN RED LED is a high-quality, ruggedized switch designed for use in a variety of IoT applications. This switch features a 3-pin configuration, a maximum current rating of 6A, and a maximum voltage rating of 250V. The switch also includes a built-in red LED indicator, which illuminates when the switch is in the ON position.PinoutThe switch has three pins:Pin 1: Input (connected to the power source)
Pin 2: Output (connected to the load)
Pin 3: Ground (connected to the ground)UsageThe Round Rocker Switch 6A 250V 3 PIN RED LED can be used in a variety of IoT applications, including:Home automation systems
Industrial control systems
Robotics and robotics-assisted devices
Security systemsCode Examples### Example 1: Basic Switching with ArduinoIn this example, we'll use the Round Rocker Switch 6A 250V 3 PIN RED LED to control an LED connected to an Arduino board.Hardware Requirements:Arduino Board (e.g. Arduino Uno)
Round Rocker Switch 6A 250V 3 PIN RED LED
LED
Breadboard
Jumper wiresSoftware Requirements:Arduino IDECode:
```c
const int switchPin = 2; // Pin 2 of the Arduino board
const int ledPin = 13; // Pin 13 of the Arduino boardvoid setup() {
pinMode(switchPin, INPUT);
pinMode(ledPin, OUTPUT);
}void loop() {
int switchState = digitalRead(switchPin);
if (switchState == HIGH) {
digitalWrite(ledPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
}
}
```
In this example, we connect the switch to digital pin 2 of the Arduino board, and an LED to digital pin 13. The `loop()` function reads the state of the switch and sets the LED accordingly.### Example 2: Home Automation with ESP32 and MQTTIn this example, we'll use the Round Rocker Switch 6A 250V 3 PIN RED LED to control a relay connected to an ESP32 board, which publishes the switch state to an MQTT broker.Hardware Requirements:ESP32 Board
Round Rocker Switch 6A 250V 3 PIN RED LED
Relay module (e.g. SRD-05VDC-SL-C)
Breadboard
Jumper wiresSoftware Requirements:ESP32 Arduino Core
PubSubClient libraryCode:
```cpp
#include <WiFi.h>
#include <PubSubClient.h>const char ssid = "your_wifi_ssid";
const char password = "your_wifi_password";
const char mqttServer = "your_mqtt_broker_ip";
const char mqttTopic = "home/automation/switch";WiFiClient espClient;
PubSubClient client(espClient);const int switchPin = 32; // Pin 32 of the ESP32 board
const int relayPin = 33; // Pin 33 of the ESP32 boardvoid 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");
client.setServer(mqttServer, 1883);
}void loop() {
int switchState = digitalRead(switchPin);
if (switchState == HIGH) {
digitalWrite(relayPin, HIGH);
client.publish(mqttTopic, "ON");
} else {
digitalWrite(relayPin, LOW);
client.publish(mqttTopic, "OFF");
}
delay(50);
}
```
In this example, we connect the switch to digital pin 32 of the ESP32 board, and a relay module to digital pin 33. The `loop()` function reads the state of the switch, sets the relay accordingly, and publishes the switch state to an MQTT broker using the PubSubClient library.Note: Make sure to modify the code to match your specific hardware and software setup. Additionally, always follow proper safety precautions when working with electrical components.