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


Groups > sci.electronics.design > #407563 > 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 98 — 31 participants

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


Contents

  PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-14 17:03 -0500
    Re: PID Without a PhD, Finally mrdarrett@gmail.com - 2016-04-14 15:09 -0700
      Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-14 17:47 -0500
    Re: PID Without a PhD, Finally mrdarrett@gmail.com - 2016-04-14 15:39 -0700
      Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-14 17:46 -0500
      Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-14 19:16 -0400
    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 George Herold <gherold@teachspin.com> - 2016-04-26 18:11 -0700
              Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-26 21:22 -0400
            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 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 mrdarrett@gmail.com - 2016-04-14 16:43 -0700
        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 Phil Hobbs <pcdhobbs@gmail.com> - 2016-04-15 00:42 -0700
    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 Lasse Langwadt Christensen <langwadt@fonz.dk> - 2016-04-15 12:41 -0700
              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 George Herold <gherold@teachspin.com> - 2016-04-15 10:18 -0700
      Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 12:41 -0500
        Re: PID Without a PhD, Finally Lasse Langwadt Christensen <langwadt@fonz.dk> - 2016-04-15 12:47 -0700
          Re: PID Without a PhD, Finally "Tim Williams" <tiwill@seventransistorlabs.com> - 2016-04-16 16:17 -0500
        Re: PID Without a PhD, Finally George Herold <gherold@teachspin.com> - 2016-04-15 17:55 -0700
    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 5 — ← Prev page 1 [2] 3 4 5  Next page →


#409376

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2016-04-26 17:07 -0700
Message-ID<5j00ibdubm75bctg0k1cl8ftn3f9r66rlu@4ax.com>
In reply to#407573
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)

whereas old-time analog controllers did

  Actuator = Kp * (1 + Ki + Kd)

with the idea being that it's easier to tune on-site.


-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

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

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


#409385

Fromrickman <gnuarm@gmail.com>
Date2016-04-26 20:50 -0400
Message-ID<nfp25g$ooq$1@dont-email.me>
In reply to#409376
On 4/26/2016 8:07 PM, 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)
>
> whereas old-time analog controllers did
>
>    Actuator = Kp * (1 + Ki + Kd)
>
> with the idea being that it's easier to tune on-site.

I think you mean,

Actuator = error * Kp * (1 + Ki + Kd)

In other words, the Ki and Kd terms were normalized to Kp.

-- 

Rick C

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


#409405

FromLes Cargill <lcargill99@comcast.com>
Date2016-04-26 21:57 -0500
Message-ID<nfp9h4$a31$1@dont-email.me>
In reply to#409385
rickman wrote:
> On 4/26/2016 8:07 PM, 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)
>>
>> whereas old-time analog controllers did
>>
>>    Actuator = Kp * (1 + Ki + Kd)
>>
>> with the idea being that it's easier to tune on-site.
>
> I think you mean,
>
> Actuator = error * Kp * (1 + Ki + Kd)
>
> In other words, the Ki and Kd terms were normalized to Kp.
>


No, he didn't do that properly. Otherwise, there'd be no need
for three Kx constants.

The integrator term accumulates the error per sample by some law/filter
and the Kd is multiplied by a filtered version of the difference
between the error this sample and the error of the previous sample.

Actuator = (error * Kp)
            + ( filter1(sum(error)) * Ki )
            + ( filter2(delta(error,lastError)) * Kd)

where the filters are very likely extremely stateful and not very 
filter-ey.

Forms exist for continuous linear PID and they're about what you'd expect.


-- 
Les Cargill

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


#409402

FromLes Cargill <lcargill99@comcast.com>
Date2016-04-26 21:45 -0500
Message-ID<nfp8qn$8jk$1@dont-email.me>
In reply to#409376
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.

-- 
Les Cargill

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


