02-01-2023 07:15 PM
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!
02-01-2023 07:49 PM
Yes, that’s what I used.
02-09-2023 10:07 AM
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.
02-09-2023 10:41 AM
I didn’t use it to control a motor. I used it for a different application. Have you tried to use a different motor?
02-10-2023 12:47 PM
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?
02-10-2023 04:06 PM
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.
02-11-2023 03:46 PM
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.
02-11-2023 03:57 PM - edited 02-11-2023 03:58 PM
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?