06-25-2019 11:02 AM
Hi,
I am trying to control a stepper motor using Microstep Driver ST-M5045. I am using NI myDAQ.
I want to control the motor direction (clockwise/ anticlockwise). But I am not sure how to do the wiring with my DAQ. Which port of DAQ should be connected with which port of Microstep driver? The Driver link is here : https://www.sainsmart.com/products/cnc-4-5a-micro-stepping-stepper-motor-driver .
Any kind of help is really appreciated. Please help me with proper connection diagram
Solved! Go to Solution.
06-26-2019 12:36 PM
I'm not familiar with the myDAQ, but I have used similar stepper drivers in the past.
PUL- DIR- and ENA- can all be connected to the DAQ Gnd.
DIR+ and ENA+ should be connected to standard digital output pins on the DAQ.
PUL+ should be connected to a counter output.
Changing HIGH / LOW on ENA+ will enable or disable the driver (you will have to check which way around this is).
Changing HIGH / LOW on DIR+ will change the rotation direction.
You need to generate a pulse train on the PUL+ pin. Each pulse will be one (micro)step on of the stepper.
06-26-2019 01:05 PM
Thanks. Seems like this will work