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


Groups > comp.arch.embedded > #23614 > unrolled thread

PID Without a PhD, Finally

Started byTim Wescott <seemywebsite@myfooter.really>
First post2016-04-14 17:03 -0500
Last post2016-04-26 13:46 -0500
Articles 20 on this page of 101 — 27 participants

Back to article view | Back to comp.arch.embedded


Contents

  PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-14 17:03 -0500
    Re: PID Without a PhD, Finally bitrex <bitrex@de.lete.earthlink.net> - 2016-04-14 19:00 -0400
    Re: PID Without a PhD, Finally DJ Delorie <dj@delorie.com> - 2016-04-14 19:09 -0400
      Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-14 18:25 -0500
      Re: PID Without a PhD, Finally DaveC <not@home.cow> - 2016-04-14 22:53 -0700
        Re: PID Without a PhD, Finally DJ Delorie <dj@delorie.com> - 2016-04-15 14:31 -0400
      Re: PID Without a PhD, Finally Tim Wescott <tim@seemywebsite.com> - 2016-04-15 15:02 -0500
        Re: PID Without a PhD, Finally Paul Rubin <no.email@nospam.invalid> - 2016-04-26 00:30 -0700
          Re: PID Without a PhD, Finally Andre Lodwig <lodwig@pathme.de> - 2016-04-26 09:45 +0200
          Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-26 12:08 -0500
            Re: PID Without a PhD, Finally Les Cargill <lcargill99@comcast.com> - 2016-04-26 21:50 -0500
          Re: PID Without a PhD, Finally Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-04-26 19:34 -0400
          Re: PID Without a PhD, Finally Les Cargill <lcargill99@comcast.com> - 2016-04-26 21:39 -0500
      Re: PID Without a PhD, Finally John Larkin <jjlarkin@highlandtechnology.com> - 2016-04-26 17:07 -0700
        Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-26 20:50 -0400
          Re: PID Without a PhD, Finally Les Cargill <lcargill99@comcast.com> - 2016-04-26 21:57 -0500
        Re: PID Without a PhD, Finally Les Cargill <lcargill99@comcast.com> - 2016-04-26 21:45 -0500
          Re: PID Without a PhD, Finally John Larkin <jjlarkin@highlandtechnology.com> - 2016-04-27 10:16 -0700
            Re: PID Without a PhD, Finally Les Cargill <lcargill99@comcast.com> - 2016-04-28 22:02 -0500
              Re: PID Without a PhD, Finally M Philbrook <jamie_ka1lpa@charter.net> - 2016-04-30 20:12 -0400
              Re: PID Without a PhD, Finally John Larkin <jjlarkin@highlandtechnology.com> - 2016-05-02 10:50 -0700
                Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-05-02 13:14 -0500
                  Re: PID Without a PhD, Finally John Larkin <jjlarkin@highlandtechnology.com> - 2016-05-02 17:26 -0700
                    Re: PID Without a PhD, Finally Paul Rubin <no.email@nospam.invalid> - 2016-05-02 17:57 -0700
                      Re: PID Without a PhD, Finally Paul <paul@pcserviceselectronics.co.uk> - 2016-05-03 17:16 +0100
                      Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-05-03 17:23 -0500
                        Re: PID Without a PhD, Finally John Larkin <jjlarkin@highlandtechnology.com> - 2016-05-03 17:07 -0700
                          Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-05-04 11:37 -0500
                Re: PID Without a PhD, Finally Les Cargill <lcargill99@comcast.com> - 2016-05-02 19:07 -0500
                  Re: PID Without a PhD, Finally John Larkin <jjlarkin@highlandtechnology.com> - 2016-05-02 17:21 -0700
                    Re: PID Without a PhD, Finally Paul Rubin <no.email@nospam.invalid> - 2016-05-02 17:53 -0700
                      Re: PID Without a PhD, Finally John Larkin <jjlarkin@highlandtechnology.com> - 2016-05-02 19:48 -0700
                      Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-05-02 22:31 -0500
                        Re: PID Without a PhD, Finally Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-05-03 10:54 -0400
                        Re: PID Without a PhD, Finally John Larkin <jjlarkin@highlandtechnology.com> - 2016-05-03 08:25 -0700
                    Re: PID Without a PhD, Finally Les Cargill <lcargill99@comcast.com> - 2016-05-02 23:23 -0500
                      Re: PID Without a PhD, Finally John Larkin <jjlarkin@highlandtechnology.com> - 2016-05-03 11:46 -0700
    Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-14 19:11 -0400
      Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-14 18:41 -0500
        Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-14 21:50 -0400
          Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-14 21:57 -0400
            Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-14 21:58 -0400
      Re: PID Without a PhD, Finally Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2016-04-15 12:28 +0300
        Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-15 11:29 -0400
          Re: PID Without a PhD, Finally Tim Wescott  <Tim@seemywebsite.com> - 2016-04-15 09:31 -0700
            Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 12:35 -0500
              Re: PID Without a PhD, Finally Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-04-15 14:04 -0400
                Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 13:11 -0500
                  Re: PID Without a PhD, Finally Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-04-15 14:32 -0400
            Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-15 13:51 -0400
              Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 12:57 -0500
                Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-15 18:12 -0400
    Re: PID Without a PhD, Finally Clifford Heath <no.spam@please.net> - 2016-04-15 03:37 +1000
      Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-14 19:12 -0500
        Re: PID Without a PhD, Finally Ralph Barone <ralph@invalid.com> - 2016-04-15 06:05 +0000
    Re: PID Without a PhD, Finally quiasmox@yahoo.com - 2016-04-14 20:10 -0500
      Re: PID Without a PhD, Finally Tim Wescott <tim@seemywebsite.com> - 2016-04-14 23:06 -0500
        Re: PID Without a PhD, Finally quiasmox@yahoo.com - 2016-04-14 23:46 -0500
    Re: PID Without a PhD, Finally o pere o <me@somewhere.net> - 2016-04-15 11:23 +0200
      Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 12:18 -0500
    Re: PID Without a PhD, Finally Peter Mairhofer <63832452@gmx.net> - 2016-04-15 03:46 -0700
      Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 12:19 -0500
    Re: PID Without a PhD, Finally Paul <paul@pcserviceselectronics.co.uk> - 2016-04-15 14:43 +0100
      Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 12:32 -0500
        Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-15 13:47 -0400
          Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 13:00 -0500
            Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-15 14:42 -0400
              Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 14:02 -0500
                Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-15 16:04 -0400
          Re: PID Without a PhD, Finally Jasen Betts <jasen@xnet.co.nz> - 2016-04-16 09:12 +0000
            Re: PID Without a PhD, Finally Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2016-04-16 13:35 +0200
            Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-16 12:34 -0400
              Re: PID Without a PhD, Finally Jasen Betts <jasen@xnet.co.nz> - 2016-04-17 08:12 +0000
        Re: PID Without a PhD, Finally Dimiter_Popoff <dp@tgi-sci.com> - 2016-04-15 23:27 +0300
          Re: PID Without a PhD, Finally Clifford Heath <no.spam@please.net> - 2016-04-16 12:32 +1000
    Re: PID Without a PhD, Finally Paul <paul@pcserviceselectronics.co.uk> - 2016-04-15 14:31 +0100
      Re: PID Without a PhD, Finally Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-04-15 10:20 -0400
      Re: PID Without a PhD, Finally David Brown <david.brown@hesbynett.no> - 2016-04-15 17:25 +0200
        Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 12:30 -0500
          Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-15 13:44 -0400
            Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 12:59 -0500
          Re: PID Without a PhD, Finally David Brown <david.brown@hesbynett.no> - 2016-04-15 20:37 +0200
            Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 13:53 -0500
              Re: PID Without a PhD, Finally Dimiter_Popoff <dp@tgi-sci.com> - 2016-04-15 23:40 +0300
                Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 16:44 -0500
              Re: PID Without a PhD, Finally David Brown <david.brown@hesbynett.no> - 2016-04-16 18:16 +0200
          Re: PID Without a PhD, Finally Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-04-15 14:48 -0400
            Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 13:59 -0500
              Re: PID Without a PhD, Finally Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-04-15 16:23 -0400
              Re: PID Without a PhD, Finally Clifford Heath <no.spam@please.net> - 2016-04-16 12:41 +1000
              Re: PID Without a PhD, Finally David Brown <david.brown@hesbynett.no> - 2016-04-16 18:21 +0200
            Re: PID Without a PhD, Finally Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2016-04-15 21:19 +0200
              Re: PID Without a PhD, Finally Tim Wescott <tim@seemywebsite.com> - 2016-04-15 15:05 -0500
                Re: PID Without a PhD, Finally Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-04-15 16:18 -0400
                Re: PID Without a PhD, Finally Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2016-04-16 19:52 +0200
    Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 19:38 -0500
    Re: PID Without a PhD, Finally John S <Sophi.2@invalid.org> - 2016-04-15 22:02 -0500
    Re: PID Without a PhD, Finally Christian Gollwitzer <auriocus@gmx.de> - 2016-04-16 09:25 +0200
    Re: PID Without a PhD, Finally OG <AIEO@AIOESPAM.COM> - 2016-04-17 10:12 -0700
    Re: PID Without a PhD, Finally John Larkin <jjlarkin@highlandtechnology.com> - 2016-04-26 11:12 -0700
      Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-26 13:46 -0500