#409479

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2016-04-27 10:16 -0700
Message-ID<fts1ib17b0c6ieei5l4tun425phbk86t6f@4ax.com>
In reply to#409402
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.


-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

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

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


#409752

FromLes Cargill <lcargill99@comcast.com>
Date2016-04-28 22:02 -0500
Message-ID<nfuiil$cc0$2@dont-email.me>
In reply to#409479
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.

-- 
Les Cargill


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


#407574

Fromrickman <gnuarm@gmail.com>
Date2016-04-14 19:11 -0400
Message-ID<nep7t2$rok$1@dont-email.me>
In reply to#407563
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]


#407588

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-04-14 18:41 -0500
Message-ID<wpydnba9wr8At43KnZ2dnUU7-WWdnZ2d@giganews.com>
In reply to#407574
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]


#407589

Frommrdarrett@gmail.com
Date2016-04-14 16:43 -0700
Message-ID<89fb5322-266c-4174-83b7-2fa790e09164@googlegroups.com>
In reply to#407588
On Thursday, April 14, 2016 at 4:41:22 PM UTC-7, Tim Wescott 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?


Yes, putting all the math in appendices would be great, I agree!  

Michael

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


#407606

Fromrickman <gnuarm@gmail.com>
Date2016-04-14 21:50 -0400
Message-ID<neph64$hkn$1@dont-email.me>
In reply to#407588
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]


#407609

Fromrickman <gnuarm@gmail.com>
Date2016-04-14 21:57 -0400
Message-ID<nephjg$ihh$1@dont-email.me>
In reply to#407606
On 4/14/2016 9:50 PM, rickman wrote:
> 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?

I just spotted an error.  If the heater is controlled by volts, it would 
have to be voltage squared to get power.  Unless the volts is out of the 
ADC and the heater is controlled by a voltage to watts control, lol.

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


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


#407610

Fromrickman <gnuarm@gmail.com>
Date2016-04-14 21:58 -0400
Message-ID<nephm0$ihh$2@dont-email.me>
In reply to#407609
On 4/14/2016 9:57 PM, rickman wrote:
> On 4/14/2016 9:50 PM, rickman wrote:
>> 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?
>
> I just spotted an error.  If the heater is controlled by volts, it would
> have to be voltage squared to get power.  Unless the volts is out of the
> ADC and the heater is controlled by a voltage to watts control, lol.

Need to give this up tonight... make that DAC, not ADC.

-- 

Rick

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


#407633

FromTauno Voipio <tauno.voipio@notused.fi.invalid>
Date2016-04-15 12:28 +0300
Message-ID<neqc2j$p8u$1@dont-email.me>
In reply to#407574
On 15.4.16 02:11, 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.


Rick:

Every motor is also a generator. For a motor with constant
magnetization, the back EMF is proportional to the speed and
the motor torque is proportional to the current.

You can model such a motor with a series connection of the
supply voltage, the motor (and line) resistance and the back
EMF. The motor settles to a speed near such speed that the
difference between supply voltage and back EMF runs just enough
current in the circuit to compensate for torque needed to keep
the speed.

If you feed a constant-magnetized motor with a constant current
supply, the torque stays constant until the compliance limit
of the feed supply.

-- 

-TV

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


#407663

Fromrickman <gnuarm@gmail.com>
Date2016-04-15 11:29 -0400
Message-ID<ner16n$92v$1@dont-email.me>
In reply to#407633
On 4/15/2016 5:28 AM, Tauno Voipio wrote:
> On 15.4.16 02:11, 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.
>
>
> Rick:
>
> Every motor is also a generator. For a motor with constant
> magnetization, the back EMF is proportional to the speed and
> the motor torque is proportional to the current.
>
> You can model such a motor with a series connection of the
> supply voltage, the motor (and line) resistance and the back
> EMF. The motor settles to a speed near such speed that the
> difference between supply voltage and back EMF runs just enough
> current in the circuit to compensate for torque needed to keep
> the speed.
>
> If you feed a constant-magnetized motor with a constant current
> supply, the torque stays constant until the compliance limit
> of the feed supply.

