Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #386335

Re: PID Heater Control

From rickman <gnuarm@gmail.com>
Newsgroups sci.electronics.design
Subject Re: PID Heater Control
Date 2015-11-23 14:42 -0500
Organization A noiseless patient Spider
Message-ID <n2vq2o$rat$1@dont-email.me> (permalink)
References (3 earlier) <7bidncrsYPaFMs_LnZ2dnUU7-SWdnZ2d@giganews.com> <n2ubaq$41u$1@dont-email.me> <fJydnfQYI9Da3M7LnZ2dnUVZ5o6dnZ2d@giganews.com> <n2vlh6$7nk$1@dont-email.me> <7bidncbsYPYP-M7LnZ2dnUU7-SWdnZ2d@giganews.com>

Show all headers | View raw


On 11/23/2015 2:14 PM, Tim Wescott wrote:
> On Mon, 23 Nov 2015 13:24:50 -0500, rickman wrote:
>
>> On 11/23/2015 11:39 AM, Tim Wescott wrote:
>>> On Mon, 23 Nov 2015 01:24:38 -0500, rickman wrote:
>>>
>>>> On 11/23/2015 1:15 AM, Tim Wescott wrote:
>>>>> On Sun, 22 Nov 2015 16:55:04 -0500, rickman wrote:
>>>>>
>>>>>> On 11/22/2015 4:11 PM, Tim Wescott wrote:
>>>>>>> On Sun, 22 Nov 2015 14:33:55 -0500, rickman wrote:
>>>>>>>
>>>>>>>> If a heater is controlled by turning it on and off, does a PID
>>>>>>>> algorithm help in more closely controlling the temperature?
>>>>>>>
>>>>>>> Compared to what?  Yes, compared to a lot of things.
>>>>>>
>>>>>> A conventional type thermostat with a set point and a hysteresis
>>>>>> band.
>>>>>>
>>>>>>
>>>>>>>> Will running the PID loop faster than the temperature measurement
>>>>>>>> improve anything?
>>>>>>>
>>>>>>> Probably not much, however pulsing the heater on and off faster
>>>>>>> than the temperature measurement may well improve things -- it
>>>>>>> depends on whether you can turn the heater on and off quickly, and
>>>>>>> what it's thermal time constant is.  In the extreme, turning power
>>>>>>> on and off to a heating element significantly faster than it's
>>>>>>> thermal time constant will give you steady, rather than pulsating,
>>>>>>> heat.
>>>>>>
>>>>>> If the temperature measurement isn't updated, how would the PID
>>>>>> provide any better control over the temperature?  At best it
>>>>>> essentially does the same thing for 10 periods until the temperature
>>>>>> reading is updated, at worse the integral term ramps up resulting in
>>>>>> overshoot and oscillations.
>>>>>>
>>>>>>
>>>>>>>> How would a PID control be an improvement over a simple
>>>>>>>> temperature comparison with or without an anticipator?
>>>>>>>
>>>>>>> Most on/off thermometer-ish systems need to see the temperature
>>>>>>> actually change to work.  This is less the case with an
>>>>>>> anticipator,
>>>>>>> but that brings its own problems.
>>>>>>
>>>>>> What problems does an anticipator create?
>>>>>>
>>>>>>
>>>>>>> In the case where the thermal loss is constant and the temperature
>>>>>>> needs to be held steady, and where the heating element is being
>>>>>>> pulsed significantly faster than the thermal time constant of the
>>>>>>> plant (if not the heater), then the PID would, in theory, hold the
>>>>>>> temperature dead steady -- or at least as steady as it can given
>>>>>>> how fast it is being pulsed on and off.
>>>>>>
>>>>>> How does a PID controller cycle the heat in absence of updated
>>>>>> temperature readings?  On the update of temperature, the
>>>>>> differential and proportional terms will give a constant input to
>>>>>> the calculation until the temperature is updated again.  The
>>>>>> integral term will push the integrator in a direction with a
>>>>>> constant ramp for the duration of the temperature reading period.  I
>>>>>> suppose this could result in one pulse during the temperature
>>>>>> reading period, but will create an internal overshoot for the next
>>>>>> period which will show up as a too short pulse.
>>>>>>
>>>>>> Obviously this is all dependent on the parameters of the PID
>>>>>> controller,
>>>>>> but I'm having trouble picturing how the faster PID loop would
>>>>>> provide any useful benefit rather than just causing oscillations.
>>>>>
>>>>> Did you ACTUALLY READ what I took the time to write, in a spirit of
>>>>> helpfulness? ?? ????
>>>>>
>>>>> "However, pulsing the heating element ..."
>>>>>
>>>>> If that statement doesn't make sense, ask about it -- because it
>>>>> makes all the difference.
>>>>
>>>> Yes, I read it.  But that is very little detail.  I think my reply
>>>> showed I gave it consideration.  If you don't want to discuss this,
>>>> why reply?  If you want to discuss it then perhaps a bit more clarity
>>>> would be helpful.
>>>
>>> Think sigma-delta, or PWM, with the heater on/off being a one-bit DAC.
>>>
>>> If you PWM the heater at a faster rate than the control loop, or if you
>>> run the output of the PID into a sigma-delta stage (that's either going
>>> as fast as, or faster than, the control loop), then the heater command
>>> will get low pass filtered in both the heating element and in the
>>> plant's thermal mass.  This will make the heater & driver act much more
>>> like a continuous element than a relay element.  At that point, a PID
>>> becomes fairly worthwhile.
>>
>> You are describing things that are not part of the design I was
>> describing.
>
> Well, look at your critique about my level of detail, and then go look in
> a mirror.
>
> Besides, you seemed to be talking about changing a design to make it
> better -- so I'm giving you ways to change a design to make it better.