Page 2 of 6 — ← Prev page 1 [2] 3 4 5 6  Next page →


#23826

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2016-05-02 10:50 -0700
Message-ID<1p4fib11kffprlk2cfi8si1s14nm04l1ao@4ax.com>
In reply to#23800
On Thu, 28 Apr 2016 22:02:08 -0500, Les Cargill
<lcargill99@comcast.com> wrote:

>John Larkin wrote:
>> On Tue, 26 Apr 2016 21:45:06 -0500, Les Cargill
>> <lcargill99@comcast.com> wrote:
>>
>>> John Larkin wrote:
>>>> On Thu, 14 Apr 2016 19:09:26 -0400, DJ Delorie <dj@delorie.com> wrote:
>>>>
>>>>>
>>>>> You leave out math but include C code, I think that's defeating the
>>>>> purpose.  If you can't explain it in non-technical words or a simple
>>>>> picture... well, try harder :-)
>>>>>
>>>>> You spend only one page on tuning, and give no examples of "If you see
>>>>> this, try this" which is much more useful to the practical user.
>>>>
>>>>
>>>> Engineers tend to do
>>>>
>>>>     Actuator = error * (Kp + Ki + Kd)
>>>>
>>>
>>> Uhhhhh... no.
>>>
>>> Actuator = (error * Kp)
>>>             + ( filter1(sum(error)) * Ki )
>>>             + ( filter2(delta(error,lastError)) * Kd)
>>>
>>>> whereas old-time analog controllers did
>>>>
>>>>     Actuator = Kp * (1 + Ki + Kd)
>>>>
>>>> with the idea being that it's easier to tune on-site.
>>>>
>>>>
>>>
>>> Because trimpots are awesome.
>>
>> Oh, you know what I mean. Old-time analog PID controllers often used a
>> different sigal flow path than sum-of-terms.
>>
>>
>
>Oh, I'm sure. I haven't done anything directly with analog
>PID other than read about them.

We do it all the time on boards: voltage regulator loops, power amps,
that sort of thing.


-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

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


#23827

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-05-02 13:14 -0500
Message-ID<ub2dnSn3Fb6OBLrKnZ2dnUU7-LudnZ2d@giganews.com>
In reply to#23826
On Mon, 02 May 2016 10:50:32 -0700, John Larkin wrote:

> On Thu, 28 Apr 2016 22:02:08 -0500, Les Cargill <lcargill99@comcast.com>
> wrote:
> 
>>John Larkin wrote:
>>> On Tue, 26 Apr 2016 21:45:06 -0500, Les Cargill
>>> <lcargill99@comcast.com> wrote:
>>>
>>>> John Larkin wrote:
>>>>> On Thu, 14 Apr 2016 19:09:26 -0400, DJ Delorie <dj@delorie.com>
>>>>> wrote:
>>>>>
>>>>>
>>>>>> You leave out math but include C code, I think that's defeating the
>>>>>> purpose.  If you can't explain it in non-technical words or a
>>>>>> simple picture... well, try harder :-)
>>>>>>
>>>>>> You spend only one page on tuning, and give no examples of "If you
>>>>>> see this, try this" which is much more useful to the practical
>>>>>> user.
>>>>>
>>>>>
>>>>> Engineers tend to do
>>>>>
>>>>>     Actuator = error * (Kp + Ki + Kd)
>>>>>
>>>>>
>>>> Uhhhhh... no.
>>>>
>>>> Actuator = (error * Kp)
>>>>             + ( filter1(sum(error)) * Ki )
>>>>             + ( filter2(delta(error,lastError)) * Kd)
>>>>
>>>>> whereas old-time analog controllers did
>>>>>
>>>>>     Actuator = Kp * (1 + Ki + Kd)
>>>>>
>>>>> with the idea being that it's easier to tune on-site.
>>>>>
>>>>>
>>>>>
>>>> Because trimpots are awesome.
>>>
>>> Oh, you know what I mean. Old-time analog PID controllers often used a
>>> different sigal flow path than sum-of-terms.
>>>
>>>
>>>
>>Oh, I'm sure. I haven't done anything directly with analog PID other
>>than read about them.
> 
> We do it all the time on boards: voltage regulator loops, power amps,
> that sort of thing.

