

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 and intuitive 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.








Below are the general technical specifications for a standard rocker switch. Note that specific values may vary depending on the model and manufacturer.
| Parameter | Specification |
|---|---|
| Voltage Rating | 12V DC, 24V DC, or 120-250V AC |
| Current Rating | 5A, 10A, 15A, or higher |
| Contact Resistance | ≤ 50 mΩ |
| Insulation Resistance | ≥ 100 MΩ |
| Operating Temperature | -25°C to +85°C |
| Mechanical Life | 10,000 to 50,000 cycles |
| Mounting Style | Panel mount or PCB mount |
Rocker switches typically have two or three pins, depending on their type (SPST, SPDT, etc.). Below is a table describing the pin configuration for a common SPST (Single Pole Single Throw) rocker switch:
| Pin Number | Name | Description |
|---|---|---|
| 1 | Input (Line) | Connects to the power source (e.g., live wire). |
| 2 | Output (Load) | Connects to the load (e.g., device being powered). |
For SPDT (Single Pole Double Throw) rocker switches, an additional pin (Pin 3) is present:
| Pin Number | Name | Description |
|---|---|---|
| 3 | Common (COM) | Connects to the common terminal for switching. |
Below is an example of how to use a rocker switch to control an LED with an Arduino UNO:
// Define the pin numbers
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 the switch is pressed (LOW), turn on the LED
digitalWrite(ledPin, HIGH);
} else {
// If the switch is not pressed (HIGH), turn off the LED
digitalWrite(ledPin, LOW);
}
}
Switch Not Working
Switch Feels Stiff or Stuck
Device Does Not Turn On
Erratic Behavior in Microcontroller Applications
Q: Can I use a rocker switch for both AC and DC circuits?
A: Yes, but ensure the switch is rated for the voltage and current of the specific circuit type.
Q: How do I know if my rocker switch is SPST or SPDT?
A: Check the number of pins and the datasheet. SPST switches have two pins, while SPDT switches have three.
Q: Can I use a rocker switch to control high-power devices?
A: Only if the switch's current and voltage ratings are sufficient. For high-power devices, consider using a relay in conjunction with the switch.
Q: What is the lifespan of a rocker switch?
A: Most rocker switches have a mechanical life of 10,000 to 50,000 cycles, depending on the quality and usage conditions.