Limit switches to control motor direction

Click For Summary
SUMMARY

This discussion focuses on using two limit switches and two DPDT relays to control the direction of a permanent magnet motor. The user experiences issues with the motor not reversing direction correctly when limit switch 2 (S2) is engaged and struggles to implement a stop function when limit switch 1 (S1) is activated. The proposed solution includes verifying relay wiring and considering the use of a dedicated motor driver IC, which simplifies the control process and provides built-in protections.

PREREQUISITES
  • Understanding of DPDT relay operation
  • Knowledge of limit switch functionality
  • Familiarity with permanent magnet motor characteristics
  • Basic electronics and wiring principles
NEXT STEPS
  • Research the specifications and wiring of DPDT relays
  • Learn about motor driver ICs suitable for permanent magnet motors
  • Study the implementation of latching relays in motor control circuits
  • Explore troubleshooting techniques for relay-based motor control systems
USEFUL FOR

Electronics hobbyists, robotics engineers, and anyone involved in motor control systems who seeks to optimize the functionality of limit switches and relays in their projects.

zxcvb
Messages
10
Reaction score
1
I am trying to use two limit switches(this one) and two DPDT relays to control the direction of the motor. When the power is applied the motor should rotate one direction (direction for this question isn't important). Also, at this point (initialization) neither switch will be energized. The motor will rotate and move until it energizes the second limit switch (labeled Switch 2). At this point, the direction of the motor should reverse. The motor and hardware will then move towards switch one. Once the motor reaches switch one it should stop completely (not reverse direction again). Below is my basic wiring diagram.

I wired it up and when I supply power the motor rotates. However, whenever switch 2 is energized I can hear relay 2 energize and de-energizes quickly but no motor rotation.

Also, I am trying to implement a latching relay when the motor reverses direction. I do not know if my problem is occurring there.

Finally, I am having problems trying to figure out how to have the motor stop once switch 1 is energized.

Any help with my two problems (reversal of direction, and stop when switch 1 energized) would be greatly appreciated.
8E5EH.jpg
 
Engineering news on Phys.org
What type of motor? Permanent magnet motor?
 
First some standard shorthand:
K1 = relay 1
K2 = relay 2
S1 = limit switch 1
S2 = limit switch 2

Please verify if this is what you think is happening:

Event 1: (power on) K1 is energized, K2 is de-energized. S1 and S2 are both dis-engaged. Motor is spinning and motion is toward S2.
Event 2: (S2 engaged) K2 is energized, which de-energizes K1. Motor spins to produce motion towards S1.
Event 3: (S2 dis-engaged) K2 is de-energized, which energizes K1. Motor spins to produce motion towards S2.
Event 4: (S2 engaged) K2 is energized, which de-energizes K1. Motor spins to produce motion towards S1.
Event 5: (S2 dis-engaged) K2 is de-energized, which energizes K1. Motor spins to produce motion towards S2.
etc.

This should produce some observable chattering, unless I mis-interpreted your drawing.
 
Do you have a data sheet for the relays? Shouldn't the relay short the NO pins and disconnect the NC pins when it's energized? You have relay 1 wired as if the pins are going to be connected to the common or supply voltages depending on its state.
 
aam... why wouldn't you buy a Motor Driver IC with parameters of your motor? it comes with a datasheet with connection diagrams and operational manual.
these specialized IC s are chap, tiny,Bipolar,have built in voltage/current limiting/regulation and short circuit protection,are available for wide spectrum of motors, and take all the engineering weight off your shoulders. it's a "Buy-Solder-Off You Go" thing.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
17
Views
3K
  • · Replies 25 ·
Replies
25
Views
5K
Replies
21
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 7 ·
Replies
7
Views
810
  • · Replies 12 ·
Replies
12
Views
2K
Replies
37
Views
6K
Replies
3
Views
674