I have to admit that I do more "seat of the pants" loop tuning in that 
sort of circumstance than I should.

Sometimes more math and less knob-twiddling is a good thing (sometimes 
not).

-- 

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

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


#23831

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2016-05-02 17:26 -0700
Message-ID<0orfib1sj9hv2c0gajnoq19hvaoahfdcim@4ax.com>
In reply to#23827
On Mon, 02 May 2016 13:14:43 -0500, Tim Wescott
<seemywebsite@myfooter.really> wrote:

>On Mon, 02 May 2016 10:50:32 -0700, John Larkin wrote:
>
>> On Thu, 28 Apr 2016 22:02:08 -0500, Les Cargill <lcargill99@comcast.com>
>> wrote:
>> 
>>>John Larkin wrote:
>>>> On Tue, 26 Apr 2016 21:45:06 -0500, Les Cargill
>>>> <lcargill99@comcast.com> wrote:
>>>>
>>>>> John Larkin wrote:
>>>>>> On Thu, 14 Apr 2016 19:09:26 -0400, DJ Delorie <dj@delorie.com>
>>>>>> wrote:
>>>>>>
>>>>>>
>>>>>>> You leave out math but include C code, I think that's defeating the
>>>>>>> purpose.  If you can't explain it in non-technical words or a
>>>>>>> simple picture... well, try harder :-)
>>>>>>>
>>>>>>> You spend only one page on tuning, and give no examples of "If you
>>>>>>> see this, try this" which is much more useful to the practical
>>>>>>> user.
>>>>>>
>>>>>>
>>>>>> Engineers tend to do
>>>>>>
>>>>>>     Actuator = error * (Kp + Ki + Kd)
>>>>>>
>>>>>>
>>>>> Uhhhhh... no.
>>>>>
>>>>> Actuator = (error * Kp)
>>>>>             + ( filter1(sum(error)) * Ki )
>>>>>             + ( filter2(delta(error,lastError)) * Kd)
>>>>>
>>>>>> whereas old-time analog controllers did
>>>>>>
>>>>>>     Actuator = Kp * (1 + Ki + Kd)
>>>>>>
>>>>>> with the idea being that it's easier to tune on-site.
>>>>>>
>>>>>>
>>>>>>
>>>>> Because trimpots are awesome.
>>>>
>>>> Oh, you know what I mean. Old-time analog PID controllers often used a
>>>> different sigal flow path than sum-of-terms.
>>>>
>>>>
>>>>
>>>Oh, I'm sure. I haven't done anything directly with analog PID other
>>>than read about them.
>> 
>> We do it all the time on boards: voltage regulator loops, power amps,
>> that sort of thing.
>
>I have to admit that I do more "seat of the pants" loop tuning in that 
>sort of circumstance than I should.

Nothing wrong with that. We're not at a blackboard trying to impress a
classroom full of EE students, we're trying to design something that
works.

>
>Sometimes more math and less knob-twiddling is a good thing (sometimes 
>not).

Tuning by simulation is quick. Use a little theory to get the starting
point. Any serious loop is nonlinear enough that it should be
simulated anyhow. Sometimes the only practical way to design a
temperature control loop is by breadboarding it; the thermal structure
can be too fuzzy to even simulate.



-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

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


#23833

FromPaul Rubin <no.email@nospam.invalid>
Date2016-05-02 17:57 -0700
Message-ID<87vb2wdklf.fsf@nightsong.com>
In reply to#23831
John Larkin <jjlarkin@highlandtechnology.com> writes:
> Sometimes the only practical way to design a temperature control loop
> is by breadboarding it; the thermal structure can be too fuzzy to even
> simulate.

I wonder how close you can come by sticking temperature sensors all over
the place during development.  Then apply heat in a single place and see
how the temperature map evolves over time; then move the heat source to
another place and repeat, etc.  The idea is to get enough info to let
you simulate the system accurately using basic thermo equations.

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


#23840

FromPaul <paul@pcserviceselectronics.co.uk>
Date2016-05-03 17:16 +0100
Message-ID<MPG.3192df2fb2c6a57f9897f6@172.16.0.1>
In reply to#23833
In article <87vb2wdklf.fsf@nightsong.com>, no.email@nospam.invalid 
says...
> 
> John Larkin <jjlarkin@highlandtechnology.com> writes:
> > Sometimes the only practical way to design a temperature control loop
> > is by breadboarding it; the thermal structure can be too fuzzy to even
> > simulate.
> 
> I wonder how close you can come by sticking temperature sensors all over
> the place during development.  Then apply heat in a single place and see
> how the temperature map evolves over time; then move the heat source to
> another place and repeat, etc.  The idea is to get enough info to let
> you simulate the system accurately using basic thermo equations.

BTDTGTS _sometimes_ you can do that but often this is a SYSTEM based 
problem, involving many aspects and best guesses can be made but until
a complete system is built the thermal and other effects of adjacent 
components affect the whole system.

I remember a light box for behind some very high brightness LCD screens
(4 x 11W fluorescent tubes and their holders), that required fan 
cooling. The thermal properties got difficult to model, depending on 
things like slight change of positioning of cabling, of the tube holders
let alone slight changes in fan position or ducting or variations 
between fans. Then we get to heat profile, measured by array of 
thermistors, that varied depending on how tight the mounting screws of 
the light box secured it to the frame. Trying to work best way to run 12 
thermistor cables to avoid interrupting air flow or changing effects was 
'interesting'.

-- 
Paul Carpenter          | paul@pcserviceselectronics.co.uk
<http://www.pcserviceselectronics.co.uk/>    PC Services
<http://www.pcserviceselectronics.co.uk/pi/>  Raspberry Pi Add-ons
<http://www.pcserviceselectronics.co.uk/fonts/> Timing Diagram Font
<http://www.badweb.org.uk/> For those web sites you hate

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


#23850

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-05-03 17:23 -0500
Message-ID<t6qdnXf7COtBubTKnZ2dnUU7-aOdnZ2d@giganews.com>
In reply to#23833
On Mon, 02 May 2016 17:57:32 -0700, Paul Rubin wrote:

> John Larkin <jjlarkin@highlandtechnology.com> writes:
>> Sometimes the only practical way to design a temperature control loop
>> is by breadboarding it; the thermal structure can be too fuzzy to even
>> simulate.
> 
> I wonder how close you can come by sticking temperature sensors all over
> the place during development.  Then apply heat in a single place and see
> how the temperature map evolves over time; then move the heat source to
> another place and repeat, etc.  The idea is to get enough info to let
> you simulate the system accurately using basic thermo equations.

