Hi all,
I'm using a DM856 stepper motor driver (made by Leadshine) to drive a small stepper motor. The driver takes 3 inputs, here's a print screen from the manual:
**broken link removed**
ENA can be left disconnected as per the manual, so the only inputs used are PUL and DIR, although DIR can also be left disconnected and the motor will simply turn in one direction. Currently I have the PUL+ connected directly to the output pin of a PIC16F887 (PORTC pin 0) and PUL- to 0VDC, but I just noticed that the above connection diagram is different to how I'm doing it. I'm guessing that I need to change the wiring and instead of using the pins on the PIC as source, I need them configured as sink. If so, do I simply connect them like this:
**broken link removed**
and drive the output low to sink current (set PUL high) or high to stop sinking current (set PUL low).
Does the above make any sense or am I doing things wrong? I've never used a PIC output as a sink, so haven't got much experience in the area.
Regards,
T.
I'm using a DM856 stepper motor driver (made by Leadshine) to drive a small stepper motor. The driver takes 3 inputs, here's a print screen from the manual:
**broken link removed**
ENA can be left disconnected as per the manual, so the only inputs used are PUL and DIR, although DIR can also be left disconnected and the motor will simply turn in one direction. Currently I have the PUL+ connected directly to the output pin of a PIC16F887 (PORTC pin 0) and PUL- to 0VDC, but I just noticed that the above connection diagram is different to how I'm doing it. I'm guessing that I need to change the wiring and instead of using the pins on the PIC as source, I need them configured as sink. If so, do I simply connect them like this:
**broken link removed**
and drive the output low to sink current (set PUL high) or high to stop sinking current (set PUL low).
Does the above make any sense or am I doing things wrong? I've never used a PIC output as a sink, so haven't got much experience in the area.
Regards,
T.