LabVIEW Interface for Arduino Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

AdafruitV2MotorshieldStepperDriver

Attached is a Beta version of an example using version 2 of the Adafruit Motor

Shield for use with either one or two stepper motors. This example does not use LIFA.

Note the following procedure assumes you have installed the

Adafruit Motor Shield on your Arduino Uno, connected one step

motor to Motor Ports M1 and M2 and if required connect the second step

motor to Motor Ports M3 and M4. The preferred power supply voltage for

this shield is 12 volts DC.  Maximum power supply voltage rating is 13.5 volts DC

For additional information on using the

Adadfruit Motor Shield V2 with stepper motors se:

<https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino/using-stepper-motors>

Installation Instructions

1.  Use 7zip to unpack "AdafruitV2MotorShieldStrepperDriver.zip.

If you don't have a copy of 7zip you can get a copy here.

<http://www.7-zip.org/>

2.  Move the Adafrit_MotorShield  and TextFinder libraries to your Arduuino

IDE "libraries" folder.

3. Move the AdafruitStepperDriverVersion2 sketch folder to your Arduino

sketch folder.

4. Move the AdafruitMotorShieldStepperDriver, X Running Sum and

Y Running sum VIs to your your collection of Labview examples folder.

5. Compile and download the AdafruitStepperDriverVersion2 sketch to your

Adruino Uno.

Operating Instructions

6. Open the AdafruitMotorShieldAStepperDriver.VI.

7. On the front panel set the serial Port to your Arduino

Uno's COM port

8. Set the baud rate to 9600 bits per second.

9. Run the VI.

10  Set the "X Steps Setpoint" and "Y Steps Setpoint" to the

number of steps you want the X and Y step motors to move.  

The step motor connected to M! and M2 is the X step motor.

and the step motor connected to M3 and M4 is the Y step motor.

11.  Click on the "Send" button to send the setpoint data to

the Arduino Uno and to start the motors stepping.

12. As required repeat steps 10 and 11.

13.  A negative "Steps Setpoint" will cause a step motor to

rotate in the opposite direction of a positive "Steps

Setpoint"

14.  The "X Step Position" and "Y Step Position" indicators

show how many steps the step motors have moved from their

starting position.

15.  To get back to the starting position multiply the "X Step

Position" and "Y Step Position" values by minus 1 and enter

these values into the their respective "X Steps Setpoint" and

"Y Steps Setpoint" controls and then click on "Send".

16.  To quit click on the "Stop" button.

hrh1818

Comments
dboutelier
Member
Member
on

Hi,

I only have Labview 2009, and therefore can't open your VIs. Could you please save the VIs in labview 2009 legacy format for me? Or will I miss important features preventing me to interact properly with arduino and the motor shield?

Regards,

David

Contributors