LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

arduino stepper motor vi

hi

i am trying to use the arduino stepper motor vi but it doesnt seem to work.

when i upload the stepper motor sketch from the arduino example it work good

but when i try to use the vi its not working...weird thing is that if i connect the step pin to pin 1 in the arduino the engine start to move(even if i dont push the "start stepping" button) ,but when i connect it to the right pin-pin 3 its not working

someone know why?

0 Kudos
Message 1 of 8
(5,318 Views)

I don't know much about stepper motors but I do know that you cannot connect anything to pin 0 or pin 1 when using LIFA.  These two pins are used to communicate with the computer via the USB cable.

0 Kudos
Message 2 of 8
(4,116 Views)

ok
first of all thank you for your answer
but the problem is i am not trying to use pins 0 or 1,but the pins in the vi-2 and 3

i just say that i doesnt do anything,and the wierd thing is that when i connect the step pin to pin 1 (that as you said is being used to the communication) the motor is rotating with out a problem(but i can not control it)

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

Hello giladd,

Please check the following settings. A bad setting will cause the problems you are seeing.

On the front panel make sure stepper 1 is selected.

On the block diagram make sure Easy Driver is selected.

On the left side of the block diagram right click on the second LIFA control from the left and select front panel.  You should see a front panel labeled Stepper Configure Labview Interface for Arduino.  Make sure stepper pins 2 and 3 are selected. 

hrh1818

0 Kudos
Message 4 of 8
(4,116 Views)

this is already my setting

what else can it be?

0 Kudos
Message 5 of 8
(4,116 Views)

Did you reload LIFA_Base after testing the operation using the Easy Driver code you found on the web?  Did you forget that when you uploaded the Easy Driver code it overwrites the LIFA_Base code you previously installed.

Can you run the Analog Read Pin.VI example?

Do you have an oscilloscope?

hrh1818

0 Kudos
Message 6 of 8
(4,116 Views)

i remmber to re-load the lifa to the arduino

the anlog read vi is working(it give me a read of about 1.4v)

i have a scope,when i connect it to pin 1 the value is between 0-5v and for pin 3 its 5 v all the time

0 Kudos
Message 7 of 8
(4,116 Views)

Hello,

Maybe you have swapped the step and direction signals in the VI.  Set up the Front panel to send a long series of step signals to Arduino.  Monitor both pins 2 and 3 with your oscilloscope to see which pin has the step signal.  If you see a step signal on one of the pins connect that pin to the Easy Driver Step input, connect the other pin to the Easy Driver Direction Input and test the operation of your step motor.  If you do not see a step signal on either pins 2 or 3 repeat  the test with no connections between Arduino and the Easy Driver.  If you still do not see a step signal it maybe because there is a faulty digital output pin and you need to use two other digital output pins. 

Use the "Stepper Configure LIFA Front Panel  to select two other convenient digital pins for use with Easy Driver.  Next before connecting these pins to the Easy Driver board use the procedure given in the first paragraph to see if there is an output step signal and which pin has the step signal.  If you see a step signal connect the step and direction signals to the Easy Driver board  and test the operation of your step motor. 

hrh1818

0 Kudos
Message 8 of 8
(4,116 Views)