LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

DC Motor Control with Arduino and Polulo Motor Driver

I am trying to control a motor to swing a hammer back and forth at a user inputed speed

I am using an arduino uno and this motor driver:

http://www.pololu.com/product/2502/resources

motor: http://www.phidgets.com/products.php?category=38&product_id=3271E_0

I am very new to labview and have only used it to do simple signal analysis of audio signals. 

I have downloaded the arduino labview interface.  I know that I should probably be using the PWMs and the encoder to control the motor.

Any help on getting started?

0 Kudos
Message 1 of 5
(6,697 Views)

Encoders are not natively suppored by LIFA.  Also, since you are new to LIFA, I highly recommend that you don't use LIFA because it is effectively deprecated.  The replacement for LIFA is called LINX and can be found (and is supported) at http://www.labviewhacker.com/linx.

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

I had checked out that, but my group had found more examples with LIFA.  We currently have an example that we have modified but are unable to get any motor movement.  We have checked the voltage reading from PWM pin #9 but have gotten nothing.  We are also currently no longer trying to use the encoder. 

Can you check this out and see if you have any ideas?

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

The LIFA was designed for use with the Adafruit Motor Shield.  The Pololu Dual VNH5019 Motor Driver shield is not compatible with the Adafruit Motor Shield.  Instead you will need to use a library supplied by Pololu to use the VNH6019 motor shield. Go to the following page

<http://www.pololu.com/product/2502/resources>

Click on the link that says "Arduino library for the Pololu dual VNH5019 motor driver shield".

On the right side of the page click on Download Zip.

Un zip the download.

Move the DualVNH5019MotorShield folder to the Arduino Libraries folder.

Connect your motor to the Pololu Dual VNH5019 motor shield using the instructions supplied by Pololu.

Run the Arduino IDE, open the Libraries > DualVNH5019MotorShield >Examples >Demo > Demo.imo file.

Compile and download the demo program to your Arduino board.

This demo program does not provide a method for the user to set the motor speed.  However you can use the Arduino IDE to monitor the current used by the motor at four different speeds.

hrh1818

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

Hi bmfrantz57,

I would like to use the same driver board (Pololu Dual VNH5019 Shield) for a linear actuator from ServoCity. The actuator consists of a DC motor and a 10k pot for position feedback.

I have no practical experience with Labview but I do have LVH-LINX up and running and have the simple blink vi working.

Your application is very close to what I am trying to do. Were you successful at getting Labview to work? If so, would you mind sharing some technical information with me?

Thanks

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