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


Groups > sci.electronics.design > #386164 > unrolled thread

PID Heater Control

Started byrickman <gnuarm@gmail.com>
First post2015-11-22 14:33 -0500
Last post2015-11-23 18:21 -0800
Articles 20 on this page of 48 — 14 participants

Back to article view | Back to sci.electronics.design


Contents

  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

Page 1 of 3  [1] 2 3  Next page →


#386164 — PID Heater Control

Fromrickman <gnuarm@gmail.com>
Date2015-11-22 14:33 -0500
SubjectPID Heater Control
Message-ID<n2t56o$d1g$1@dont-email.me>
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?

-- 

Rick

[toc] | [next] | [standalone]


#386176

FromTim Wescott <tim@seemywebsite.com>
Date2015-11-22 15:11 -0600
Message-ID<MtudnYsJ25Xxss_LnZ2dnUU7-emdnZ2d@giganews.com>
In reply to#386164
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.

> 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.

> 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.

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.

-- 
www.wescottdesign.com

[toc] | [prev] | [next] | [standalone]


#386180

Fromrickman <gnuarm@gmail.com>
Date2015-11-22 16:55 -0500
Message-ID<n2tdfd$fac$1@dont-email.me>
In reply to#386176
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.

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#386214

FromTim Wescott <seemywebsite@myfooter.really>
Date2015-11-23 00:15 -0600
Message-ID<7bidncrsYPaFMs_LnZ2dnUU7-SWdnZ2d@giganews.com>
In reply to#386180
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.

-- 

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

[toc] | [prev] | [next] | [standalone]


#386215

Fromrickman <gnuarm@gmail.com>
Date2015-11-23 01:24 -0500
Message-ID<n2ubaq$41u$1@dont-email.me>
In reply to#386214
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.

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#386280

FromTim Wescott <tim@seemywebsite.com>
Date2015-11-23 10:39 -0600
Message-ID<fJydnfQYI9Da3M7LnZ2dnUVZ5o6dnZ2d@giganews.com>
In reply to#386215
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.

-- 
www.wescottdesign.com

[toc] | [prev] | [next] | [standalone]


#386316

Fromrickman <gnuarm@gmail.com>
Date2015-11-23 13:24 -0500
Message-ID<n2vlh6$7nk$1@dont-email.me>
In reply to#386280
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.  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.  I also fail to 
see how the PID loop will improve on a simple set point with an 
anticipator.

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#386326

FromTim Wescott <seemywebsite@myfooter.really>
Date2015-11-23 13:14 -0600
Message-ID<7bidncbsYPYP-M7LnZ2dnUU7-SWdnZ2d@giganews.com>
In reply to#386316
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.

> 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?

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 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.

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 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.

-- 

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

[toc] | [prev] | [next] | [standalone]


#386335

Fromrickman <gnuarm@gmail.com>
Date2015-11-23 14:42 -0500
Message-ID<n2vq2o$rat$1@dont-email.me>
In reply to#386326
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

[toc] | [prev] | [next] | [standalone]


#386277

FromJoe Hey <joehey@mailinator.com>
Date2015-11-23 16:21 +0000
Message-ID<20151123162117.0ba3a570.joehey@mailinator.com>
In reply to#386180
On Sun, 22 Nov 2015 16:55:04 -0500
rickman <gnuarm@gmail.com> 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.

That is correct.
Given a fixed temperature measurement period, the best thing to do is
synchronise the on/off switching with the measurement, transform it
into the z-domain and calculate the analogue components needed to get
the right control.

I think this book 'sums it up' quite (very) comprehensively:

http://een.iust.ac.ir/profs/Jahed/digital%20controll/e%20book/discrete-time_control_systems.pdf

joe


> >> 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.
> 

[toc] | [prev] | [next] | [standalone]


#386186

FromSpehro Pefhany <speffSNIP@interlogDOTyou.knowwhat>
Date2015-11-22 18:13 -0500
Message-ID<bqi45bhfafea29hhkl8clflfpqmujo7vja@4ax.com>
In reply to#386164
On Sun, 22 Nov 2015 14:33:55 -0500, the renowned rickman
<gnuarm@gmail.com> wrote:

>If a heater is controlled by turning it on and off, does a PID algorithm 
>help in more closely controlling the temperature?

It can help. You turn the heater on and off fast enough that it is
effectively an analog output. It's called 'time proportioning' in the
industry. 

>Will running the PID loop faster than the temperature measurement 
>improve anything?

Certainly not. There's no new information. 

>How would a PID control be an improvement over a simple temperature 
>comparison with or without an anticipator?

