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


Groups > sci.electronics.design > #386340

Re: PID Heater Control

From Tim Wescott <seemywebsite@myfooter.really>
Subject Re: PID Heater Control
Newsgroups sci.electronics.design
References <n2t56o$d1g$1@dont-email.me> <7bidncTsYPZ1yM7LnZ2dnUU7-SWdnZ2d@giganews.com> <n2vmk6$ceg$1@dont-email.me> <7bidncHsYPbb-87LnZ2dnUU7-SWdnZ2d@giganews.com> <n2vqdj$s3d$1@dont-email.me>
Message-ID <7bidncDsYPaH787LnZ2dnUU7-SWdnZ2d@giganews.com> (permalink)
Date 2015-11-23 14:07 -0600

Show all headers | View raw


On Mon, 23 Nov 2015 14:48:16 -0500, rickman wrote:

> On 11/23/2015 2:17 PM, Tim Wescott wrote:
>> On Mon, 23 Nov 2015 13:43:30 -0500, rickman wrote:
>>
>>> On 11/23/2015 1:07 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?
>>>>>
>>>>> Will running the PID loop faster than the temperature measurement
>>>>> improve anything?
>>>>>
>>>>> How would a PID control be an improvement over a simple temperature
>>>>> comparison with or without an anticipator?
>>>>
>>>> On a totally different line of thought than my previous response:
>>>>
>>>> A traditional thermostat/anticipator acts, more or less, like a
>>>> proportional-derivative controller with a relay output ("relay" is
>>>> just control systems jargon for an on-off switch).  There's usually
>>>> hysteresis in the switch, but that's not uncommon with relay-output
>>>> controllers, and it's the anticipator that -- more or less --
>>>> provides the derivative action.
>>>>
>>>> (Note the "more or less" -- "sorta-kinda" might be better.  At any
>>>> rate, don't get wrapped around the axle if it's not exactly the same
>>>> --
>>>> because it isn't.)
>>>>
>>>> Such a system will still show some sensitivity of the long-term
>>>> average controlled temperature to ambient conditions -- your plant
>>>> (or house, whatever) will be a bit colder on average when ambient is
>>>> colder, and warmer on average when ambient is warmer.
>>>>
>>>> Putting a bit of integrator action into a controller like that will,
>>>> perforce, guarantee that the average temperature of the plant is as
>>>> close to correct as can be achieved with available sensors.  It won't
>>>> prevent the heat from cycling up and down, however -- that's a
>>>> consequence of turning the heat on and off close to, or slower than,
>>>> the thermal time constant of the plant.
>>>>
>>>> Whether the benefit from integral action in the controller is worth
>>>> the effort in such a circumstance is going to depend on the
>>>> individual cases.  I suspect that in general it won't, but I'm sure
>>>> there are edge cases where it'll be all that's needed.
>>>
>>> It is not clear to me that your assumptions are correct.  For example,
>>> ignoring the issue of the anticipator, the idea that without an
>>> integral term in the control loop, the average temperature will be
>>> sensitive to the ambient isn't clear to me.  Consider the controlled
>>> temperature as a function of time in two cases.  In one case the heat
>>> leaking from the chamber is 1/10 the rate at which the heating element
>>> adds heat and in the other case heat leaks at 1/2 the rate of the
>>> heater.  The control loop is a simple temperature set point with a
>>> fixed amount of plus and minus hysteresis.  In the 1/10 rate case the
>>> heat will be on 1/10 of the time.  The graph will be a saw tooth with
>>> the warming slope being 1/9th the width of the cooling slope.  The
>>> average temperature will be the set point.  The 1/2 cooling rate will
>>> give a sawtooth graph with equal heating and cooling periods... and
>>> again the average temperature will be the set point.
>>>
>>> What periods of heating and cooling would you expect a PID controller
>>> could provide if it is not using PWM modulation of the heating, but
>>> rather the PID loop directly turns the heat on or off?
>>>
>>> If heating a house, the furnace should not be cycled too often, so
>>> there is no opportunity to modulate the heat cycle over short periods.
>>> However, the system is question is an electric oven so such modulation
>>> would be possible, but only by adding another layer of complexity to
>>> the code which is not what is being discussed.
>>
>> I'm not going to spend my free time simulating your system for you.
>> That's what you're paid to do.  So why don't you spend your free -- or
>> paid -- time simulating your system for you?
>>
>> I've done this stuff before, it's too long for me to remember the
>> detailed answer, but I do remember that when you actually take the
>> trouble to simulate the system, or calculate it's behavior
>> mathematically, you find a dependency on average temperature with
>> ambient.
> 
> I'm not asking you to simulate anything.  I just described a system
> simple enough to be simulated in your head and gave you the result.  It
> may be somewhat unrealistic given the vagaries of real world situations,
> but it is clear enough to show a set point controller maintains an
> average temperature controlled by the set point when the cooling losses
> are constant, at least to a first order approximation.

Well, there you go.  You're smarter than the resident control expert.

Have fun!

-- 

Tim Wescott
Wescott Design Services
http://www.wescottdesign.com

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