Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Rocker Switch: Examples, Pinouts, and Specs

Image of Rocker Switch
Cirkit Designer LogoDesign with Rocker Switch in Cirkit Designer

Introduction

A rocker switch is a type of electrical switch that operates by rocking a lever back and forth. It is widely used to control the flow of electrical power to devices, offering a simple on/off functionality. Rocker switches are commonly found in household appliances, power tools, automotive dashboards, and industrial equipment due to their durability and ease of use.

Explore Projects Built with Rocker Switch

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
SPST Rocker Switch Array Circuit
Image of SWITCH CONNECTION: A project utilizing Rocker Switch in a practical application
This circuit features a parallel arrangement of SPST rocker switches, each capable of independently controlling the connection of a separate circuit branch to a common line. It is likely designed for simple on/off control of multiple individual loads or signals, with each switch operating a distinct load or signal path.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered LED Circuit with Rocker Switch Control
Image of dffd: A project utilizing Rocker Switch in a practical application
This circuit consists of a 5V battery, a rocker switch, and a red LED. The rocker switch controls the flow of current from the battery to the LED, allowing the LED to turn on or off based on the switch's position.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered LED Indicator with Rocker Switch
Image of EXP.6 E: A project utilizing Rocker Switch in a practical application
This circuit consists of a power source, a rocker switch, and a red LED. The rocker switch controls the connection between the power source and the LED, allowing the LED to light up when the switch is in the 'on' position.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered LED Indicator with Rocker Switch
Image of EXP-6: Led ON/OFF Using ON-OFF Switch: A project utilizing Rocker Switch in a practical application
This circuit consists of a power source, a rocker switch, and a red LED. The rocker switch controls the connection between the power source and the LED, allowing the LED to be turned on or off.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Rocker Switch

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of SWITCH CONNECTION: A project utilizing Rocker Switch in a practical application
SPST Rocker Switch Array Circuit
This circuit features a parallel arrangement of SPST rocker switches, each capable of independently controlling the connection of a separate circuit branch to a common line. It is likely designed for simple on/off control of multiple individual loads or signals, with each switch operating a distinct load or signal path.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of dffd: A project utilizing Rocker Switch in a practical application
Battery-Powered LED Circuit with Rocker Switch Control
This circuit consists of a 5V battery, a rocker switch, and a red LED. The rocker switch controls the flow of current from the battery to the LED, allowing the LED to turn on or off based on the switch's position.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of EXP.6 E: A project utilizing Rocker Switch in a practical application
Battery-Powered LED Indicator with Rocker Switch
This circuit consists of a power source, a rocker switch, and a red LED. The rocker switch controls the connection between the power source and the LED, allowing the LED to light up when the switch is in the 'on' position.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of EXP-6: Led ON/OFF Using ON-OFF Switch: A project utilizing Rocker Switch in a practical application
Battery-Powered LED Indicator with Rocker Switch
This circuit consists of a power source, a rocker switch, and a red LED. The rocker switch controls the connection between the power source and the LED, allowing the LED to be turned on or off.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications:

  • Power control for electronic devices and appliances
  • Automotive systems (e.g., headlights, auxiliary lights)
  • Industrial machinery and equipment
  • Audio and video equipment
  • Power strips and surge protectors

Technical Specifications

Key Technical Details:

  • Voltage Rating: Typically ranges from 12V to 250V AC (varies by model)
  • Current Rating: Commonly 2A to 20A
  • Switch Type: SPST (Single Pole Single Throw), SPDT (Single Pole Double Throw), or DPDT (Double Pole Double Throw)
  • Operation: Maintained (latching) or momentary
  • Contact Resistance: ≤ 50 mΩ (typical)
  • Insulation Resistance: ≥ 100 MΩ at 500V DC
  • Mechanical Life: Up to 50,000 cycles or more
  • Operating Temperature: -20°C to +85°C (varies by model)
  • Mounting Style: Panel mount with snap-in or screw-in options

Pin Configuration and Descriptions:

