LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino Labview DC motor control

Hi,

 

I would like to control a DC-motor via PWM of arduino mega. My code below is working. I can change the duty cycle but the frequency is always 1kHz. Is it possible to change the frequency using labview? My second question is: I can change the voltage from 0 till 5V. Is it possible to enlarge the voltage ampliture up to 9V because my dc-motor is working till 9V?

PWM_pic1.jpg

Regards

 

 

0 Kudos
Message 1 of 2
(2,685 Views)

@tiho_bg wrote:

 

Is it possible to enlarge the voltage ampliture up to 9V because my dc-motor is working till 9V? 


Your hardware choice is a poor one.  An Arduino outputs a max of 5V, but that 5V is at a couple milliamps.  Your DC motor likely needs at a minimum hundreds of milliamps.  Get you'll need a buffer circuit, op amp, or some kind of DC Motor shield hardware.

 

I don't see any control for setting a DO frequency, maybe Lynx has more functionality.  Worst case the arduino source is available and you can add your own commands to set the frequency.

0 Kudos
Message 2 of 2
(2,620 Views)