If the question you want to answer is "now that I have it, how to I 
control it", then you can do swept-sine or step-input tests for system 
identification, and then design your controller from that.

I prefer swept-sine measurements followed by design based on Bode plots.  
I like them because they're valid for any linear system, even ones that 
have distributed states, and because -- to an extent -- you can take 
nonlinearities into account as part of your control design.

<http://wescottdesign.com/articles/FreqMeas/freq_meas.html> 

-- 

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

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


#23851

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2016-05-03 17:07 -0700
Message-ID<5seiibdrghag0c8np9iaip4jkrbdp9a538@4ax.com>
In reply to#23850
On Tue, 03 May 2016 17:23:24 -0500, Tim Wescott
<seemywebsite@myfooter.really> wrote:

>On Mon, 02 May 2016 17:57:32 -0700, Paul Rubin wrote:
>
>> John Larkin <jjlarkin@highlandtechnology.com> writes:
>>> Sometimes the only practical way to design a temperature control loop
>>> is by breadboarding it; the thermal structure can be too fuzzy to even
>>> simulate.
>> 
>> I wonder how close you can come by sticking temperature sensors all over
>> the place during development.  Then apply heat in a single place and see
>> how the temperature map evolves over time; then move the heat source to
>> another place and repeat, etc.  The idea is to get enough info to let
>> you simulate the system accurately using basic thermo equations.
>
>If the question you want to answer is "now that I have it, how to I 
>control it", then you can do swept-sine or step-input tests for system 
>identification, and then design your controller from that.
>
>I prefer swept-sine measurements followed by design based on Bode plots.  
>I like them because they're valid for any linear system, even ones that 
>have distributed states, and because -- to an extent -- you can take 
>nonlinearities into account as part of your control design.
>
><http://wescottdesign.com/articles/FreqMeas/freq_meas.html> 


A thermal system might have milliHertz responses, heater to sensor. I
find it easier to measure the step response, which still might take
many minutes to settle, and hack up an RC network model that simulates
like the hardware. Diffusion is involved, so it might need a lot of
RCs.

The biggest nonlinearity in a closed-loop heater is railing the driver
output at 0 and 100%. And there is a square-law heater response if you
use a simple voltage drive.



-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

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


#23871

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-05-04 11:37 -0500
Message-ID<uJ-dnaYs85uiuLfKnZ2dnUU7-emdnZ2d@giganews.com>
In reply to#23851
On Tue, 03 May 2016 17:07:28 -0700, John Larkin wrote:

> On Tue, 03 May 2016 17:23:24 -0500, Tim Wescott
> <seemywebsite@myfooter.really> wrote:
> 
>>On Mon, 02 May 2016 17:57:32 -0700, Paul Rubin wrote:
>>
>>> John Larkin <jjlarkin@highlandtechnology.com> writes:
>>>> Sometimes the only practical way to design a temperature control loop
>>>> is by breadboarding it; the thermal structure can be too fuzzy to
>>>> even simulate.
>>> 
>>> I wonder how close you can come by sticking temperature sensors all
>>> over the place during development.  Then apply heat in a single place
>>> and see how the temperature map evolves over time; then move the heat
>>> source to another place and repeat, etc.  The idea is to get enough
>>> info to let you simulate the system accurately using basic thermo
>>> equations.
>>
>>If the question you want to answer is "now that I have it, how to I
>>control it", then you can do swept-sine or step-input tests for system
>>identification, and then design your controller from that.
>>
>>I prefer swept-sine measurements followed by design based on Bode plots.
>>I like them because they're valid for any linear system, even ones that
>>have distributed states, and because -- to an extent -- you can take
>>nonlinearities into account as part of your control design.
>>
>><http://wescottdesign.com/articles/FreqMeas/freq_meas.html>
> 
> 
> A thermal system might have milliHertz responses, heater to sensor. I
> find it easier to measure the step response, which still might take many
> minutes to settle, and hack up an RC network model that simulates like
> the hardware. Diffusion is involved, so it might need a lot of RCs.
> 
> The biggest nonlinearity in a closed-loop heater is railing the driver
> output at 0 and 100%. And there is a square-law heater response if you
> use a simple voltage drive.

Most swept-sine measurement systems (I have one that I compile in with 
any serious control code in my embedded stuff) will run a measurement 
unattended.  Just leave a yellow card with "test in progress" on the 
thing and go have a nice lunch.

There's formal methods for extracting parameters from a step response, 
but if your accuracy need isn't super-stringent then eyeballing it with 
RC networks isn't a bad way to go.

Yes on the nonlinearity, although if it's not going to batter the power 
supply too much then a simple slow PWM to the heating element will take 
care of that right off, or use the pass transistor for the heating 
element (which is easy if you're talking about incubating eggs, but 
challenging if you're melting tungsten).

-- 

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

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


#23829

FromLes Cargill <lcargill99@comcast.com>
Date2016-05-02 19:07 -0500
Message-ID<ng8pp5$112$1@dont-email.me>
In reply to#23826
John Larkin wrote:
> On Thu, 28 Apr 2016 22:02:08 -0500, Les Cargill
> <lcargill99@comcast.com> wrote:
>
>> John Larkin wrote:
>>> On Tue, 26 Apr 2016 21:45:06 -0500, Les Cargill
>>> <lcargill99@comcast.com> wrote:
>>>
>>>> John Larkin wrote:
>>>>> On Thu, 14 Apr 2016 19:09:26 -0400, DJ Delorie <dj@delorie.com> wrote:
>>>>>
>>>>>>
>>>>>> You leave out math but include C code, I think that's defeating the
>>>>>> purpose.  If you can't explain it in non-technical words or a simple
>>>>>> picture... well, try harder :-)
>>>>>>
>>>>>> You spend only one page on tuning, and give no examples of "If you see
>>>>>> this, try this" which is much more useful to the practical user.
>>>>>
>>>>>
>>>>> Engineers tend to do
>>>>>
>>>>>      Actuator = error * (Kp + Ki + Kd)
>>>>>
>>>>
>>>> Uhhhhh... no.
>>>>
>>>> Actuator = (error * Kp)
>>>>              + ( filter1(sum(error)) * Ki )
>>>>              + ( filter2(delta(error,lastError)) * Kd)
>>>>
>>>>> whereas old-time analog controllers did
>>>>>
>>>>>      Actuator = Kp * (1 + Ki + Kd)
>>>>>
>>>>> with the idea being that it's easier to tune on-site.
>>>>>
>>>>>
>>>>
>>>> Because trimpots are awesome.
>>>
>>> Oh, you know what I mean. Old-time analog PID controllers often used a
>>> different sigal flow path than sum-of-terms.
>>>
>>>
>>
>> Oh, I'm sure. I haven't done anything directly with analog
>> PID other than read about them.
>
> We do it all the time on boards: voltage regulator loops, power amps,
> that sort of thing.
>
>

