Manual control of a PID controller


Apr 23, 2014
Programming Experience
Good day to all,
Please i need your support on how to manually control the temperature of High Power Leds using PID controller. I have two GUIs,one reads the temperature from the Led while the second is used to ON/OFF the Leds and at the same time controls the Led brightness using slider control.The GUI that reads the temperature has a PID controller application on it.The output from this controller is what i want to use to increase or decrease the Led brightness which invariable changes the Led temperature.How to go about using this PID controller to control the Led brightness is what i have not been able to grasp well.The slider on the GUI is scaled from 0% to 100%.My thinking is that the output from the controller should be in percentage which will make me to adjust the slider accordingly.My question is that will this type of arrangment produce an output that will efficiently control the Led brightness.
If yes,i would be glad if somebody could put me through on how to accomplish that. Attached to this post is a modified code of a tutorial on
PID controller which i found on the net.
Again i would be very grateful if somebody could direct me to a tutorial on how to develop a graph. i wish to display the Setpoint,Process value and the output value on a graph.Thank you all for the usual Support.
Best regards.


  • Capture.JPG
    71.2 KB · Views: 40
Top Bottom