Since diode cr1 will not conduct with a negative potential across it the motor will stop.
Dc motor limit switch circuit.
Any help in amending the code to include the limit switches would be greatly appreciated as i am a bit out of my depth.
Enjoy the videos and music you love upload original content and share it all with friends family and the world on youtube.
As illustrated the relays have to be dc same coil voltage as the motor but the bottom can be separated and fed from a different voltage.
When you switch off power to an ac circuit a voltage spark or arc is created.
The interlocks are specially important because if both relays are on it would be a short circuit.
When the control switch is held in the right position the motor runs until the right limit switch opens.
Imagine you have two circuits each carrying the same current one is an ac circuit and the other is a dc circuit.
I have attached a schematic using push buttons instead of limit switches.
The switch s1 is used to instantly reverse the motor direction whenever.
A very cool and easy dc motor speed controller circuit could be build using a just a single mosfet a resistor and a pot as shown below.