Unlike PIDs, most of those should have a pretty simple method for 
figuring out it's at balance.

I dunno, I've made some things self-calibrating in software lately.
I like that better.

-- 
Les Cargill

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


#23830

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2016-05-02 17:21 -0700
Message-ID<l0rfib5dqffnfq1fm2cjja6gpoidmstcr7@4ax.com>
In reply to#23829
On Mon, 2 May 2016 19:07:06 -0500, Les Cargill
<lcargill99@comcast.com> wrote:

>John Larkin wrote:
>> On Thu, 28 Apr 2016 22:02:08 -0500, Les Cargill
>> <lcargill99@comcast.com> wrote:
>>
>>> John Larkin wrote:
>>>> On Tue, 26 Apr 2016 21:45:06 -0500, Les Cargill
>>>> <lcargill99@comcast.com> wrote:
>>>>
>>>>> John Larkin wrote:
>>>>>> On Thu, 14 Apr 2016 19:09:26 -0400, DJ Delorie <dj@delorie.com> wrote:
>>>>>>
>>>>>>>
>>>>>>> You leave out math but include C code, I think that's defeating the
>>>>>>> purpose.  If you can't explain it in non-technical words or a simple
>>>>>>> picture... well, try harder :-)
>>>>>>>
>>>>>>> You spend only one page on tuning, and give no examples of "If you see
>>>>>>> this, try this" which is much more useful to the practical user.
>>>>>>
>>>>>>
>>>>>> Engineers tend to do
>>>>>>
>>>>>>      Actuator = error * (Kp + Ki + Kd)
>>>>>>
>>>>>
>>>>> Uhhhhh... no.
>>>>>
>>>>> Actuator = (error * Kp)
>>>>>              + ( filter1(sum(error)) * Ki )
>>>>>              + ( filter2(delta(error,lastError)) * Kd)
>>>>>
>>>>>> whereas old-time analog controllers did
>>>>>>
>>>>>>      Actuator = Kp * (1 + Ki + Kd)
>>>>>>
>>>>>> with the idea being that it's easier to tune on-site.
>>>>>>
>>>>>>
>>>>>
>>>>> Because trimpots are awesome.
>>>>
>>>> Oh, you know what I mean. Old-time analog PID controllers often used a
>>>> different sigal flow path than sum-of-terms.
>>>>
>>>>
>>>
>>> Oh, I'm sure. I haven't done anything directly with analog
>>> PID other than read about them.
>>
>> We do it all the time on boards: voltage regulator loops, power amps,
>> that sort of thing.
>>
>>
>
>Unlike PIDs, most of those should have a pretty simple method for 
>figuring out it's at balance.

Things like output impedance, loop stability, line and load transient
regulation sometimes matter.

>
>I dunno, I've made some things self-calibrating in software lately.
>I like that better.

Sure, but it's not generally practical to make a voltage regulator
using an ADC and a DAC and a lot of code. Analog PID is still useful.

We sometimes do temperature controllers as analog PID loops, too. For
things like crystal ovens.



-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

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


#23832

FromPaul Rubin <no.email@nospam.invalid>
Date2016-05-02 17:53 -0700
Message-ID<87zis8dks4.fsf@nightsong.com>
In reply to#23830
John Larkin <jjlarkin@highlandtechnology.com> writes:
> Sure, but it's not generally practical to make a voltage regulator
> using an ADC and a DAC and a lot of code. Analog PID is still useful.

Voltage regulators typically aren't really PID though, I thought.
More like P without the I or D.

> We sometimes do temperature controllers as analog PID loops, too. For
> things like crystal ovens.

That seems like a more interesting application.

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


#23834

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2016-05-02 19:48 -0700
Message-ID<ut1gib1jjcj07u0l7boslb37i1i5bb8dkq@4ax.com>
In reply to#23832
On Mon, 02 May 2016 17:53:31 -0700, Paul Rubin
<no.email@nospam.invalid> wrote:

>John Larkin <jjlarkin@highlandtechnology.com> writes:
>> Sure, but it's not generally practical to make a voltage regulator
>> using an ADC and a DAC and a lot of code. Analog PID is still useful.
>
>Voltage regulators typically aren't really PID though, I thought.
>More like P without the I or D.
>
>> We sometimes do temperature controllers as analog PID loops, too. For
>> things like crystal ovens.
>
>That seems like a more interesting application.

This is sort of PID:

https://dl.dropboxusercontent.com/u/53724080/Circuits/Power/HV/28S840A_sh6.pdf



-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

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


#23835

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-05-02 22:31 -0500
Message-ID<ub2dnST3Fb4FhrXKnZ2dnUU7-LudnZ2d@giganews.com>
In reply to#23832
On Mon, 02 May 2016 17:53:31 -0700, Paul Rubin wrote:

> John Larkin <jjlarkin@highlandtechnology.com> writes:
>> Sure, but it's not generally practical to make a voltage regulator
>> using an ADC and a DAC and a lot of code. Analog PID is still useful.
> 
> Voltage regulators typically aren't really PID though, I thought.
> More like P without the I or D.

It's been a while since I've watched the turn-on ramp of a voltage 
regulator.  But about 25 years ago, when a 7805 was causing a part to go 
into CMOS latchup, it had a classic integrator windup then overshoot 
event on power-up -- that's not behavior you can get from just 
proportional.

I'm pretty sure that even today any precision regulator is going to have 
a built-in integrator.

-- 

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

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


#23837

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2016-05-03 10:54 -0400
Message-ID<C_ydnYDPVKIPJrXKnZ2dnUU7-LvNnZ2d@supernews.com>
In reply to#23835
On 05/02/2016 11:31 PM, Tim Wescott wrote:
> On Mon, 02 May 2016 17:53:31 -0700, Paul Rubin wrote:
> 
>> John Larkin <jjlarkin@highlandtechnology.com> writes:
>>> Sure, but it's not generally practical to make a voltage regulator
>>> using an ADC and a DAC and a lot of code. Analog PID is still useful.
>>
>> Voltage regulators typically aren't really PID though, I thought.
>> More like P without the I or D.
> 
> It's been a while since I've watched the turn-on ramp of a voltage 
> regulator.  But about 25 years ago, when a 7805 was causing a part to go 
> into CMOS latchup, it had a classic integrator windup then overshoot 
> event on power-up -- that's not behavior you can get from just 
> proportional.
> 
> I'm pretty sure that even today any precision regulator is going to have 
> a built-in integrator.
> 

