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

ref