4 line input interface to step/dir drive
I am trying to replace an unreliable ULN2003 drive with a Gecko step/dir drive.
The controller has 2 PCB's. A CPU, and ULN2003 driver.
I have 6 signals from the CPU. The 4 lines are motor coil inputs to a standard ULN2003. Presumably the other 2 lines are an enable/disable latch, and a motor ground? Not sure. So basically I need a circuit that converts the 4 line coil input to step & direction signals. I imagine there are existing solutions, or if not perhaps a simple logic circuit will do it?
4 wire stepper input to step/dir
The CPU PCB & control is staying, What I need is a circuit to convert a simple 1/2, 2/3, 3/4, 4/1 motor coil signal, into a 2 wire step and direction signal.
I am fine with a micro solution so long as:
someone else is writing the code, and supplying the PCB, cause I am not doing that.
Preferably, it is a logic solution.
There is no previous known state of the motor... It is known at power up. 2 coils energized. I haven't looked at that, but most likely coil 1 & 2 everytime. The next state is either 2 & 3, or 1 & 4, etc..