06-18-2015 09:59 AM - last edited on 06-22-2015 10:56 AM by dcarva
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?
Regards
06-22-2015 12:49 PM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord