LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pwm using USB 6009

To answer my own question - I see that there is something called a LINX toolkit, which provides LabVIEW VIs for interacting with common embedded platforms like Arduino, chipKIT and myRIO!

0 Kudos
Message 11 of 18
(855 Views)

Yes, that’s what I used.

0 Kudos
Message 12 of 18
(849 Views)

I tried the Arduino and used Labview LINX + the Sparkfun Motor Control Driver. The duty cycle is what controls the speed and the digital output changes direction. 

 

However, at any duty cycle below 100%, I hear a lot of motor whining/noise. Is that your experience? Any solutions/fixes? Thank you. 

0 Kudos
Message 13 of 18
(812 Views)

I didn’t use it to control a motor. I used it for a different application. Have you tried to use a different motor? 

0 Kudos
Message 14 of 18
(804 Views)

It seems to me that the problem has to do with the PWM frequency using the Arduino. It is 500 Hz. I have used a functional generator and the problem disappears when the frequency is above 20 khz! So, the real issue I am finding is how to update the frequency on the Arduino PWM pin. Any reliable info on that? 

0 Kudos
Message 15 of 18
(774 Views)

What arduino are you using? You should try Arduino Due. Arduino Due can generate up to 84 MHZ stable frequency.

"Arduino Due is based on Atmel’s ATSAM3x8E 32-bit ARM Cortext-M3 processor. The processor core runs at 84 MHz, which is significantly faster than its 8-bit AVR counterpart ATmega328p which runs at 16 MHz.

 

 

0 Kudos
Message 16 of 18
(768 Views)

I am using the Arduino Uno. The issue is not about the clock frequency, but the digital PWM signal frequency. That defaults to 500 Hz on PIN 9 for example. There is a way to update/increase that apparently, but it is not quite working out for me.  

0 Kudos
Message 17 of 18
(753 Views)

Try to use pin 5 or 3 and see if you still have the problem. I would also try a different arduino.

Mr. @altenbach what do you think about this issue?

0 Kudos
Message 18 of 18
(748 Views)