Electronic – Change Direction of 12v DC Motor Rotation using Relay

dc motorpolarityrelayreverse-polarityswitches

I want to make a circuit to change 12 Volt DC Motor direction and move some thing between two points. Using Relay or some basic limit switches.Like this Image.

I got a Circuit As i want…

AUTOMATIC FORWARD-REVERSE A MOTOR

The following circuit allows a motor (such as a train) to travel in the forward direction until it hits the "up limit" switch. This sends a pulse to the latching relay to reverse the motor (and ends the short pulse). The train travels to the "down limit" switch and reverses.

enter image description here

If the motor can be used to click a switch or move a slide switch, the following circuit can be used:

enter image description here

Please Help me to understand this circuit and how to wire these things.

Best Answer

Something like this should work. Note that the limit switches are different- one is normally closed and the other is normally open. If you have a relay with three form C contacts you can avoid using the diodes.

schematic

simulate this circuit – Schematic created using CircuitLab

The two contacts are used to reverse the motor in the usual way, but one contact does double duty as a self-hold for the relay. The diodes prevent SW2 from shorting out the supply when the relay is de-energized and the limit switch to engage the relay is activated.

You can put a bridge rectifier across the motor to absorb inductive spikes from the motor inductance.