- Wed Mar 13, 2013 6:53 am
#156929
I want to use National Instument's LabVIEW and cDAQ-9188 with module NI-9403 to control an EasyDriver and a 5V Unipolar Stepper Motor (42L048D1U). I have seen the Arduino examples with LabVIEW, but I am trying to avoid buying Arduinos and learning how to program them, since I have a cDAQ module that can output Digital waveforms.
I have tried just plugging everything in exactly how it is in the Quickstart Arduino example (plugging in the brown and black wires to Motor A and the orange and yellow wires to Motor B) and running an example code from NI, controlling the stepper motor by outputting a direction (Low or High) and a Low to High step. I assumed I could control the EasyDriver with just these two lines, but I am having some issues.
The code can vary the low and high pulse width from 1mseconds and up.
Some symptoms are:
The motor steps rarely and inconsistently
The motor only steps in one direction
The motor is receiving the Input power when it is a 5V motor. I believe there is a way to regulate this through EasyDriver but I cannot find out how. This is an issue because I believe EasyDriver requires between 7 and 30V, which is sent to the 5V motor.
Thanks for your help!
*Edit- Motor is rated for 960mA/phase so I am safe on the 'supplying more voltage than necessary' problem according to the ED FAQ I can set the current to max on the pot and be safe then.
And if anyone is familiar with LabVIEW and think it is a software problem here is the example I use
https://decibel.ni.com/content/docs/DOC-6385
I have also created my own test programs to make sure it is indeed outputting a 0-5V step and dir and yes it is, but sometimes the ED shorts the High signal and it will end up Low.
I have tried just plugging everything in exactly how it is in the Quickstart Arduino example (plugging in the brown and black wires to Motor A and the orange and yellow wires to Motor B) and running an example code from NI, controlling the stepper motor by outputting a direction (Low or High) and a Low to High step. I assumed I could control the EasyDriver with just these two lines, but I am having some issues.
The code can vary the low and high pulse width from 1mseconds and up.
Some symptoms are:
The motor steps rarely and inconsistently
The motor only steps in one direction
The motor is receiving the Input power when it is a 5V motor. I believe there is a way to regulate this through EasyDriver but I cannot find out how. This is an issue because I believe EasyDriver requires between 7 and 30V, which is sent to the 5V motor.
Thanks for your help!
*Edit- Motor is rated for 960mA/phase so I am safe on the 'supplying more voltage than necessary' problem according to the ED FAQ I can set the current to max on the pot and be safe then.
And if anyone is familiar with LabVIEW and think it is a software problem here is the example I use
https://decibel.ni.com/content/docs/DOC-6385
I have also created my own test programs to make sure it is indeed outputting a 0-5V step and dir and yes it is, but sometimes the ED shorts the High signal and it will end up Low.