LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PID Control motor DC 12v

Solved!
Go to solution

Hi everyone,

 

I wanna control a 12v DC motor using PID control toolkit 8.2.

- a close loop control system

- using a DAQ model: NI USB-6008

- how do make a DC motor speed control 12v with PID control

 

 

Im stuck at getting pid.vi and i wanted to know what is the problem.

pls help me on my problem, if can pls make an example VI for me

 

Thanks !

0 Kudos
Message 1 of 4
(4,474 Views)
Solution
Accepted by topic author bowo

Well there are a lot of things you need to do this, LabVIEW software being only a part. Firstly, most DAQ cards will not source sufficient current to actually power a motor, particularly a USB6008, so you will need some form of amplifier/power driver. For closed loop you will need some feedback to tell you what the motor rotation is, usually a slotted wheel with a LED and sensor (if this is a project for school or hobby one source you might look at is an old wheeled mouse). So with these two you have a way to drive the motor and then detect its motion. Then you can get to the idea of doing PID, which is taking the feedback (from whatever sensor you end up using) scaling it to match whatever you are using, and apply it to one of the PID equations to get it to match the target value.

 

 

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 4
(4,460 Views)

Hi everyone,

 

I wanna control a 12v DC motor using PID control toolkit 8.2.

- a close loop control system

- using a DAQ model: NI USB-6008

- how do make a DC motor speed control 12v with PID control

 

 

and i'm using L298N IC and rotatory encoder as feedback censer and i'm also trapped with how to connect with USB-6008 with these devices.

Thanks in advanced.

0 Kudos
Message 3 of 4
(2,036 Views)

Hi nawphaw,

 

read the manuals to learn "how to connect these devices"!

 

You are really still using LabVIEW8.20? If not: why did you hijack this old thread instead of creating your own?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,028 Views)