I am trying to figure out how to control a DC motor with a momentary switch as a trigger and limit switches for stops. The trigger needs to be momentary because I need three of them in parallel at different locations, so that it will operate if any of them are pressed.

The simple sequence is as follows:

  • Press button
  • Motor runs forward until limit switch is pressed then hold
  • Press button
  • Motor runs reverse until limit switch is pressed then hold
  • \$\begingroup\$ MCU controls motor with H-brigge type driver. Control buttons and limit switches connected to inputs. \$\endgroup\$
    – user263983
    Commented Mar 16, 2021 at 1:07
  • \$\begingroup\$ Shared clocks for each switch, a debounce cap across each button to R to clock from all switches with a series R 100-220 ohms and /2 FF to an FET full bridge ESC. \$\endgroup\$ Commented Mar 16, 2021 at 1:22
  • \$\begingroup\$ Hmm I'm having trouble finding the correct search term for toggle relays, but there's a chance you can use a break before make 2 pole pulse activated relay as it doesn't seem you're switching very often. Is the motor large enough that it must be contactor controlled, or can the limit switches be left in the power circuit? \$\endgroup\$
    – K H
    Commented Mar 16, 2021 at 2:57
  • \$\begingroup\$ Is the motor on the part that moves and pushes the limit switches? \$\endgroup\$ Commented Mar 16, 2021 at 3:52

1 Answer 1


You can use a relay with two independent NO and NC switches, DPDT relay (last one on the right).

diagram of relay connections

Image source: Electronics Tutorials - Electrical Relay

This properly connected will inverse the polarity on the motor when the relay is activated.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.