🔮Adafruit sale all weekend long – use the code ADATHX for 15% off! 🔮
0

Interfacing AFMS V2 with Labview
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Interfacing AFMS V2 with Labview

by dakujr on Sat Mar 05, 2016 10:41 pm

Hello,

I want to control speed and direction of a brushed dc motor (12 V) and I for hardware I have Arduino UNO, AFMS V2 shield. I am able to use the 'DCMotorTest' example in arduino.
Using LabView interface for Arduino (LIFA) I am able to run the various arduino examples.

Now, to use the AFMS V2 shield there are no examples in LabView. And to make my own labview code I have to know which motor port on the shield corresponds to which pin on Arduino. For example, using the Digital PWM pins (3,5,6,9,10,11) I could send PWM signals to an LED, but to replace the LED with a dc motor I need the shield. On the shield ports - M1,M2,M3,M4 conect to which PWM pins on Arduino?

Thanks!
RG

dakujr
 
Posts: 5
Joined: Tue Aug 05, 2014 12:45 pm

Re: Interfacing AFMS V2 with Labview

by franklin97355 on Sat Mar 05, 2016 11:19 pm

On the shield ports - M1,M2,M3,M4 connect to which PWM pins on Arduino?
The new motor shield uses i2c communications to control the motors so there are no direct connections between the motors and the Arduino. i2c communicates on Arduino pins A4 ans A5.

franklin97355
 
Posts: 21647
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Interfacing AFMS V2 with Labview

by dakujr on Fri Mar 11, 2016 9:13 am

Can I use AFMS V2 as a stand alone DC motor driver with control signals from a DAQ board (not Arduino family)?
Which pins would be PWM (for speed control), DIR (direction control), GND( logic ground)?

On the AFMS V2 what do the pins #15,#14,#1,#0 mean? They are under PWMs just below right corner.

Thanks.

RG

dakujr
 
Posts: 5
Joined: Tue Aug 05, 2014 12:45 pm

Re: Interfacing AFMS V2 with Labview

by adafruit_support_bill on Fri Mar 11, 2016 10:33 am

Which pins would be PWM (for speed control), DIR (direction control), GND( logic ground)?

There are not speed or direction control pins. The V2 motor shield uses i2c communications on Arduino pins A4 ans A5. only.

On the AFMS V2 what do the pins #15,#14,#1,#0 mean? They are under PWMs just below right corner.

Those are spare PWM channels from the PCA9685 PWM chip on the shield.

adafruit_support_bill
 
Posts: 79404
Joined: Sat Feb 07, 2009 10:11 am

Re: Interfacing AFMS V2 with Labview

by dakujr on Fri Mar 11, 2016 4:52 pm

Can I use AFMS V2 as a stand alone DC motor driver with control signals from a DAQ board (not Arduino family)?

How could that be accomplished?

dakujr
 
Posts: 5
Joined: Tue Aug 05, 2014 12:45 pm

Re: Interfacing AFMS V2 with Labview

by franklin97355 on Fri Mar 11, 2016 8:11 pm

How could that be accomplished?
You would need to send i2c commands from your controller to the motor shield to control it. If you look at the library code you can see how it is done with an Arduino and then modify that for your processor.

franklin97355
 
Posts: 21647
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Please be positive and constructive with your questions and comments.