Well, it'll have dominant-pole compensation, anyway.  I very much doubt
that that was integrator windup, because the slowest thing in the loop
is not the actuator (pass transistor), it's the output filter cap.  Thus
there's nothing corresponding to overspeeding a motor.

It sounds to me like ordinary slew limiting followed by an underdamped
transient response.

ISTM that fixed-coefficient PID is merely a subset of the usual
frequency-compensation problem for amplifiers, with the addition of
windup control.   Separate P, I, and D knobs are convenient for manual
tuning, of course, but they're pretty limiting compared to what you can
do with RC networks and op amps.

IME PLLs are generally a lot harder to compensate well than (small)
temperature control loops, at least once the nonlinearity is removed.

Cheers

Phil Hobbs

-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics

160 North State Road #203
Briarcliff Manor NY 10510

hobbs at electrooptical dot net
http://electrooptical.net

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


#23839

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2016-05-03 08:25 -0700
Message-ID<q4ghiblhgh6nvl9v68g7c7uuf4ukdo0vrl@4ax.com>
In reply to#23835
On Mon, 02 May 2016 22:31:36 -0500, Tim Wescott
<seemywebsite@myfooter.really> wrote:

>On Mon, 02 May 2016 17:53:31 -0700, Paul Rubin wrote:
>
>> John Larkin <jjlarkin@highlandtechnology.com> writes:
>>> Sure, but it's not generally practical to make a voltage regulator
>>> using an ADC and a DAC and a lot of code. Analog PID is still useful.
>> 
>> Voltage regulators typically aren't really PID though, I thought.
>> More like P without the I or D.
>
>It's been a while since I've watched the turn-on ramp of a voltage 
>regulator.  But about 25 years ago, when a 7805 was causing a part to go 
>into CMOS latchup, it had a classic integrator windup then overshoot 
>event on power-up -- that's not behavior you can get from just 
>proportional.
>
>I'm pretty sure that even today any precision regulator is going to have 
>a built-in integrator.

Not a true integrator, but close, a bunch of gain with a rolloff.

Voltage regulators have the problem that they may dump into all sorts
of capacitive loads with various ESRs, or some weird combination of,
say, electrolytics in parallel with ceramics. A programmable reg also
has a loop gain that varies with the programmed voltage.

If you are lucky, the data sheet will have a map of the safe zone of C
and ESR, where the reg is stable, but it could still have a bit of
overshoot if the input is applied suddenly. And the load capacitance
includes all the bypass caps on other sheets of the schematic.

If you are lucky, you'll have a useful Spice model. If not, breadboard
and scope the damping of the load step response.

For a 3t reg, like an LM317 or an 1117, it is often useful to
separately bypass the ADJ pin to ground.


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

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


#23836

FromLes Cargill <lcargill99@comcast.com>
Date2016-05-02 23:23 -0500
Message-ID<ng98pu$h76$1@dont-email.me>
In reply to#23830
John Larkin wrote:
> On Mon, 2 May 2016 19:07:06 -0500, Les Cargill
> <lcargill99@comcast.com> wrote:
>
>> John Larkin wrote:
>>> On Thu, 28 Apr 2016 22:02:08 -0500, Les Cargill
>>> <lcargill99@comcast.com> wrote:
>>>
>>>> John Larkin wrote:
>>>>> On Tue, 26 Apr 2016 21:45:06 -0500, Les Cargill
>>>>> <lcargill99@comcast.com> wrote:
>>>>>
>>>>>> John Larkin wrote:
>>>>>>> On Thu, 14 Apr 2016 19:09:26 -0400, DJ Delorie <dj@delorie.com> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> You leave out math but include C code, I think that's defeating the
>>>>>>>> purpose.  If you can't explain it in non-technical words or a simple
>>>>>>>> picture... well, try harder :-)
>>>>>>>>
>>>>>>>> You spend only one page on tuning, and give no examples of "If you see
>>>>>>>> this, try this" which is much more useful to the practical user.
>>>>>>>
>>>>>>>
>>>>>>> Engineers tend to do
>>>>>>>
>>>>>>>       Actuator = error * (Kp + Ki + Kd)
>>>>>>>
>>>>>>
>>>>>> Uhhhhh... no.
>>>>>>
>>>>>> Actuator = (error * Kp)
>>>>>>               + ( filter1(sum(error)) * Ki )
>>>>>>               + ( filter2(delta(error,lastError)) * Kd)
>>>>>>
>>>>>>> whereas old-time analog controllers did
>>>>>>>
>>>>>>>       Actuator = Kp * (1 + Ki + Kd)
>>>>>>>
>>>>>>> with the idea being that it's easier to tune on-site.
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> Because trimpots are awesome.
>>>>>
>>>>> Oh, you know what I mean. Old-time analog PID controllers often used a
>>>>> different sigal flow path than sum-of-terms.
>>>>>
>>>>>
>>>>
>>>> Oh, I'm sure. I haven't done anything directly with analog
>>>> PID other than read about them.
>>>
>>> We do it all the time on boards: voltage regulator loops, power amps,
>>> that sort of thing.
>>>
>>>
>>
>> Unlike PIDs, most of those should have a pretty simple method for
>> figuring out it's at balance.
>
> Things like output impedance, loop stability, line and load transient
> regulation sometimes matter.
>

My understanding is that almost all those things are run well in the
very linear operating region these days. But I've not dealt too much
with load transients.

Heck, I've go at least three amplifiers around here that turn
themselves off if you short the output. Done by microprocessor. A nice
feature.


>>
>> I dunno, I've made some things self-calibrating in software lately.
>> I like that better.
>
> Sure, but it's not generally practical to make a voltage regulator
> using an ADC and a DAC and a lot of code. Analog PID is still useful.
>

Analog PID is fine. It's probably the most common way, really. You
won't beat it for size weight and power ( and cost) . But the
software voltage regulator might be a thing soon.

> We sometimes do temperature controllers as analog PID loops, too. For
> things like crystal ovens.
>
>
>

Sure. The chambers we used to have all ran PID control.

-- 
Les Cargill

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


#23845

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2016-05-03 11:46 -0700
Message-ID<nrrhibpusm61b0geb45l8os3u98i33opso@4ax.com>
In reply to#23836
On Mon, 2 May 2016 23:23:31 -0500, Les Cargill
<lcargill99@comcast.com> wrote:

