

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 and is characterized by its 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.








Below are the general technical specifications for a standard rocker switch. Note that specific values may vary depending on the manufacturer and model.
| Parameter | Specification |
|---|---|
| Voltage Rating | 12V DC, 24V DC, or 120V/240V AC |
| Current Rating | 5A, 10A, or 15A (depending on model) |
| Contact Resistance | ≤ 50 mΩ |
| Insulation Resistance | ≥ 100 MΩ |
| Operating Temperature | -25°C to 85°C |
| Mechanical Lifespan | 10,000 to 50,000 cycles |
| Electrical Lifespan | 5,000 to 10,000 cycles |
Rocker switches typically have two or three pins, depending on whether they are single-pole single-throw (SPST) or single-pole double-throw (SPDT). Below is a table describing the pin configuration:
| Pin | Description |
|---|---|
| Pin 1 | Input terminal (connect to power source) |
| Pin 2 | Output terminal (connect to load) |
| Pin | Description |
|---|---|
| Pin 1 | Common terminal (connect to power source) |
| Pin 2 | Normally Open (NO) terminal (connect to load) |
| Pin 3 | Normally Closed (NC) terminal (optional use) |
Below is an example of how to use a rocker switch to control an LED with an Arduino UNO:
// Define pin connections
const int switchPin = 2; // Rocker switch connected to digital pin 2
const int ledPin = 13; // LED connected to digital pin 13
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 ON (connected to ground)
digitalWrite(ledPin, HIGH); // Turn on the LED
} else {
digitalWrite(ledPin, LOW); // Turn off the LED
}
}
Note: The
INPUT_PULLUPmode is used to simplify wiring by enabling the internal pull-up resistor of the Arduino.
Switch Does Not Toggle Power:
Switch Feels Stiff or Does Not Rock Smoothly:
Load Does Not Turn On:
Sparks or Arcing When Switching:
By following this documentation, you can effectively integrate a rocker switch into your projects and troubleshoot common issues with ease.