LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Dc motor control

Hi I have a setup with an arduino adafruit motor shield and a 2560 mega. The pwm a 3 pin is always on its high state which keeps the motor running when i connect it before i even execute the labview program. I have a 12 v external power supply. I was wondering where in the code the pwm pin is set at high. Other than that i am able to control the speed of the dc motor using labview and i can also control my stepper motor which is great and i appreciate to the community effort to make that possible.

0 Kudos
Message 1 of 2
(3,112 Views)

Hey rajin,

We don't (at least intentionally) set any of the digital pins to high in the LIFA Firmware sketch. We started seeing the issue after we moved from arduino 022 to 1.0 so I suspect something changed in how the pins are initialized from their header files but I have not been able to track down where its happening. A possible fix is to just write low to all the digital pins on the Arduino in the Init section of the LIFA_Base sketch.

Kevin Fort
Principal Software Engineer
NI
0 Kudos
Message 2 of 2
(2,473 Views)