04-23-2016 05:26 PM
Hi
I have a problem with Arduino
I create a shift register with variable speed by wait ms function and with 4 output
when run it on computer its work perfect and with high speed but when connect it with Arduino Mega its speed slow down and can not run the motor connect at 4 output pin
note I made the same code and it work perfect with My-RIO and run the motor
what is the problem ????????
04-25-2016 06:52 PM
Communication with Arduino from any application is extremely slow compared to running code on a myRIO. You will not be able to run a stepper motor at reasonable speed directly from LabVIEW via an Arduino (directly setting digital pins). The only way to do it with an Arduino is to have code on the Arduino controlling the actual stepper motor.
04-27-2016 10:18 AM
Thanks to you to your reply
Then there is no method to run the stepper with labVIEW and Arduino ???
04-27-2016 11:41 AM
You can but you have to implement the stepper controller code on the
Arduino and then send command to the stepper code. Many people use existing
libraries for the Arduino on the Arduino side.
04-27-2016 02:47 PM
Do you have an example to understand how to do it ???
04-27-2016 03:28 PM
What stepper motor driver are you using to connect an Arduino Mega to a stepper motor? Are you using a Unipolar or is it a Bipolar stepper motor?
hrh212
04-27-2016 03:52 PM
We use L298 module working as H-Bridge for two dc motor and
Also as stepper driver allowing four directions for current flow.
driver in this link http://www.geeetech.com/wiki/index.php/L298N_Motor_Driver_Board
and the motor 12 v Bipolar stepper motor of (350mA) current.
04-27-2016 11:33 PM
The"Documents" section for this community +contains a "L298 Stepper Driver:" example. The example does not use LIFA. Instead it uses a VI to send commands to an Arduino sketch, However, the links shown in the documentation no longer work.
hrh212