>John Larkin wrote:
>> On Mon, 2 May 2016 19:07:06 -0500, Les Cargill
>> <lcargill99@comcast.com> wrote:
>>
>>> John Larkin wrote:
>>>> On Thu, 28 Apr 2016 22:02:08 -0500, Les Cargill
>>>> <lcargill99@comcast.com> wrote:
>>>>
>>>>> John Larkin wrote:
>>>>>> On Tue, 26 Apr 2016 21:45:06 -0500, Les Cargill
>>>>>> <lcargill99@comcast.com> wrote:
>>>>>>
>>>>>>> John Larkin wrote:
>>>>>>>> On Thu, 14 Apr 2016 19:09:26 -0400, DJ Delorie <dj@delorie.com> wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>> You leave out math but include C code, I think that's defeating the
>>>>>>>>> purpose.  If you can't explain it in non-technical words or a simple
>>>>>>>>> picture... well, try harder :-)
>>>>>>>>>
>>>>>>>>> You spend only one page on tuning, and give no examples of "If you see
>>>>>>>>> this, try this" which is much more useful to the practical user.
>>>>>>>>
>>>>>>>>
>>>>>>>> Engineers tend to do
>>>>>>>>
>>>>>>>>       Actuator = error * (Kp + Ki + Kd)
>>>>>>>>
>>>>>>>
>>>>>>> Uhhhhh... no.
>>>>>>>
>>>>>>> Actuator = (error * Kp)
>>>>>>>               + ( filter1(sum(error)) * Ki )
>>>>>>>               + ( filter2(delta(error,lastError)) * Kd)
>>>>>>>
>>>>>>>> whereas old-time analog controllers did
>>>>>>>>
>>>>>>>>       Actuator = Kp * (1 + Ki + Kd)
>>>>>>>>
>>>>>>>> with the idea being that it's easier to tune on-site.
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> Because trimpots are awesome.
>>>>>>
>>>>>> Oh, you know what I mean. Old-time analog PID controllers often used a
>>>>>> different sigal flow path than sum-of-terms.
>>>>>>
>>>>>>
>>>>>
>>>>> Oh, I'm sure. I haven't done anything directly with analog
>>>>> PID other than read about them.
>>>>
>>>> We do it all the time on boards: voltage regulator loops, power amps,
>>>> that sort of thing.
>>>>
>>>>
>>>
>>> Unlike PIDs, most of those should have a pretty simple method for
>>> figuring out it's at balance.
>>
>> Things like output impedance, loop stability, line and load transient
>> regulation sometimes matter.
>>
>
>My understanding is that almost all those things are run well in the
>very linear operating region these days. But I've not dealt too much
>with load transients.

Voltage regulators have an annoying affection for oscillating,
especially LDO types that have high open-loop output impedance, namely
ones that drive the load from a collector or a drain. The oscillation
waveform is usually a triangle, very nonlinear.

Older data sheets, and many newer ones, only hint at stability issues.

This was kind of fun:

https://dl.dropboxusercontent.com/u/53724080/Circuits/LDO/TEM2_LDOs.jpg

https://dl.dropboxusercontent.com/u/53724080/Circuits/LDO/TEM2_LDO_parts.JPG

Those regs are only dropping tenths of a volt, so the mosfets are
really controlled resistors. Loop dynamics varies with current.


-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

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


#23617

Fromrickman <gnuarm@gmail.com>
Date2016-04-14 19:11 -0400
Message-ID<nep7t2$rok$1@dont-email.me>
In reply to#23614
On 4/14/2016 6:03 PM, Tim Wescott wrote:
> Embedded Systems Design (or whatever they call themselves) kept moving
> this around -- so I've revamped it, updated it, and posted it on the web.
>
> Take a gander.  Please comment on anything you like/don't like.  I'm not
> sure if the way that I'm setting off the math is a Really Good Idea or a
> Really Bad Idea -- I'm trying to make it easy for the math-averse to skip
> over it, without breaking up the flow too much for folks who can read
> math without breaking stride.
>
> http://wescottdesign.com/articles/pid/pidWithoutAPhd.pdf

I don't know if color is something that will be preserved, but that 
bright green for links actually hurts for me to look at.  Hard to miss 
though.

The PDF page numbering is off 1 from the text page numbers.  I'm pretty 
sure there is a way to deal with that.

Page 2 (text page number) paragraph 2, "Some command is given to a 
controller, and the determines a drive signal to be applied to the 
plant."  Is "the" the word you want?

Page 4, equation 1, you might explain the basis of this equation.  I 
assume the voltage actually controls the torque.  Friction force is a 
result of velocity and the acceleration is from the excess force until 
the motor speeds up.  Contrasted to the equation for the frictionless 
platform.

