I'm trying to make a simple limit system for a little gearbox. I was thinking I could use an arm that hits two microswitches (one on each wire) set up to give me the desired rotation, and if I used diodes across the microswitches in the opposite direction, that would let the motor still be reversed after hitting the limit. The motor is 12V, and will pull about 2 amps maximum stall current. My question is, is this a workable solution to use diodes in this fashion? If so what diodes should I use?
thanks for any advise.
Yes a common application. A diode blocks current flow when reaching one end of travel. Reversing the applied polarity allows motor to then turn opposite direction until reaching the opposite end of travel. Diode don't have to carry full motor current as they are used only to block flow, however the contacts of the limit switch do need to be rated at, or better yet well above, the actual maximum motor current rating. Extra set of contacts on each switch can be very useful so an attached micro knows what state the system is in, fully in one direction or fully in opposite direction, or somewhere between (possibly moving).