11-17-2013 12:05 AM
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?
11-17-2013 02:45 AM
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.
11-17-2013 02:51 AM
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)
11-18-2013 05:49 PM
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
11-20-2013 12:37 AM
this is already my setting
what else can it be?
11-20-2013 01:18 PM
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
11-24-2013 02:15 AM
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
11-24-2013 02:02 PM
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