Ok, that all makes sense and is what is being described in the paper. 
The drive is current rather than voltage and will produce the result 
shown in the diagram until the max voltage of the supply is reached. 
Thanks.

I still don't get equation 3.  I searched a bit and could not find 
anything similar.  All the other references I found on the web use the 
Laplace transform to perform the math and don't produce a similar equation.

Trying to find info on the web for control theory really opens a rabbit 
hole, lol.

-- 

Rick

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


#407671

FromTim Wescott <Tim@seemywebsite.com>
Date2016-04-15 09:31 -0700
Message-ID<QpudnbLvl7PriozKnZ2dnUU7-afNnZ2d@giganews.com>
In reply to#407663
rickman <gnuarm@gmail.com> Wrote in message:
> On 4/15/2016 5:28 AM, Tauno Voipio wrote:
>> On 15.4.16 02:11, 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.
>>
>>
>> Rick:
>>
>> Every motor is also a generator. For a motor with constant
>> magnetization, the back EMF is proportional to the speed and
>> the motor torque is proportional to the current.
>>
>> You can model such a motor with a series connection of the
>> supply voltage, the motor (and line) resistance and the back
>> EMF. The motor settles to a speed near such speed that the
>> difference between supply voltage and back EMF runs just enough
>> current in the circuit to compensate for torque needed to keep
>> the speed.
>>
>> If you feed a constant-magnetized motor with a constant current
>> supply, the torque stays constant until the compliance limit
>> of the feed supply.
> 
> Ok, that all makes sense and is what is being described in the paper. 
> The drive is current rather than voltage and will produce the result 
> shown in the diagram until the max voltage of the supply is reached. 
> Thanks.
> 
> I still don't get equation 3.  I searched a bit and could not find 
> anything similar.  All the other references I found on the web use the 
> Laplace transform to perform the math and don't produce a similar equation.
> 
> Trying to find info on the web for control theory really opens a rabbit 
> hole, lol.
> 
> -- 
> 
> Rick
> 

Thermal systems are generally far more complex than equation 3
 implies. That one really should be taken just add the equation
 used to generate the plant model, nothing more.

Pragmatically, if you need to wrap a control loop around a thermal
 plant, you should probably close your eyes to the theory and
 either tune it up by the seat of your pants (as in that paper),
 or you should use measured responses (which I cover briefly in
 another paper, and at length in my book).

-- 
www.wescottdesign.com


----Android NewsGroup Reader----
http://usenet.sinaapp.com/

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


#407677

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-04-15 12:35 -0500
Message-ID<xdGdnT8xP7DWu4zKnZ2dnUU7-X-dnZ2d@giganews.com>
In reply to#407671
On Fri, 15 Apr 2016 09:31:49 -0700, Tim Wescott wrote:

> rickman <gnuarm@gmail.com> Wrote in message:
>> On 4/15/2016 5:28 AM, Tauno Voipio wrote:
>>> On 15.4.16 02:11, 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.
>>>
>>>
>>> Rick:
>>>
>>> Every motor is also a generator. For a motor with constant
>>> magnetization, the back EMF is proportional to the speed and the motor
>>> torque is proportional to the current.
>>>
>>> You can model such a motor with a series connection of the supply
>>> voltage, the motor (and line) resistance and the back EMF. The motor
>>> settles to a speed near such speed that the difference between supply
>>> voltage and back EMF runs just enough current in the circuit to
>>> compensate for torque needed to keep the speed.
>>>
>>> If you feed a constant-magnetized motor with a constant current
>>> supply, the torque stays constant until the compliance limit of the
>>> feed supply.
>> 
>> Ok, that all makes sense and is what is being described in the paper.
>> The drive is current rather than voltage and will produce the result
>> shown in the diagram until the max voltage of the supply is reached.
>> Thanks.
>> 
>> I still don't get equation 3.  I searched a bit and could not find
>> anything similar.  All the other references I found on the web use the
>> Laplace transform to perform the math and don't produce a similar
>> equation.
>> 
>> Trying to find info on the web for control theory really opens a rabbit
>> hole, lol.
>> 
>> --
>> 
>> Rick
>> 
>> 
> Thermal systems are generally far more complex than equation 3
>  implies. That one really should be taken just add the equation used to
>  generate the plant model, nothing more.
> 
> Pragmatically, if you need to wrap a control loop around a thermal
>  plant, you should probably close your eyes to the theory and either
>  tune it up by the seat of your pants (as in that paper),
>  or you should use measured responses (which I cover briefly in another
>  paper, and at length in my book).

