I'm using a motor controller that has two wires which need to be shorted every time the motor direction is reversed. I want to operate this using a microcontroller (dsPIC33).
Can someone please tell me how i can control short (and later disconnect) these wires using the microcontroller? Can I use a relay/switch? If yes, how do I connect it?
Relay part is the easy one, but how are you going to sense the direction of the motor ..
Usually it is done with a 2-wave rotary encoder somehow driven by the motor’s shaft ..
The motors i've got came with an attached controller box. I dont really know what is inside that box. Only that it has two wires for speed control, two for power and two that need to be shorted to drive the motor in reverse direction.
Now the speed and direction control signals are coming from a dsPIC microcontroller. The encoding is done separately and it is handled by the dsPIC directly.
I only need to control the direction of motor by shorting these two wires. But i dont know what current they draw or what they are connected to.. so how do i connect the relay/