Wednesday 16 December 2015

Class 16 : PID Controller VHDL Program


VHDL Program - Simple PID Controller:


  • Kp,Ki,Kd values are determined through your system(process) to be controlled.
  • The values can be calculated based on conventional calculation or through MATLAB program using the transfer function of the system or converter with PID controller in closed loop.
  • Ref - is actual reference value the system we should achieve @ the output.


  • Error is calculated with reference. 
  • Proportional, Integral and derivative terms are calculated based on the Digital PID equation.
  • Actual control value is calculated P+I+D
  • Controllable error range is 0 to 255. Beyond this range controller reach the saturation.
Simulation Results:


PWM Control:

  • In the given program, only voltage value taken as reference.
Closed Loop PWM control Simulation:




  • In simulation, the pwm pulse widths are getting adjusted when error are beyond acceptable tolerance. check the signal pwm, yout.
If you have any questions please email: miycircuits@gmail.com


No comments:

Post a Comment