I double-checked, and I kind of allude to this but I need to SAY this in 
the text.  Thermal systems are generally sluggish with lots of high-
frequency roll-off.  The model chosen is sluggish with lots of high-
frequency roll-off.  That's about the extent of the accuracy of the 
model, in general.  On a good day the chosen model may actually match a 
real thermal system well enough to work with -- but it's not to be taken 
as a generally accurate model, where equations 1 and 2 are generally much 
more applicable.

-- 

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

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


#407690

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2016-04-15 14:04 -0400
Message-ID<ceSdnblDi9SIsIzKnZ2dnUU7-KfNnZ2d@supernews.com>
In reply to#407677
On 04/15/2016 01:35 PM, Tim Wescott wrote:
> On Fri, 15 Apr 2016 09:31:49 -0700, Tim Wescott wrote:
> 
>> rickman <gnuarm@gmail.com> Wrote in message:
>>> On 4/15/2016 5:28 AM, Tauno Voipio wrote:
>>>> On 15.4.16 02:11, 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.
>>>>
>>>>
>>>> Rick:
>>>>
>>>> Every motor is also a generator. For a motor with constant
>>>> magnetization, the back EMF is proportional to the speed and the motor
>>>> torque is proportional to the current.
>>>>
>>>> You can model such a motor with a series connection of the supply
>>>> voltage, the motor (and line) resistance and the back EMF. The motor
>>>> settles to a speed near such speed that the difference between supply
>>>> voltage and back EMF runs just enough current in the circuit to
>>>> compensate for torque needed to keep the speed.
>>>>
>>>> If you feed a constant-magnetized motor with a constant current
>>>> supply, the torque stays constant until the compliance limit of the
>>>> feed supply.
>>>
>>> Ok, that all makes sense and is what is being described in the paper.
>>> The drive is current rather than voltage and will produce the result
>>> shown in the diagram until the max voltage of the supply is reached.
>>> Thanks.
>>>
>>> I still don't get equation 3.  I searched a bit and could not find
>>> anything similar.  All the other references I found on the web use the
>>> Laplace transform to perform the math and don't produce a similar
>>> equation.
>>>
>>> Trying to find info on the web for control theory really opens a rabbit
>>> hole, lol.
>>>
>>> --
>>>
>>> Rick
>>>
>>>
>> Thermal systems are generally far more complex than equation 3
>>  implies. That one really should be taken just add the equation used to
>>  generate the plant model, nothing more.
>>
>> Pragmatically, if you need to wrap a control loop around a thermal
>>  plant, you should probably close your eyes to the theory and either
>>  tune it up by the seat of your pants (as in that paper),
>>  or you should use measured responses (which I cover briefly in another
>>  paper, and at length in my book).
> 
> I double-checked, and I kind of allude to this but I need to SAY this in 
> the text.  Thermal systems are generally sluggish with lots of high-
> frequency roll-off.  The model chosen is sluggish with lots of high-
> frequency roll-off.  That's about the extent of the accuracy of the 
> model, in general.  On a good day the chosen model may actually match a 
> real thermal system well enough to work with -- but it's not to be taken 
> as a generally accurate model, where equations 1 and 2 are generally much 
> more applicable.

