Stufin
Home Quick Cart Profile

Round Rocker switch 6A 250V 3 PIN RED LED

Buy Now on Stufin

Component Name

Round Rocker Switch 6A 250V 3 PIN RED LED

Component Description

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.

Functionality

The primary function of the Round Rocker Switch is to control the flow of electrical current in a circuit. The switch has two statesON 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.

Key Features

  • Ratings:

Current

6A (amperes)

Voltage

250V (volts)

Power

1500W (watts)

  • Switch Type:

Round rocker switch with a momentary action (press-to-make)

SPST (Single Pole Single Throw) configuration

  • Integrated LED Indicator:

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

  • Pin Configuration:
  • Physical Characteristics:
  • 3-pin design with the following connections
    + Pin 1Input/Source (connected to the power source)
    + Pin 2Output/Load (connected to the load or circuit being controlled)
    + Pin 3LED (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

    • Mounting Options:

    The switch can be mounted on a PCB (Printed Circuit Board) or a panel using the provided mounting holes

    • Operating Temperature:

    The switch is designed to operate within a temperature range of -20C to 80C (-4F to 176F)

    • Safety Features:

    The switch meets international safety standards, including UL, CE, and RoHS certifications

Applications

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

Important Notes

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.

Pin Configuration

  • Round Rocker Switch 6A 250V 3 PIN RED LED Documentation
  • Overview
  • The Round Rocker Switch 6A 250V 3 PIN RED LED is a type of momentary switch designed for use in IoT applications, offering a convenient and intuitive way to control devices. This switch features a red LED indicator, making it easy to visualize the switch's status.
  • Pin Description
  • The Round Rocker Switch has three pins, which are explained below:
  • 1. Pin 1: Input/Positive ( VIN )
  • Function: This pin is connected to the positive terminal of the power source.
  • Description: Apply the positive voltage ( VIN ) to this pin to power the switch and LED.
  • Typical Connection: Connect to VCC or the positive terminal of the power source (e.g., a battery or a voltage regulator).
  • 2. Pin 2: Output/Switch ( SW )
  • Function: This pin is the output of the switch, which is connected to the load or the device being controlled.
  • Description: When the switch is pressed, this pin is connected to Pin 1 ( VIN ), allowing the load to receive power. When the switch is released, this pin is disconnected from Pin 1.
  • Typical Connection: Connect to the load or the device being controlled (e.g., a relay, a solenoid, or an LED).
  • 3. Pin 3: Ground/Negative ( GND )
  • Function: This pin is connected to the negative terminal of the power source.
  • Description: This pin is used to complete the circuit and provide a return path for the current.
  • Typical Connection: Connect to GND or the negative terminal of the power source (e.g., a battery or a voltage regulator).
  • Connection Structure
  • Here is a general connection structure for the Round Rocker Switch 6A 250V 3 PIN RED LED:
  • Power Source
  • + Positive Terminal Pin 1 ( VIN )
  • + Negative Terminal Pin 3 ( GND )
  • Load/Device Being Controlled
  • + Input Terminal Pin 2 ( SW )
  • Switch LED Indicator
  • + The red LED is internally connected to Pin 1 ( VIN ) and Pin 3 ( GND ), and will illuminate when the switch is pressed and the circuit is complete.
  • Important Notes
  • Ensure the switch is rated for the voltage and current of your application (6A 250V in this case).
  • Use a suitable power source and wiring to handle the maximum current rating of the switch.
  • Verify the switch is properly connected to the load and power source to avoid damage or electrical shock.
  • By following this documentation, you should be able to properly connect and utilize the Round Rocker Switch 6A 250V 3 PIN RED LED in your IoT application.

Code Examples

Component Documentation: Round Rocker Switch 6A 250V 3 PIN RED LED
Overview
The 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.
Pinout
The 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)
Usage
The 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 systems
Code Examples
### Example 1: Basic Switching with Arduino
In 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 wires
Software Requirements:
Arduino IDE
Code:
```c
const int switchPin = 2;  // Pin 2 of the Arduino board
const int ledPin = 13;   // Pin 13 of the Arduino board
void 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 MQTT
In 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 wires
Software Requirements:
ESP32 Arduino Core
 PubSubClient library
Code:
```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 board
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");
  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.