AnsweredAssumed Answered

PID PROBLEM IN CONTROLLER STM 32

Question asked by chikane.deepak on Aug 21, 2014
Latest reply on Aug 21, 2014 by Clive One
Hi,

i am facing problem for the PiD controller.
what parameter i have to use it for the positive & negative nos for calculation purpose.

Kindly look following code 

New_Duty_cycle_buck=(Previous_Duty_cycle_buck + Error_Duty_cycle_buck);

where "Error_Duty_cycle_buck" can be positive or negative.

it is for the updating a new duty cycle.

in declaration part,
double Error_Duty_cycle_buck=0;

i declare like this.

but my pid loop not working correctly.
pls help
Look forward to hearing you soon.

Outcomes