With an anticipator it might be fairly similar. Comparison normally
needs some deadband so you would tend to get higher temperature ripple
with comparison that with a time-proportioning PID. The output will
turn off earlier in the latter case, as it needs no information from
the sensor to do so (it can turn on and off many times per temperature
measurement if you want, but it's commonly not done that way). 

--sp 


-- 
Best regards, 
Spehro Pefhany
Amazon link for AoE 3rd Edition:            http://tinyurl.com/ntrpwu8
Microchip link for 2015 Masters in Phoenix: http://tinyurl.com/l7g2k48

[toc] | [prev] | [next] | [standalone]


#386196

Fromrickman <gnuarm@gmail.com>
Date2015-11-22 19:44 -0500
Message-ID<n2tnd0$ls5$1@dont-email.me>
In reply to#386186
On 11/22/2015 6:13 PM, Spehro Pefhany wrote:
> On Sun, 22 Nov 2015 14:33:55 -0500, the renowned rickman
> <gnuarm@gmail.com> wrote:
>
>> If a heater is controlled by turning it on and off, does a PID algorithm
>> help in more closely controlling the temperature?
>
> It can help. You turn the heater on and off fast enough that it is
> effectively an analog output. It's called 'time proportioning' in the
> industry.

How does the PID loop turn the heater on and off any faster than a 
simple set point?  Add an anticipator and overshoot is minimized.


>> Will running the PID loop faster than the temperature measurement
>> improve anything?
>
> Certainly not. There's no new information.
>
>> How would a PID control be an improvement over a simple temperature
>> comparison with or without an anticipator?
>
> With an anticipator it might be fairly similar. Comparison normally
> needs some deadband so you would tend to get higher temperature ripple
> with comparison that with a time-proportioning PID. The output will
> turn off earlier in the latter case, as it needs no information from
> the sensor to do so (it can turn on and off many times per temperature
> measurement if you want, but it's commonly not done that way).

When you say "time-proportioning PID", you mean an output that is not 
just on or off, but a number that is used to control PWM?  That would be 
above and beyond just PID.

Someone in another group seems to be saying his PID loop running at 10x 
the temperature measurement rate gives him this fine on/off control. 
But his temperature measurements have lots of variation.  Well, by 
"lots" I mean a lot more than I expect could be done easily by just 
setting a temperature and turning the heat on and off possibly with an 
anticipator.  He is getting maybe ±1 C°.  My house thermostat keeps the 
temperature within 1 F° and it is not really trying.  He doesn't really 
want to discuss it.  I would like to understand the reality.

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#386200

FromBill Sloman <bill.sloman@gmail.com>
Date2015-11-22 16:55 -0800
Message-ID<8f2766a6-5df8-478b-a3b8-0e52d5e8d4f9@googlegroups.com>
In reply to#386196
On Monday, 23 November 2015 11:44:37 UTC+11, rickman  wrote:
> On 11/22/2015 6:13 PM, Spehro Pefhany wrote:
> > On Sun, 22 Nov 2015 14:33:55 -0500, the renowned rickman
> > <gnuarm@gmail.com> wrote:
> >
> >> If a heater is controlled by turning it on and off, does a PID algorithm
> >> help in more closely controlling the temperature?
> >
> > It can help. You turn the heater on and off fast enough that it is
> > effectively an analog output. It's called 'time proportioning' in the
> > industry.
> 
> How does the PID loop turn the heater on and off any faster than a 
> simple set point?  Add an anticipator and overshoot is minimized.
> 
> 
> >> Will running the PID loop faster than the temperature measurement
> >> improve anything?
> >
> > Certainly not. There's no new information.
> >
> >> How would a PID control be an improvement over a simple temperature
> >> comparison with or without an anticipator?
> >
> > With an anticipator it might be fairly similar. Comparison normally
> > needs some deadband so you would tend to get higher temperature ripple
> > with comparison that with a time-proportioning PID. The output will
> > turn off earlier in the latter case, as it needs no information from
> > the sensor to do so (it can turn on and off many times per temperature
> > measurement if you want, but it's commonly not done that way).
> 
> When you say "time-proportioning PID", you mean an output that is not 
> just on or off, but a number that is used to control PWM?  That would be 
> above and beyond just PID.
> 
> Someone in another group seems to be saying his PID loop running at 10x 
> the temperature measurement rate gives him this fine on/off control. 
> But his temperature measurements have lots of variation.  Well, by 
> "lots" I mean a lot more than I expect could be done easily by just 
> setting a temperature and turning the heat on and off possibly with an 
> anticipator.  He is getting maybe ±1 C°.  My house thermostat keeps the 
> temperature within 1 F° and it is not really trying.  He doesn't really 
> want to discuss it.  I would like to understand the reality.

You may want to read up on "dithering".

https://en.wikipedia.org/wiki/Dither

-- 
Bill Sloman, Sydney

[toc] | [prev] | [next] | [standalone]


#386204

Fromwhit3rd <whit3rd@gmail.com>
Date2015-11-22 17:44 -0800
Message-ID<27a9cc8f-0570-4c23-9ea3-75eeae57f107@googlegroups.com>
In reply to#386196
On Sunday, November 22, 2015 at 4:44:37 PM UTC-8, rickman wrote:
> On 11/22/2015 6:13 PM, Spehro Pefhany wrote:
> > On Sun, 22 Nov 2015 14:33:55 -0500, the renowned rickman
> > <gnuarm@gmail.com> wrote:

> >> Will running the PID loop faster than the temperature measurement
> >> improve anything?
> >
> > Certainly not. There's no new information.

Moreover, it takes two or more measurements of temperature to update
a 'D' (differential) value.   It's unclear whether this is about a time-sampled
temperature measurement (with discrete approximations of integral,
proportional, and derivative terms), or an analog measurement of
temperature with analog differentiation and integration elements.

> >> How would a PID control be an improvement over a simple temperature
> >> comparison with or without an anticipator?

This is confusing; the 'D' term, in PID,  is an anticipator.

> Someone in another group seems to be saying his PID loop running at 10x 
> the temperature measurement rate gives him this fine on/off control. 

If he is computing a new proportional term (or integral, or derivative), it
means he has an extrapolation of his temperature measurements, and is
applying that extrapolation to compute the PID response.  The issue then
becomes the accuracy of the extrapolation (which depends on the system
and the extrapolation scheme).
If he's not computing a new term, his 'PID' latches a heat setting until the next
temperature update.

[toc] | [prev] | [next] | [standalone]


#386217

Fromrickman <gnuarm@gmail.com>
Date2015-11-23 01:32 -0500
Message-ID<n2ubpb$6fc$1@dont-email.me>
In reply to#386204
On 11/22/2015 8:44 PM, whit3rd wrote:
> On Sunday, November 22, 2015 at 4:44:37 PM UTC-8, rickman wrote:
>> On 11/22/2015 6:13 PM, Spehro Pefhany wrote:
>>> On Sun, 22 Nov 2015 14:33:55 -0500, the renowned rickman
>>> <gnuarm@gmail.com> wrote:
>
>>>> Will running the PID loop faster than the temperature measurement
>>>> improve anything?
>>>
>>> Certainly not. There's no new information.
>
> Moreover, it takes two or more measurements of temperature to update
> a 'D' (differential) value.   It's unclear whether this is about a time-sampled
> temperature measurement (with discrete approximations of integral,
> proportional, and derivative terms), or an analog measurement of
> temperature with analog differentiation and integration elements.

Digital samples.  Typically the delta between the last and the current 
measurement is considered to be the derivative.


>>>> How would a PID control be an improvement over a simple temperature
>>>> comparison with or without an anticipator?
>
> This is confusing; the 'D' term, in PID,  is an anticipator.

Really?  I thought the D term is a derivative responding to the rate of 
change.  If the slope is upward, it will end the heating cycle a bit 
early, but if the slope is downward, it will start the heating cycle 
before it would otherwise which the anticipator won't do.

The anticipator integrates in a manner similar to the heating element 
and is used to end the heating cycle early in the amount it is expected 
that the heater will continue to heat once the element is turned off. 
In typical bi-metallic thermostats this is done with a small heater in 
the thermostat which mirrors the heating element.


>> Someone in another group seems to be saying his PID loop running at 10x
>> the temperature measurement rate gives him this fine on/off control.
>
> If he is computing a new proportional term (or integral, or derivative), it
> means he has an extrapolation of his temperature measurements, and is
> applying that extrapolation to compute the PID response.  The issue then
> becomes the accuracy of the extrapolation (which depends on the system
> and the extrapolation scheme).
> If he's not computing a new term, his 'PID' latches a heat setting until the next
> temperature update.

I don't see how any of this is better than just taking the temperature 
measurement.

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#386218

FromSpehro Pefhany <speffSNIP@interlogDOTyou.knowwhat>
Date2015-11-23 01:54 -0500
Message-ID<4bd55btqklngqs5h4nlcouk8tijoca4ika@4ax.com>
In reply to#386217
On Mon, 23 Nov 2015 01:32:22 -0500, the renowned rickman
<gnuarm@gmail.com> wrote:

>
>Digital samples.  Typically the delta between the last and the current 
>measurement is considered to be the derivative.

It's not nearly as simple as that. 

https://en.wikipedia.org/wiki/Finite_difference_coefficient#Forward_and_backward_finite_difference

Of course, only the backwards difference is causal. 

But difference between samples may be small compared to quantization
or other noise (especially if you are sampling at a relatively high
rate) so that method (alone) is typically not sufficient either-
filtering is required if you really want the D. 



--sp 



-- 
Best regards, 
Spehro Pefhany
Amazon link for AoE 3rd Edition:            http://tinyurl.com/ntrpwu8
Microchip link for 2015 Masters in Phoenix: http://tinyurl.com/l7g2k48

[toc] | [prev] | [next] | [standalone]


#386219

Fromrickman <gnuarm@gmail.com>
Date2015-11-23 02:12 -0500
Message-ID<n2ue5a$bgm$1@dont-email.me>
In reply to#386218
On 11/23/2015 1:54 AM, Spehro Pefhany wrote:
> On Mon, 23 Nov 2015 01:32:22 -0500, the renowned rickman
> <gnuarm@gmail.com> wrote:
>
>>
>> Digital samples.  Typically the delta between the last and the current
>> measurement is considered to be the derivative.
>
> It's not nearly as simple as that.
>
> https://en.wikipedia.org/wiki/Finite_difference_coefficient#Forward_and_backward_finite_difference
>
> Of course, only the backwards difference is causal.
>
> But difference between samples may be small compared to quantization
> or other noise (especially if you are sampling at a relatively high
> rate) so that method (alone) is typically not sufficient either-
> filtering is required if you really want the D.

He posted a series of temp samples and they showed very low noise, none 
that I could see by inspection.  So that's not an issue.

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#386221

FromSpehro Pefhany <speffSNIP@interlogDOTyou.knowwhat>
Date2015-11-23 02:34 -0500
Message-ID<2sf55bpkm9dmdsan1op8p49rr3d6vtf6do@4ax.com>
In reply to#386219
On Mon, 23 Nov 2015 02:12:54 -0500, the renowned rickman
<gnuarm@gmail.com> wrote:

>
>He posted a series of temp samples and they showed very low noise, none 
>that I could see by inspection.  So that's not an issue.

No. You _really_ can not conclude that until you know the required D
gain for the tuned system (the time constant for D).  

It more than likely is an issue in a real system (as opposed to a
simulation with double-precision numbers). 

Avoiding the math (you shouldn't) to get an intuitive idea- if you
want to cut the heat back 50% when the temperature is rising at 1
degree per 60 seconds, and your sample rate is 10Hz then you need a
gain of several hundred, so a fraction of a hundreth of a degree of
noise (including quantization noise) is important. 


--sp 



-- 
Best regards, 
Spehro Pefhany
Amazon link for AoE 3rd Edition:            http://tinyurl.com/ntrpwu8
Microchip link for 2015 Masters in Phoenix: http://tinyurl.com/l7g2k48

[toc] | [prev] | [next] | [standalone]


#386228

Fromrickman <gnuarm@gmail.com>
Date2015-11-23 03:33 -0500
Message-ID<n2uis3$r4d$1@dont-email.me>
In reply to#386221
On 11/23/2015 2:34 AM, Spehro Pefhany wrote:
> On Mon, 23 Nov 2015 02:12:54 -0500, the renowned rickman
> <gnuarm@gmail.com> wrote:
>
>>
>> He posted a series of temp samples and they showed very low noise, none
>> that I could see by inspection.  So that's not an issue.
>
> No. You _really_ can not conclude that until you know the required D
> gain for the tuned system (the time constant for D).
>
> It more than likely is an issue in a real system (as opposed to a
> simulation with double-precision numbers).
>
> Avoiding the math (you shouldn't) to get an intuitive idea- if you
> want to cut the heat back 50% when the temperature is rising at 1
> degree per 60 seconds, and your sample rate is 10Hz then you need a
> gain of several hundred, so a fraction of a hundreth of a degree of
> noise (including quantization noise) is important.

If the resolution of the temperature measurement is just 0.1 degree, 
then that will be difficult.

-- 

Rick

[toc] | [prev] | [next] | [standalone]


#386274

FromJoe Hey <joehey@mailinator.com>
Date2015-11-23 15:58 +0000
Message-ID<20151123155803.48afdf7f.joehey@mailinator.com>
In reply to#386218
On Mon, 23 Nov 2015 01:54:21 -0500
Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> wrote:

> On Mon, 23 Nov 2015 01:32:22 -0500, the renowned rickman
> <gnuarm@gmail.com> wrote:
> 
> >
> >Digital samples.  Typically the delta between the last and the
> >current measurement is considered to be the derivative.
> 
> It's not nearly as simple as that. 
> 
> https://en.wikipedia.org/wiki/Finite_difference_coefficient#Forward_and_backward_finite_difference
> 
> Of course, only the backwards difference is causal. 
> 
> But difference between samples may be small compared to quantization
> or other noise (especially if you are sampling at a relatively high
> rate) so that method (alone) is typically not sufficient either-
> filtering is required if you really want the D. 

Sampling at 'a relatively high rate' is useless. Filtering would then
indeed be the logical thing to do.

joe


> --sp 
> 
> 
> 

[toc] | [prev] | [next] | [standalone]


Page 1 of 3  [1] 2 3  Next page →

Back to top | Article view | sci.electronics.design


csiph-web