From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-05-2018 05:19 PM
I am currently using an Arduino Mega with two stacked adafruit motor shield v2.3's and want to create a VI to interface with it to run stepper motors. The few example VI's that I have found are still using LIFA_base which the V2.3 motorshields aren't compatible with. I have moved to trying LINX but I am not familiar on how to interface with motorshield. Has anyone successfully created a VI to control steppers through LINX?
06-05-2018 05:44 PM - edited 06-05-2018 05:47 PM
NI introduced a interface for Arduino, that is available on the VIPM network. I've personally had some success with the diligent package (but its 50 bucks).
Edit read your full post and I did not answer your question. I only used the LIFA_base when I was working with Arduino a few years ago.
06-05-2018 06:17 PM
https://www.labviewmakerhub.com/forums/viewtopic.php?f=12&t=450&hilit=Motor+shield
06-26-2018 04:46 PM
Thanks for the link! Once downloaded it runs without error, but I am getting no motion out of the stepper. I have concluded at this point that since I am using a Mega 3560 instead of an UNO that it is not writing to the proper pin? What are your thoughts on this, if you agree do you know where I should be looking to change which pin the commands are being written to?
06-27-2018 08:40 AM
If you suspect a pin topology problem I would take a step back from using LabVIEW. Using a single shield I would follow adafruits' directions and just make sure that the stepper test works.
06-27-2018 08:59 AM
Hey KFerg,
This motor shield from adafruit communicates on the i2c bus.
According to Arduino reference page on Wire (i2c) https://www.arduino.cc/en/Reference/Wire
The UNO and MEGA do not share the same location for their i2c pins.
Additionally, I have found an article on adafruit's website that goes into board compatibility.
https://learn.adafruit.com/adafruit-shield-compatibility?view=all#motor-slash-stepper-slash-servo-sh...
In summary, the Mega 2560 R3 should work without any modifications.
However, A Mega 2560 R2 would require you to put a jumper between A4 and 20, A5 and 21.
Best regards,
Salil Pathare
Applications Engineer
National Instruments
866-275-6964
support@ni.com