I get tired of discussions devolving into pissing matches.  I'm trying 
to explore a particular point.  Is a PID controller any better than a 
typical setpoint thermostat?  No, I can't define every nuance of the 
question up front.  But I'm not looking for ways to add complexity.  I'm 
trying to understand the simple issues.

I'm not trying to tick you off, I'm sorry if my posts seem like that to 
you.  You posts do seem like you are getting ticked off which is not my 
intent.


>> The control is to turn the heater on or off on each pass of
>> the PID loop.  The PID loop runs 10 times faster than the temperature
>> measurement.  I fail to see how this is any better than running the PID
>> loop at the same rate as the temperature measurement.
>
> Well, if you're just looking for justification in your thinking that a PID
> loop isn't going to help, then believe what you want.  If that's your
> goal, then posting questions on USENET is probably a bad idea, because
> someone may tell you something that's contrary to your cherished notions.
>
> So are you just looking for self-justification, or do you want to improve
> the performance of the system?

SED is a great place to learn little and get arguments at every turn.  I 
don't have a system to improve the performance of.  I am trying to 
understand if a simple PID controller is any better than a set point 
controller.  I'm not looking for arguments.  If you really can't discuss 
this without getting ticked off why don't we drop it?


> If you have a controller that's operating 10 times faster than the
> temperature measurement, and you want to improve the performance of the
> thing, then consider PWM-ing the output one way or another.

I'm not trying to change anything, I'm trying to understand the issues 
in the existing concept.


>> I also fail to
>> see how the PID loop will improve on a simple set point with an
>> anticipator.
>
> The anticipators that I know about introduce bias (they're basically
> heaters that warm the air inside a thermostat when the heat is on).  So
> as the heat is on for a longer proportion of the time, the temperature
> seen by the regulating element (the bi-metallic switch, in this model)
> is, on average, higher than the temperature being regulated, which
> depresses the regulated temperature.

Yes, the purpose of this is to "anticipate" the additional heating that 
will happen when the heat is turned off and the heat element cools down. 
  The electromechanical thermostats do this with a heater, but a 
software approach can do it more effectively by estimating the cooling 
rate of the heating chamber (simple time measurement).


> I'm sure that you're not dealing with an electro-mechanical thermostat,
> but if the control you propose is going to emulate it, you'll undoubtedly
> successfully emulate the problems.

I think that is an oversimplification of the situation.  The mechanical 
thermostat typically has a large hysteresis which is very overdone.  A 
software set point controller can use any size hysteresis appropriate.


> I don't have the work to hand, but I've simulated a heating system with a
> typical relay-with-hysteresis thermostat: even without an anticipator,
> and in spite of the fact that a simple switch is often viewed as having
> "infinite" gain, simple on-off control does not regulate the long-term
> average temperature error to zero the way that a controller with an
> unbiased sensor and an integrator will.  So in that regard, PID (or
> anything with a correctly applied integrator) is better.

I'm not sure how important a long term average value is in most cases. 
Perhaps if you were controlling a crystal oven that might be an 
important point.  In this case the oven just needs to be regulated to a 
narrow hysteresis range.  I'm trying to understand if a simple PID 
controller adds anything to the picture other than complication.  I'm 
not trying to make it any more complicated.  The data shown for the 
existing PID controller (which is likely not tuned perfectly) is clearly 
not as good as could be achieved with a set point controller.  It shows 
lots of rather random excursions.  On the other hand, all of this is 
overkill for the application and far superior to the mechanical 
controller it has replaced.

-- 

Rick

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

