LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Control stepper motor with arduino in labview

I'm new to labview so some help is needed my overall project should have the ability:

•to take flame images using the camera and software algorithm,

•to extract the geometric properties of the flame (height, width and area),

•to compare this with desired user input

•to control the fuel and air supplies using motor controlled valves,

•to dynamically shape the flame until the user inputted dimensions are met

with an acceptable error.

•to use a graph produced showing settling time and percentage error

I'm currently at the moment just trying to make my stepper motor (Astroyon Y163) move. Its connected directly to the arduino using a PCB board.

I thought it was as simple as setting the pins, high and low This doesn't seems to be the case.I've looked at the example in labview, which uses an easydriver whereas I don't.

I've attached my project so far.

Thanks in advance

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

Trying to run a stepper motor entirely on the LabVIEW side of LIFA is going to be really slow and might not work at all, I don't know.  What do your PCB do?  Is there a reason you don't try to use an EasyDriver board?

Also, setting pin modes that never change should be done only once immediately after Init.vi and before any loops.  This will speed up the code.

0 Kudos
Message 2 of 8
(3,592 Views)

Thanks for the reply, Why would it be slow, is LIFA not created to do this sort of task?

Below is the components on my PCB board,

PCB Board Components.png

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

LIFA is designed to be an executive controller and to let Arduino handle the grunt work. 

What is the part number for your motor driver?

hrh1818

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

LIFA speed is limited by serial communication, the overhead associated with each packet of information and EVERYTHING running on your computer.  So, most anything that is time-sensitive should be done in the Arduino and just have LabVIEW give it basic commands.

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

Part number of the motor driver i'm using is ASTROSYN – Y163. photo.JPG

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

I am looking for the part number of the motor driver ICs you are using.   The image you provided shows two 16 pin ICs with the title Motor Drivers above the ICs. This is the part number we need.

Instead you provided a part number for the stepper motor you are using.

hrh1818

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

Dear Everyone

I have the same issue with my stepper motor

I didnt come across this thread.

I post my questions in a new thread here

https://decibel.ni.com/content/thread/21171

Can any1 please help me with it

Hope to hear from u soon

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