Lots of high frequency rolloff and even more high frequency phase shift.
 In thermal diffusion, you get another radian for every 1/e amplitude
decay, which makes PID kind of disappointing IME.

My TC loops are always pretty simple--diode lasers on TECs, or
resonators with a heater--but after the nonlinearity is taken out, I can
usually get away with a plant model of a time delay followed by an
integrator.  You can read the parameters right off the scope trace.  I'm
perfectly sure that was invented a very long time ago, but it works
great for smallish stuff.

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]


#407694

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-04-15 13:11 -0500
Message-ID<xdGdnTExP7BZs4zKnZ2dnUU7-X-dnZ2d@giganews.com>
In reply to#407690
On Fri, 15 Apr 2016 14:04:05 -0400, Phil Hobbs wrote:

> On 04/15/2016 01:35 PM, Tim Wescott wrote:
>> On Fri, 15 Apr 2016 09:31:49 -0700, Tim Wescott wrote:
>> 
>>> rickman <gnuarm@gmail.com> Wrote in message:
>>>> On 4/15/2016 5:28 AM, Tauno Voipio wrote:
>>>>> On 15.4.16 02:11, 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.
>>>>>
>>>>>
>>>>> Rick:
>>>>>
>>>>> Every motor is also a generator. For a motor with constant
>>>>> magnetization, the back EMF is proportional to the speed and the
>>>>> motor torque is proportional to the current.
>>>>>
>>>>> You can model such a motor with a series connection of the supply
>>>>> voltage, the motor (and line) resistance and the back EMF. The motor
>>>>> settles to a speed near such speed that the difference between
>>>>> supply voltage and back EMF runs just enough current in the circuit
>>>>> to compensate for torque needed to keep the speed.
>>>>>
>>>>> If you feed a constant-magnetized motor with a constant current
>>>>> supply, the torque stays constant until the compliance limit of the
>>>>> feed supply.
>>>>
>>>> Ok, that all makes sense and is what is being described in the paper.
>>>> The drive is current rather than voltage and will produce the result
>>>> shown in the diagram until the max voltage of the supply is reached.
>>>> Thanks.
>>>>
>>>> I still don't get equation 3.  I searched a bit and could not find
>>>> anything similar.  All the other references I found on the web use
>>>> the Laplace transform to perform the math and don't produce a similar
>>>> equation.
>>>>
>>>> Trying to find info on the web for control theory really opens a
>>>> rabbit hole, lol.
>>>>
>>>> --
>>>>
>>>> Rick
>>>>
>>>>
>>> Thermal systems are generally far more complex than equation 3
>>>  implies. That one really should be taken just add the equation used
>>>  to generate the plant model, nothing more.
>>>
>>> Pragmatically, if you need to wrap a control loop around a thermal
>>>  plant, you should probably close your eyes to the theory and either
>>>  tune it up by the seat of your pants (as in that paper),
>>>  or you should use measured responses (which I cover briefly in
>>>  another paper, and at length in my book).
>> 
>> I double-checked, and I kind of allude to this but I need to SAY this
>> in the text.  Thermal systems are generally sluggish with lots of high-
>> frequency roll-off.  The model chosen is sluggish with lots of high-
>> frequency roll-off.  That's about the extent of the accuracy of the
>> model, in general.  On a good day the chosen model may actually match a
>> real thermal system well enough to work with -- but it's not to be
>> taken as a generally accurate model, where equations 1 and 2 are
>> generally much more applicable.
> 
> Lots of high frequency rolloff and even more high frequency phase shift.
>  In thermal diffusion, you get another radian for every 1/e amplitude
> decay, which makes PID kind of disappointing IME.
> 
> My TC loops are always pretty simple--diode lasers on TECs, or
> resonators with a heater--but after the nonlinearity is taken out, I can
> usually get away with a plant model of a time delay followed by an
> integrator.  You can read the parameters right off the scope trace.  I'm
> perfectly sure that was invented a very long time ago, but it works
> great for smallish stuff.