Below is a typical pin configuration for a SPST rocker switch:

Pin Number Label Description
1 Input Connects to the power source (e.g., +12V)
2 Output Connects to the load (e.g., device input)
3 (optional) Ground Used for illumination (if LED is present)

For a DPDT rocker switch, the pin configuration may look like this:

Pin Number Label Description
1 Input 1 First input terminal
2 Output 1 First output terminal
3 Input 2 Second input terminal
4 Output 2 Second output terminal
5 (optional) LED+ Positive terminal for LED illumination
6 (optional) LED- Negative terminal for LED illumination

Usage Instructions

How to Use the Rocker Switch in a Circuit:

  1. Identify the Pins: Refer to the pin configuration table above to determine the input, output, and optional LED pins.
  2. Connect the Power Source: Attach the positive terminal of the power source to the input pin of the switch.
  3. Connect the Load: Connect the output pin of the switch to the device or load you want to control.
  4. Optional LED Wiring: If the rocker switch has an LED indicator, connect the LED+ pin to the positive terminal of the power source and the LED- pin to ground.
  5. Secure the Switch: Mount the rocker switch into the panel or enclosure using the snap-in or screw-in mechanism.

Important Considerations:

  • Voltage and Current Ratings: Ensure the switch's voltage and current ratings match or exceed the requirements of your circuit.
  • Polarity: For illuminated switches, observe the correct polarity when wiring the LED pins.
  • Debouncing: If using the switch in a digital circuit, consider implementing debouncing to avoid false triggering.
  • Safety: Always disconnect power before wiring or modifying the circuit.

Example: Connecting a Rocker Switch to an Arduino UNO

Below is an example of using a SPST rocker switch to control an LED with an Arduino UNO:

// Define pin connections
const int switchPin = 2;  // Pin connected to the rocker switch
const int ledPin = 13;    // Pin connected to the onboard LED

void setup() {
  pinMode(switchPin, INPUT_PULLUP); // Set switch pin as input with pull-up resistor
  pinMode(ledPin, OUTPUT);          // Set LED pin as output
}

void loop() {
  int switchState = digitalRead(switchPin); // Read the state of the switch

  if (switchState == LOW) { // If switch is pressed (LOW due to pull-up)
    digitalWrite(ledPin, HIGH); // Turn on the LED
  } else {
    digitalWrite(ledPin, LOW);  // Turn off the LED
  }
}

Notes:

  • The INPUT_PULLUP mode is used to simplify wiring by enabling the internal pull-up resistor.
  • The switch connects the pin to ground when pressed, resulting in a LOW signal.

Troubleshooting and FAQs

Common Issues:

  1. Switch Not Working:

    • Cause: Incorrect wiring or loose connections.
    • Solution: Double-check the pin configuration and ensure all connections are secure.
  2. LED Indicator Not Lighting Up:

    • Cause: Incorrect polarity or insufficient voltage.
    • Solution: Verify the LED pins are connected correctly and the voltage matches the LED's requirements.
  3. Switch Feels Loose in the Panel:

    • Cause: Improper mounting or incorrect panel cutout size.
    • Solution: Ensure the panel cutout matches the switch's specifications and secure it properly.
  4. Switch Overheating:

    • Cause: Exceeding the current or voltage rating.
    • Solution: Use a switch with appropriate ratings for your application.

FAQs:

  • Q: Can I use a rocker switch to control DC circuits?

    • A: Yes, rocker switches can control both AC and DC circuits, provided the voltage and current ratings are suitable.
  • Q: How do I know if my rocker switch is SPST or DPDT?

    • A: Check the number of pins and the datasheet. SPST switches typically have 2 or 3 pins, while DPDT switches have 6 pins.
  • Q: Can I use a rocker switch without an LED?

    • A: Yes, the LED is optional and does not affect the basic on/off functionality of the switch.
  • Q: What is the difference between maintained and momentary rocker switches?

    • A: Maintained switches stay in their position (on or off) until toggled, while momentary switches return to their default position when released.