From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PID position control : guide me

Solved!
Go to solution

Dear member

I want to built a PID position control 

i read the DC position through potentiometer with -128 to 127 [full 360 degree]

 

so the input to the pid is voltage range between -128 to 127

 

the input of dc motor is PWM and the motor rotate direction

so the PID output will be PWM 

 

what about direction bit ??? What will be it circuit

also how to control the speed in same system ?? is thire another PID?? 

 

best regards

hi ?Q>

0 Kudos
Message 1 of 5
(2,452 Views)

Hi mangood,

 

you can have your PID to output a value from -100 to +100 (like % as unit). Then use the sign as direction bit and the value as speed…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(2,446 Views)

@GerdW wrote:

Hi mangood,

 

you can have your PID to output a value from -100 to +100 (like % as unit). Then use the sign as direction bit and the value as speed…


thank you

what about control the position and the speed at same time ???

hi ?Q>

0 Kudos
Message 3 of 5
(2,440 Views)
Solution
Accepted by topic author mangood

@mangood wrote:

what about control the position and the speed at same time ???


That's a complicated problem. A quick internet search turned up this paper which describes some possible approaches:

http://www.idt.mdh.se/kurser/ct3340/ht09/ADMINISTRATION/IRCSE09-submissions/ircse09_submission_22.pd...

Message 4 of 5
(2,421 Views)

@nathand wrote:

@mangood wrote:

what about control the position and the speed at same time ???


That's a complicated problem. A quick internet search turned up this paper which describes some possible approaches:

http://www.idt.mdh.se/kurser/ct3340/ht09/ADMINISTRATION/IRCSE09-submissions/ircse09_submission_22.pd...


okkkkkk
terrific paper

hi ?Q>

0 Kudos
Message 5 of 5
(2,396 Views)