I may change my model.

Probably the most important temperature loop I've ever closed (the 
temperature of a focal plane array, cooled by a split-cycle Stirling 
cooler) had a simple 1st-order dominant pole, with no discernible excess 
phase shift or attenuation until well past the practical loop closing 
frequency.  I was happily astonished.

-- 

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

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


#407700

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2016-04-15 14:32 -0400
Message-ID<tp-dnbDP7O46rozKnZ2dnUU7-LPNnZ2d@supernews.com>
In reply to#407694
On 04/15/2016 02:11 PM, Tim Wescott wrote:
> On Fri, 15 Apr 2016 14:04:05 -0400, Phil Hobbs wrote:
> 
>> On 04/15/2016 01:35 PM, Tim Wescott wrote:
>>> On Fri, 15 Apr 2016 09:31:49 -0700, Tim Wescott wrote:
>>>
>>>> rickman <gnuarm@gmail.com> Wrote in message:
>>>>> On 4/15/2016 5:28 AM, Tauno Voipio wrote:
>>>>>> On 15.4.16 02:11, 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.
>>>>>>
>>>>>>
>>>>>> Rick:
>>>>>>
>>>>>> Every motor is also a generator. For a motor with constant
>>>>>> magnetization, the back EMF is proportional to the speed and the
>>>>>> motor torque is proportional to the current.
>>>>>>
>>>>>> You can model such a motor with a series connection of the supply
>>>>>> voltage, the motor (and line) resistance and the back EMF. The motor
>>>>>> settles to a speed near such speed that the difference between
>>>>>> supply voltage and back EMF runs just enough current in the circuit
>>>>>> to compensate for torque needed to keep the speed.
>>>>>>
>>>>>> If you feed a constant-magnetized motor with a constant current
>>>>>> supply, the torque stays constant until the compliance limit of the
>>>>>> feed supply.
>>>>>
>>>>> Ok, that all makes sense and is what is being described in the paper.
>>>>> The drive is current rather than voltage and will produce the result
>>>>> shown in the diagram until the max voltage of the supply is reached.
>>>>> Thanks.
>>>>>
>>>>> I still don't get equation 3.  I searched a bit and could not find
>>>>> anything similar.  All the other references I found on the web use
>>>>> the Laplace transform to perform the math and don't produce a similar
>>>>> equation.
>>>>>
>>>>> Trying to find info on the web for control theory really opens a
>>>>> rabbit hole, lol.
>>>>>
>>>>> --
>>>>>
>>>>> Rick
>>>>>
>>>>>
>>>> Thermal systems are generally far more complex than equation 3
>>>>  implies. That one really should be taken just add the equation used
>>>>  to generate the plant model, nothing more.
>>>>
>>>> Pragmatically, if you need to wrap a control loop around a thermal
>>>>  plant, you should probably close your eyes to the theory and either
>>>>  tune it up by the seat of your pants (as in that paper),
>>>>  or you should use measured responses (which I cover briefly in
>>>>  another paper, and at length in my book).
>>>
>>> I double-checked, and I kind of allude to this but I need to SAY this
>>> in the text.  Thermal systems are generally sluggish with lots of high-
>>> frequency roll-off.  The model chosen is sluggish with lots of high-
>>> frequency roll-off.  That's about the extent of the accuracy of the
>>> model, in general.  On a good day the chosen model may actually match a
>>> real thermal system well enough to work with -- but it's not to be
>>> taken as a generally accurate model, where equations 1 and 2 are
>>> generally much more applicable.
>>
>> Lots of high frequency rolloff and even more high frequency phase shift.
>>  In thermal diffusion, you get another radian for every 1/e amplitude
>> decay, which makes PID kind of disappointing IME.
>>
>> My TC loops are always pretty simple--diode lasers on TECs, or
>> resonators with a heater--but after the nonlinearity is taken out, I can
>> usually get away with a plant model of a time delay followed by an
>> integrator.  You can read the parameters right off the scope trace.  I'm
>> perfectly sure that was invented a very long time ago, but it works
>> great for smallish stuff.
> 
> I may change my model.
> 
> Probably the most important temperature loop I've ever closed (the 
> temperature of a focal plane array, cooled by a split-cycle Stirling 
> cooler) had a simple 1st-order dominant pole, with no discernible excess 
> phase shift or attenuation until well past the practical loop closing 
> frequency.  I was happily astonished.
> 