Page 6, paragraph 1, figure 5, you write "The magnet is attached to the 
stage", but the diagram calls it a "platform".  That is not hugely 
distracting, but if I know nothing about optical systems (which I don't) 
I might be thinking the "stage" is something different and start looking 
for what it means (I did).

Just for completeness, you might include the "position transducer" in 
your diagram.  I assume it measures the position of the platform rather 
than the magnet.

Page 6, paragraph 2, showing my ignorance I don't understand, "With this 
arrangement the force on the magnet is independent of the stage motion." 
  Doesn't a magnet moving in the coil create a current/voltage that 
interacts with the applied current/voltage?  Are we assuming the "good 
current-output amplifier" deals with this?

Page 6, equation 2, I don't see where Vp is defined.  It does not seem 
to be used anywhere else in the paper.

Page 8, equation 3, you define Th twice but don't say what units.  I 
assume it needs to be absolute temperature, Kelvin?  Two time constants 
are given, but no explanation for why two or what is different about 
them.  I don't know about others, but I have a hard time considering an 
equation I don't understand.  It keeps me from getting an understanding 
of how the controller would work.

I need to go now.  Please take this for what it is worth, free advice.

-- 

Rick

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


#23619

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-04-14 18:41 -0500
Message-ID<wpydnba9wr8At43KnZ2dnUU7-WWdnZ2d@giganews.com>
In reply to#23617
On Thu, 14 Apr 2016 19:11:38 -0400, rickman wrote:

> On 4/14/2016 6:03 PM, Tim Wescott wrote:
>> Embedded Systems Design (or whatever they call themselves) kept moving
>> this around -- so I've revamped it, updated it, and posted it on the
>> web.
>>
>> Take a gander.  Please comment on anything you like/don't like.  I'm
>> not sure if the way that I'm setting off the math is a Really Good Idea
>> or a Really Bad Idea -- I'm trying to make it easy for the math-averse
>> to skip over it, without breaking up the flow too much for folks who
>> can read math without breaking stride.
>>
>> http://wescottdesign.com/articles/pid/pidWithoutAPhd.pdf
> 
> I don't know if color is something that will be preserved, but that
> bright green for links actually hurts for me to look at.  Hard to miss
> though.
> 
> The PDF page numbering is off 1 from the text page numbers.  I'm pretty
> sure there is a way to deal with that.
> 
> Page 2 (text page number) paragraph 2, "Some command is given to a
> controller, and the determines a drive signal to be applied to the
> plant."  Is "the" the word you want?

No - I think I wanted "this".

> Page 4, equation 1, you might explain the basis of this equation.  I
> assume the voltage actually controls the torque.  Friction force is a
> result of velocity and the acceleration is from the excess force until
> the motor speeds up.  Contrasted to the equation for the frictionless
> platform.

Hmm.  I'm trying to keep the math stuff short -- people write entire 
white papers on the behavior of motors alone.  Maybe put all the math 
into a several-page appendix?

To unpack a bit, the difference between the applied voltage and the 
motor's back-emf, divided by the armature resistance, determine the 
motor's armature current.  Torque is armature current times the motor's 
torque constant, and acceleration is torque divided by the motor's moment 
of inertia.  All of that is rolled into the kv and the time constant, in 
this case.

> Page 6, paragraph 1, figure 5, you write "The magnet is attached to the
> stage", but the diagram calls it a "platform".  That is not hugely
> distracting, but if I know nothing about optical systems (which I don't)
> I might be thinking the "stage" is something different and start looking
> for what it means (I did).

You're right, the nomenclature should be consistent.  I don't know about 
other people, but this is incredibly difficult for me.  It's a subset of 
the "don't toss jargon around" rule.  (Sometimes, the multiple-language 
problem is a consequence of incomplete solutions to removing jargon, at 
least for me).

> Just for completeness, you might include the "position transducer" in
> your diagram.  I assume it measures the position of the platform rather
> than the magnet.

Good point.

> Page 6, paragraph 2, showing my ignorance I don't understand, "With this
> arrangement the force on the magnet is independent of the stage motion."
>   Doesn't a magnet moving in the coil create a current/voltage that
> interacts with the applied current/voltage?  Are we assuming the "good
> current-output amplifier" deals with this?

The good current-output amplifier, and the frictionless support of the 
platform, deals with this.

> Page 6, equation 2, I don't see where Vp is defined.  It does not seem
> to be used anywhere else in the paper.

Vp comes out of the position transducer that I left off of the drawing.  
Yup, need to change something!

> Page 8, equation 3, you define Th twice but don't say what units.  I
> assume it needs to be absolute temperature, Kelvin?  Two time constants
> are given, but no explanation for why two or what is different about
> them.  I don't know about others, but I have a hard time considering an
> equation I don't understand.  It keeps me from getting an understanding
> of how the controller would work.

Well, I pulled the time constants out of my ear.  Or my donkey (I _do 
not_ get that cliche :P ).  Or something.

Te temperature of the load (Th) is determined by both the driving input 
(Vd) and the ambient temperature (Ta).  Again, I need to think about 
making that more clear without making the math-averse reader run away 
screaming.

> I need to go now.  Please take this for what it is worth, free advice.

I appreciate your time and trouble you've taken to read the thing and 
write your comments.

-- 

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

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


#23623

Fromrickman <gnuarm@gmail.com>
Date2016-04-14 21:50 -0400
Message-ID<neph64$hkn$1@dont-email.me>
In reply to#23619
On 4/14/2016 7:41 PM, Tim Wescott wrote:
> On Thu, 14 Apr 2016 19:11:38 -0400, rickman wrote:
>
>> Page 4, equation 1, you might explain the basis of this equation.  I
>> assume the voltage actually controls the torque.  Friction force is a
>> result of velocity and the acceleration is from the excess force until
>> the motor speeds up.  Contrasted to the equation for the frictionless
>> platform.
>
> Hmm.  I'm trying to keep the math stuff short -- people write entire
> white papers on the behavior of motors alone.  Maybe put all the math
> into a several-page appendix?

I don't think tucking away the math into an appendix is the answer. 
Maybe derivations or something not essential to understanding the 
problem.  All I would need is an understanding of the meaning of the 
terms of the equation.  Typically each term of the equation comes from 
some specific "thing" in the problem.  I don't get what those "things" 
are in these equations.


> To unpack a bit, the difference between the applied voltage and the
> motor's back-emf, divided by the armature resistance, determine the
> motor's armature current.  Torque is armature current times the motor's
> torque constant, and acceleration is torque divided by the motor's moment
> of inertia.  All of that is rolled into the kv and the time constant, in
> this case.

I'm not sure I understand this.  I'd need to write out the equations. 
The back-emf is proportional to what, the rate of change of the current? 
  Or the speed of the motor?  It's been a long time and I forget.  I 
think saying it "is rolled into the kv and the time constant" is a bit 
simplified.  Again, I'd like to know the meaning of each term in the 
equation.  d theta/dt is the speed of the motor, but why is that in this 
spot of the equation?  Does this represent the friction?  Then I would 
get that the friction force balances with the motor torque and the 
acceleration would become zero.


>> Page 8, equation 3, you define Th twice but don't say what units.  I
>> assume it needs to be absolute temperature, Kelvin?  Two time constants
>> are given, but no explanation for why two or what is different about
>> them.  I don't know about others, but I have a hard time considering an
>> equation I don't understand.  It keeps me from getting an understanding
>> of how the controller would work.
>
> Well, I pulled the time constants out of my ear.  Or my donkey (I _do
> not_ get that cliche :P ).  Or something.

Then where did this equation come from?  I find it very hard to follow 
the rest of the approach if I can't understand the equation.  I guess 
I'm not the target audience.


> Te temperature of the load (Th) is determined by both the driving input
> (Vd) and the ambient temperature (Ta).  Again, I need to think about
> making that more clear without making the math-averse reader run away
> screaming.

Seems to me the equation would be

dTh/dt = ka * (Ta - Th) + kh * Vd

kh * Vd is the heat applied by the heater with kh the constant for the 
heater watts vs the thermal mass of the container.  ka * (Ta -Th) is the 
heat entering (or leaving) the container with ka accounting for the 
thermal mass and the amount of surface area, etc.  The heat moving 
into/out of the container is proportional to the temperature rate of 
change, no?

How does this get to be a second order differential equation?


>> I need to go now.  Please take this for what it is worth, free advice.
>
> I appreciate your time and trouble you've taken to read the thing and
> write your comments.

I appreciate you writing this.  I'm sure I will learn a lot from reading 
it.

-- 

Rick

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


Page 2 of 6 — ← Prev page 1 [2] 3 4 5 6  Next page →

Back to top | Article view | comp.arch.embedded


csiph-web