LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

stepper control with Arduino Mega and LabVIEW

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 ????????

0 Kudos
Message 1 of 8
(4,349 Views)

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.

Message 2 of 8
(3,574 Views)

Thanks to you to your reply

Then there is no method to run the stepper with labVIEW and Arduino ???

0 Kudos
Message 3 of 8
(3,574 Views)

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.

0 Kudos
Message 4 of 8
(3,574 Views)

Do you have an example to understand how to do it ???

0 Kudos
Message 5 of 8
(3,574 Views)

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

0 Kudos
Message 6 of 8
(3,574 Views)

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.

0 Kudos
Message 7 of 8
(3,574 Views)

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

0 Kudos
Message 8 of 8
(3,574 Views)