

A rocker switch is a type of electrical switch that toggles between two positions, typically used to control power to a device. It features a rectangular or oval shape that rocks back and forth to open or close the circuit. Rocker switches are widely used due to their simplicity, durability, and ease of operation.








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 |
| Mounting Style | Panel mount |
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 (connect to power source) |
| Pin 2 | Output (connect to load/device) |
| Pin | Description |
|---|---|
| Pin 1 | Common (connect to power source) |
| Pin 2 | Normally Open (NO) output |
| Pin 3 | Normally Closed (NC) output |
Below is an example of how to use an 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 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 due to pull-up)
digitalWrite(ledPin, HIGH); // Turn on the LED
} else {
digitalWrite(ledPin, LOW); // Turn off the LED
}
}
Note: The
INPUT_PULLUPmode is used to simplify the circuit by eliminating the need for an external pull-up resistor.
Switch Does Not Toggle the Circuit:
Switch Feels Stiff or Does Not Rock Smoothly:
Circuit Overheats or Fails:
LED or Load Does Not Respond:
By following this documentation, you can effectively integrate a rocker switch into your projects and troubleshoot any issues that arise.