Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling an angular pendulum dc motor

Hello ,

I want to use NI USB DAQ set to control dc motor in an angular inverted pendulum project,

so mainly I am using a dc motor with angular encoder and another angular encoder to the pendulum as well.
Which means that I need fast response analog inputs and analog outputs as well.

I am not allowed to use PCI models so I want to ask is it possible to do such a thing with NI USB 6009 or 6211 or not ?  

P.S..( is it possible to use servo motor with NI USB 6211 ?? )

Thanks in Advance 
M.Rateb

0 Kudos
Message 1 of 2
(3,286 Views)

I don't fully understand your application parameters, but it should be possible to control a servo motor (depending on the servo) using the NI USB 6211. I'm assuming it's a low-power servo around 5V. What are the specs of your servo motor? To control it you would connect the positive wire to +5V on pin 10, ground wire to D GND on pin 11, and the control wire to one of the Digital out pins like P1.0 (pin 6) if I'm not mistaken. On the software side, take a look at the example VI "Gen Dig Pulse Train-Continuous." You can find it in LabVIEW by going to Help>Find Examples>Browse>Hardware Input and Output>DAQmx>Generating Digital Pulses. That might get you started.

 

Adjust the frequency of the pulse train according to the servo manufacturer's spec's for the control signal. Then adjust the duty cycle to change the angle of the servo. 

 

Again, there are many assumptions in this scenario, but I think it is theoretically possible. 

 

Hope that helps!

Nathan Scharfe
Certified LabVIEW Architect
0 Kudos
Message 2 of 2
(3,260 Views)