06-01-2013 08:52 AM
Hi,
I have the problem that I want to control a servo with a myDAQ.
To do that I connected the servo direct to the DIO Pin 7, DGND and 5V.
Next step was to use the NI sample for LED control with myDAQ (use port was changed):
http://zone.ni.com/devzone/cda/epd/p/id/6410
but the servo does not do anything 😞 I tought I have to change his angle to a maximum and with a later used PWM instead of the continuous signal its possible to change the angle. But also a short try with PWM does not change anything 😞
I would be really happy for help, because it is a very important project for me where i need a lot of controlled servos.
06-01-2013 02:40 PM - edited 06-01-2013 02:41 PM
Hi zerberus,
before connecting your servo directly with your myDAQ you should read it's manual: there you will find the note "drives just 4mA per DO line"...
Think about that yourself! Your servo is much more demanding than a simple LED...
06-01-2013 05:10 PM
Assuming your talking about an RC servo, you could use the onboard counter of the myDAQ to generate a pulse train. The code for that is explained here.
RC Servos work as follows:
Knowing this information and using the code in the link you can control an RC servo using the myDAQ. The counter output is on DIO pin 3. The attached code worked for me with my own myDAQ.
My servo is powered by the 5V output which gives:
Maximum output current.......................100 mA
06-03-2013 04:45 PM
Hi thats really nice but i have the problem that i can not open the file because I have only Labview 2010 is it possible to convert it?
06-05-2013 05:20 AM
Sure, try this one.
06-07-2013 11:34 AM
hmm, how is it possible to control a servo with every Digital Output?
06-07-2013 05:45 PM
The digital outputs on the myDAQ are software timed. That means you must generate the control signals from LabVIEW and you won't get the resolution you need to control the servos
For every servo you need to control, you need to have a counter onboard your hardware.
Basically, I don't think what you are trying to do will be possible with the myDAQ.