Plus you were a hero.  It's nice when things work out that way.

One time when I was a post-doc, a colleague needed a notch filter to get
rid of a 30-kHz resonance in the piezo tube actuator of the STM he was
building.  I reached into my bench drawer, pulled out a largish Pulse
Engineering transformer, and parallel-resonated both sides with a 0.1 uF
cap on it, just as a first try.

Stuck a sweep generator and scope on it, and what came out was a nearly
symmetrical two-bump notch exactly at 30 kHz, with a Q of about 30.

Then of course I just quietly handed it to him, smiled, and went back to
work. Never did let slip that it was a total fluke. ;)

I still don't know where the beautiful two-bump notch shape came
from--leakage inductance and capacitor tolerance, I suppose.

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]


#407681

Fromrickman <gnuarm@gmail.com>
Date2016-04-15 13:51 -0400
Message-ID<ner9h3$7q7$3@dont-email.me>
In reply to#407671
On 4/15/2016 12:31 PM, Tim Wescott wrote:
> rickman <gnuarm@gmail.com> Wrote in message:
>> On 4/15/2016 5:28 AM, Tauno Voipio wrote:
>>> On 15.4.16 02:11, 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.
>>>
>>>
>>> Rick:
>>>
>>> Every motor is also a generator. For a motor with constant
>>> magnetization, the back EMF is proportional to the speed and
>>> the motor torque is proportional to the current.
>>>
>>> You can model such a motor with a series connection of the
>>> supply voltage, the motor (and line) resistance and the back
>>> EMF. The motor settles to a speed near such speed that the
>>> difference between supply voltage and back EMF runs just enough
>>> current in the circuit to compensate for torque needed to keep
>>> the speed.
>>>
>>> If you feed a constant-magnetized motor with a constant current
>>> supply, the torque stays constant until the compliance limit
>>> of the feed supply.
>>
>> Ok, that all makes sense and is what is being described in the paper.
>> The drive is current rather than voltage and will produce the result
>> shown in the diagram until the max voltage of the supply is reached.
>> Thanks.
>>
>> I still don't get equation 3.  I searched a bit and could not find
>> anything similar.  All the other references I found on the web use the
>> Laplace transform to perform the math and don't produce a similar equation.
>>
>> Trying to find info on the web for control theory really opens a rabbit
>> hole, lol.
>>
>> --
>>
>> Rick
>>
>
> Thermal systems are generally far more complex than equation 3
>   implies. That one really should be taken just add the equation
>   used to generate the plant model, nothing more.
>
> Pragmatically, if you need to wrap a control loop around a thermal
>   plant, you should probably close your eyes to the theory and
>   either tune it up by the seat of your pants (as in that paper),
>   or you should use measured responses (which I cover briefly in
>   another paper, and at length in my book).

Yes, I understand a real system may be more complicated.  But as I've 
said before, if I can't understand what an equation means, I have a very 
hard time understanding how to use it.  I just need to "get" the 
equations you use as examples.  This one eludes me and you seem to be 
saying you sort of made it up without a physical basis.  You said you 
invented not one, but two time constants.

-- 

Rick

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


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

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


csiph-web