i would like to control a heater with pid controller output,in away that the number of cycles that the heater is on is determined by the pid controller output ,i will use a zero cross detection to determine where the ac sine signal will cross zero.please how can i use interrupt to do so
Guest
Posted: Sat Mar 03, 2007 7:03 am
PLEASE HELP ME I USE THE PIC16F877
Neutone
Joined: 08 Sep 2003 Posts: 839 Location: Houston
Re: temperature controller
Posted: Sat Mar 03, 2007 1:31 pm
moon wrote:
i would like to control a heater with pid controller output,in away that the number of cycles that the heater is on is determined by the pid controller output ,i will use a zero cross detection to determine where the ac sine signal will cross zero.please how can i use interrupt to do so
A better approach would be to detect zero crossing with the external interrupt pin and then set a timer to go off after a variable interval. When the timer goes off pulse a triac to turn on power. When zero crossing occurs power is automatically turned off by the triac. You only need to modulate the timer interval. This is a cheep and effective way to control power. This is used in lighting a lot to control intensity. Lights and heaters are nearly the same.
If you must operate in complete half waves just turn the heater on and off at zero crossing. PID output can be true false.
MOON Guest
HELP ME
Posted: Sun Mar 04, 2007 3:54 am
ITHANK YOU FOR YOUR ANSWER ,BUT I AM A BIGGENER IN BROGRAMMING SO PLEASE GIVE ME THE CODE FOR THE INTERRUPT KNOWING THAT I AM USING THE FULL WAVE AC SIGNAL
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum