rocker-switch-dat
based on - KCD4-dat
6P 3-Position Rocker Switch Overview == K4D
π§© Terminology
- Rocker Switch: A type of switch that rocks back and forth like a seesaw. Pressing one side causes the other to rise.
- 6P (6 Pin): The switch has 6 terminals (pins) for wiring.
-
3-Position: The switch has three selectable states, typically:
- ON - OFF - ON
- Position 1 - Center (OFF) - Position 2
- Or used for Forward - Stop - Reverse in motor control applications.
βοΈ Wiring Diagram (ON - OFF - ON Type)
ββββββββββ¬βββββββββ¬βββββββββ β Pin 1 β Pin 3 β Pin 5 β β Common / Input ββββββββββΌβββββββββΌβββββββββ€ β Pin 2 β Pin 4 β Pin 6 β β Output (depends on position) ββββββββββ΄βββββββββ΄βββββββββ
- Position 1 (Left): Pin1 β Pin2, Pin3 β Pin4 connected
- Center (OFF): All pins disconnected
- Position 2 (Right): Pin1 β Pin6, Pin3 β Pin4 connected

Hacked KCD4 switch to switch directions


π§ Switch Pin Layout (Bottom View)
βββββ---ββββ¬ββββ---ββββ¬βββ---βββββ
β Pin 1 M1 β Pin 3 V+ β Pin 5 M2 β
βββββ---ββββΌβββ---βββββΌβββ---βββββ€
β Pin 2 M2 β Pin 4 V- β Pin 6 M1 β
βββββ---ββββ΄βββ---βββββ΄βββ---βββββ
Motor: [ Pin 1 ]ββMotorββ[ Pin 2 ]
Power: [ Pin 3 = +V ] [ Pin 4 = βV ]
Bridges: Pin1 = Pin6, Pin2 = Pin5 (internal)
π¦ Switch Behavior
| Switch Position | Internal Connection | Motor Polarity | Motor Direction |
|---|---|---|---|
| Position 1 | Pin 3 β Pin 1 (+) | ||
| Pin 4 β Pin 2 (β) | + to Motor A, β to B | Clockwise (CW) | |
| Center (OFF) | No connection | Motor disconnected | Stopped |
| Position 2 | Pin 3 β Pin 2 (+) | ||
| Pin 4 β Pin 1 (β) | + to Motor B, β to A | Counter-Clockwise |
β Summary
This switch setup allows you to:
- Toggle a DC motor forward/reverse
- Stop the motor in the center OFF position
- Use only 6 pins, no extra relays or logic