LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Interface for Arduino: Stepper Motor Example

I am trying to run a stepper motor using LIFA's "Arduino Stepper Motor.vi" but can't get the VI to control my motor.

Specifications:

Stepper Motor: NEMA-17 size - 200 steps/rev, 12V 350mA, https://www.adafruit.com/product/324

Arduino Board: Arduino Uno, http://arduino.cc/en/Main/arduinoBoardUno

Motor Driver: EasyDriver Stepper Motor Driver, https://www.sparkfun.com/products/10267

Power Supply: 9.6V, 300mA wall wart

I have tested my stepper motor using the example Arduino code, but I want to control the motor with LabVIEW. I have flashed the LIFA_Base firmware on the Arduino and then tried to run the "Arduino Stepper Motor.vi"...but nothing happens. I am attaching a screen shot of the VI (slightly modified to show that I am using COM5 for my case) and a picture of my electrical setup.

Please help me identify my problem. Thanks!

Note: I apologize for the poor picture quality (but it's been labeled for clarity)

0 Kudos
Message 1 of 4
(10,301 Views)

Try swapping the step and dir leads at either the Arduino board or at the easy stepper board.  The default settings in the VI show 2 at the top and 3 at the bottom of the input pin control. This setting outputs the step signal on Arduino's pin 2 and the direction signal on pin 3,   Whereas the Fritzing diagram shows the Arduino's pin 3 is the step signal and pin 2 is the dir signal.

hrh1818

0 Kudos
Message 2 of 4
(5,205 Views)

HOW TO CONTROL A PICK AND PLACE ROBOT USING STEPPER MOTOR

0 Kudos
Message 3 of 4
(5,205 Views)

That is an extremely broad question.  One that doesn't have a simple answer.  If you have issues with some code using LIFA, please start a new discussion and explain what exactly you are having trouble with.

0 Kudos
Message 4 of 4
(5,204 Views)