PID Heater Control rickman <gnuarm@gmail.com> - 2015-11-22 14:33 -0500
  Re: PID Heater Control Tim Wescott <tim@seemywebsite.com> - 2015-11-22 15:11 -0600
    Re: PID Heater Control rickman <gnuarm@gmail.com> - 2015-11-22 16:55 -0500
      Re: PID Heater Control Tim Wescott <seemywebsite@myfooter.really> - 2015-11-23 00:15 -0600
        Re: PID Heater Control rickman <gnuarm@gmail.com> - 2015-11-23 01:24 -0500
          Re: PID Heater Control Tim Wescott <tim@seemywebsite.com> - 2015-11-23 10:39 -0600
            Re: PID Heater Control rickman <gnuarm@gmail.com> - 2015-11-23 13:24 -0500
              Re: PID Heater Control Tim Wescott <seemywebsite@myfooter.really> - 2015-11-23 13:14 -0600
                Re: PID Heater Control rickman <gnuarm@gmail.com> - 2015-11-23 14:42 -0500
      Re: PID Heater Control Joe Hey <joehey@mailinator.com> - 2015-11-23 16:21 +0000
  Re: PID Heater Control Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> - 2015-11-22 18:13 -0500
    Re: PID Heater Control rickman <gnuarm@gmail.com> - 2015-11-22 19:44 -0500
      Re: PID Heater Control Bill Sloman <bill.sloman@gmail.com> - 2015-11-22 16:55 -0800
      Re: PID Heater Control whit3rd <whit3rd@gmail.com> - 2015-11-22 17:44 -0800
        Re: PID Heater Control rickman <gnuarm@gmail.com> - 2015-11-23 01:32 -0500
          Re: PID Heater Control Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> - 2015-11-23 01:54 -0500
            Re: PID Heater Control rickman <gnuarm@gmail.com> - 2015-11-23 02:12 -0500
              Re: PID Heater Control Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> - 2015-11-23 02:34 -0500
                Re: PID Heater Control rickman <gnuarm@gmail.com> - 2015-11-23 03:33 -0500
            Re: PID Heater Control Joe Hey <joehey@mailinator.com> - 2015-11-23 15:58 +0000
        Re: PID Heater Control Joe Hey <joehey@mailinator.com> - 2015-11-23 15:55 +0000
      Re: PID Heater Control Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> - 2015-11-23 01:26 -0500
        Re: PID Heater Control rickman <gnuarm@gmail.com> - 2015-11-23 02:20 -0500
  Re: PID Heater Control Joe Hey <joehey@mailinator.com> - 2015-11-23 15:49 +0000
  Re: PID Heater Control Tim Wescott <seemywebsite@myfooter.really> - 2015-11-23 12:07 -0600
    Re: PID Heater Control rickman <gnuarm@gmail.com> - 2015-11-23 13:43 -0500
      Re: PID Heater Control Tim Wescott <seemywebsite@myfooter.really> - 2015-11-23 13:17 -0600
        Re: PID Heater Control rickman <gnuarm@gmail.com> - 2015-11-23 14:48 -0500
          Re: PID Heater Control Tim Wescott <seemywebsite@myfooter.really> - 2015-11-23 14:07 -0600
            Re: PID Heater Control George Herold <gherold@teachspin.com> - 2015-11-23 13:11 -0800
              Re: PID Heater Control rickman <gnuarm@gmail.com> - 2015-11-23 17:08 -0500
                Re: PID Heater Control Lasse Langwadt Christensen <langwadt@fonz.dk> - 2015-11-23 14:22 -0800
                Re: PID Heater Control Cydrome Leader <presence@MUNGEpanix.com> - 2015-11-23 23:02 +0000
                Re: PID Heater Control Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2015-11-23 18:09 -0500
                Re: PID Heater Control Tim Wescott <seemywebsite@myfooter.really> - 2015-11-23 17:28 -0600
                Re: PID Heater Control George Herold <gherold@teachspin.com> - 2015-11-23 17:36 -0800
                Re: PID Heater Control M Philbrook <jamie_ka1lpa@charter.net> - 2015-11-23 18:47 -0500
                Re: PID Heater Control Tim Wescott <seemywebsite@myfooter.really> - 2015-11-23 18:08 -0600
                Re: PID Heater Control Tim Wescott <seemywebsite@myfooter.really> - 2015-11-23 18:06 -0600
                Re: PID Heater Control rickman <gnuarm@gmail.com> - 2015-11-23 22:04 -0500
                Re: PID Heater Control Tim Wescott <seemywebsite@myfooter.really> - 2015-11-23 21:44 -0600
                Re: PID Heater Control George Herold <gherold@teachspin.com> - 2015-11-23 17:24 -0800
                Re: PID Heater Control rickman <gnuarm@gmail.com> - 2015-11-24 00:20 -0500
                Re: PID Heater Control makolber@yahoo.com - 2015-11-24 06:05 -0800
                Re: PID Heater Control whit3rd <whit3rd@gmail.com> - 2015-11-24 12:58 -0800
                Re: PID Heater Control dplatt@coop.radagast.org (Dave Platt) - 2015-11-24 15:31 -0800
              Re: PID Heater Control Tim Wescott <seemywebsite@myfooter.really> - 2015-11-23 17:24 -0600
                Re: PID Heater Control George Herold <gherold@teachspin.com> - 2015-11-23 18:21 -0800

csiph-web