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 1 of 6  [1] 2 3 4 5 6  Next page →


#23614 — PID Without a PhD, Finally

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-04-14 17:03 -0500
SubjectPID Without a PhD, Finally
Message-ID<wpydnbi9wr9Ujo3KnZ2dnUU7-WXNnZ2d@giganews.com>
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

-- 

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

[toc] | [next] | [standalone]


#23615

Frombitrex <bitrex@de.lete.earthlink.net>
Date2016-04-14 19:00 -0400
Message-ID<siVPy.15926$2s3.10937@fx04.iad>
In reply to#23614
On 04/14/2016 06: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 could have gotten the required PhD in the meantime...

Haha no just kidding that would be lame-o. Looks great! :)

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


#23616

FromDJ Delorie <dj@delorie.com>
Date2016-04-14 19:09 -0400
Message-ID<xnr3e7lrdl.fsf@delorie.com>
In reply to#23614
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.

You don't mention feed-forward terms at all.

In short, it looks much like all the other PID papers out there, and
wouldn't have helped me "get" PID back when I was trying to figure it
out.

The section on I - the last paragraph should go first, since the point
of the I term is to correct for long-term errors, and you don't even
mention it in the first paragraph.

The second paragraph in D should be first, and is probably the most
useful paragraph in the paper, if you don't already understand PID.

The other thing I always hated about PID papers is that they never gave
solid examples of the difference between controlling speed and
controlling position, or the more complicated case of
torque/speed/position nested PID loops for CNC control.

I'm reminded of a YouTube video about how NOT to weld - the guy would
intentionally do it wrong various ways so you could compare his results
with your results, so you could figure out what you were doing wrong and
how to fix it.  Something like that for PID would be more useful than
showing an ideal situation.

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


#23618

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-04-14 18:25 -0500
Message-ID<wpydnbe9wr90u43KnZ2dnUU7-WWdnZ2d@giganews.com>
In reply to#23616
On Thu, 14 Apr 2016 19:09:26 -0400, DJ Delorie 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.
> 
> You don't mention feed-forward terms at all.
> 
> In short, it looks much like all the other PID papers out there, and
> wouldn't have helped me "get" PID back when I was trying to figure it
> out.
> 
> The section on I - the last paragraph should go first, since the point
> of the I term is to correct for long-term errors, and you don't even
> mention it in the first paragraph.
> 
> The second paragraph in D should be first, and is probably the most
> useful paragraph in the paper, if you don't already understand PID.
> 
> The other thing I always hated about PID papers is that they never gave
> solid examples of the difference between controlling speed and
> controlling position, or the more complicated case of
> torque/speed/position nested PID loops for CNC control.
> 
> I'm reminded of a YouTube video about how NOT to weld - the guy would
> intentionally do it wrong various ways so you could compare his results
> with your results, so you could figure out what you were doing wrong and
> how to fix it.  Something like that for PID would be more useful than
> showing an ideal situation.

Good points.

The intended audience is writers of software for embedded processors, so 
the 'C' code may be easier to understand than English for some readers.  
This was implied when it was in its original context -- I think I'll at 
least put in an expanded forward.

-- 

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

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


#23628

FromDaveC <not@home.cow>
Date2016-04-14 22:53 -0700
Message-ID<0001HW.1CC0B977002D63CC1112FC3CF@news.eternal-september.org>
In reply to#23616
On 14 Apr 2016, DJ Delorie wrote
(in article <xnr3e7lrdl.fsf@delorie.com>):

> I'm reminded of a YouTube video about how NOT to weld

Can you remember the guy--and find the link to that video series?

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


#23653

FromDJ Delorie <dj@delorie.com>
Date2016-04-15 14:31 -0400
Message-ID<xnmvoulo62.fsf@delorie.com>
In reply to#23628
DaveC <not@home.cow> writes:
>> I'm reminded of a YouTube video about how NOT to weld
>
> Can you remember the guy--and find the link to that video series?

ChuckE2009

https://www.youtube.com/watch?v=PJDv7Y6dUi0  mig welding
https://www.youtube.com/watch?v=akvv4ApYMVE  stick welding
https://www.youtube.com/watch?v=CVAByfuZXIY  tig welding

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


#23663

FromTim Wescott <tim@seemywebsite.com>
Date2016-04-15 15:02 -0500
Message-ID<KOqdnf0qBb9U1YzKnZ2dnUU7-UWdnZ2d@giganews.com>
In reply to#23616
On Thu, 14 Apr 2016 19:09:26 -0400, DJ Delorie 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.
> 
> You don't mention feed-forward terms at all.
> 
> In short, it looks much like all the other PID papers out there, and
> wouldn't have helped me "get" PID back when I was trying to figure it
> out.
> 
> The section on I - the last paragraph should go first, since the point
> of the I term is to correct for long-term errors, and you don't even
> mention it in the first paragraph.
> 
> The second paragraph in D should be first, and is probably the most
> useful paragraph in the paper, if you don't already understand PID.
> 
> The other thing I always hated about PID papers is that they never gave
> solid examples of the difference between controlling speed and
> controlling position, or the more complicated case of
> torque/speed/position nested PID loops for CNC control.
> 
> I'm reminded of a YouTube video about how NOT to weld - the guy would
> intentionally do it wrong various ways so you could compare his results
> with your results, so you could figure out what you were doing wrong and
> how to fix it.  Something like that for PID would be more useful than
> showing an ideal situation.

D'oh -- why, of course I'll include an appendix or something on how to do 
this with op-amps.  It should have occurred to me immediately.

-- 
www.wescottdesign.com

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


#23762

FromPaul Rubin <no.email@nospam.invalid>
Date2016-04-26 00:30 -0700
Message-ID<87fuu8ket1.fsf@nightsong.com>
In reply to#23663
Tim Wescott <tim@seemywebsite.com> writes:
> D'oh -- why, of course I'll include an appendix or something on how to do 
> this with op-amps.  It should have occurred to me immediately.

Indeed I've been wondering whether this stuff was ever done with purely
analog electronics.  I don't know how far back it goes historically but
I imagine quite a way.  Optimal control is from the 1940s and I'd expect
PID to be much older?  I'm clueless though.

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


#23763

FromAndre Lodwig <lodwig@pathme.de>
Date2016-04-26 09:45 +0200
Message-ID<nfn6ae$5g6$1@news.albasani.net>
In reply to#23762
On 26.04.2016 09:30, Paul Rubin wrote:
> Tim Wescott <tim@seemywebsite.com> writes:
>> D'oh -- why, of course I'll include an appendix or something on how to do
>> this with op-amps.  It should have occurred to me immediately.
>
> Indeed I've been wondering whether this stuff was ever done with purely
> analog electronics.  I don't know how far back it goes historically but
> I imagine quite a way.  Optimal control is from the 1940s and I'd expect
> PID to be much older?  I'm clueless though.
>

I think the 1st generation of CD players had pretty analog control loops 
for focus and track. This is not too long ago...

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


#23766

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-04-26 12:08 -0500
Message-ID<-cydnXFuLrPjPYLKnZ2dnUU7-c-dnZ2d@giganews.com>
In reply to#23762
On Tue, 26 Apr 2016 00:30:18 -0700, Paul Rubin wrote:

> Tim Wescott <tim@seemywebsite.com> writes:
>> D'oh -- why, of course I'll include an appendix or something on how to
>> do this with op-amps.  It should have occurred to me immediately.
> 
> Indeed I've been wondering whether this stuff was ever done with purely
> analog electronics.  I don't know how far back it goes historically but
> I imagine quite a way.  Optimal control is from the 1940s and I'd expect
> PID to be much older?  I'm clueless though.

The first PID controllers, to my knowledge, were purely mechanical 
systems.  The seminal papers were written in the 1860's, but they were to 
describe and analyze what had already been in use in industry.  

Pneumatic systems were a great innovation in the 1930's (or 20's, or 
teens).

Electronics doing PID control is a johnny come lately.

Here's Maxwell's paper (yes, James Clerk Maxwell of E&M fame).  There was 
a Russian -- Tchebychev, I think.  I can't remember who, nor have I found 
any papers.

https://upload.wikimedia.org/wikipedia/commons/b/b1/On_Governors.pdf

-- 

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

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


#23785

FromLes Cargill <lcargill99@comcast.com>
Date2016-04-26 21:50 -0500
Message-ID<nfp941$8jk$2@dont-email.me>
In reply to#23766
Tim Wescott wrote:
> On Tue, 26 Apr 2016 00:30:18 -0700, Paul Rubin wrote:
>
>> Tim Wescott <tim@seemywebsite.com> writes:
>>> D'oh -- why, of course I'll include an appendix or something on how to
>>> do this with op-amps.  It should have occurred to me immediately.
>>
>> Indeed I've been wondering whether this stuff was ever done with purely
>> analog electronics.  I don't know how far back it goes historically but
>> I imagine quite a way.  Optimal control is from the 1940s and I'd expect
>> PID to be much older?  I'm clueless though.
>
> The first PID controllers, to my knowledge, were purely mechanical
> systems.  The seminal papers were written in the 1860's, but they were to
> describe and analyze what had already been in use in industry.
>
> Pneumatic systems were a great innovation in the 1930's (or 20's, or
> teens).
>
> Electronics doing PID control is a johnny come lately.
>
> Here's Maxwell's paper (yes, James Clerk Maxwell of E&M fame).  There was
> a Russian -- Tchebychev, I think.  I can't remember who, nor have I found
> any papers.
>
> https://upload.wikimedia.org/wikipedia/commons/b/b1/On_Governors.pdf
>


The writing on that is superb. Thanks for the link.

-- 
Les Cargill

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


#23778

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2016-04-26 19:34 -0400
Message-ID<571FFB22.8040005@electrooptical.net>
In reply to#23762
On 04/26/2016 03:30 AM, Paul Rubin wrote:
> Tim Wescott <tim@seemywebsite.com> writes:
>> D'oh -- why, of course I'll include an appendix or something on how to do
>> this with op-amps.  It should have occurred to me immediately.
>
> Indeed I've been wondering whether this stuff was ever done with purely
> analog electronics.

Sure thing.  About three weeks ago for me. ;)

Cheers

Phil Hobbs

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


#23783

FromLes Cargill <lcargill99@comcast.com>
Date2016-04-26 21:39 -0500
Message-ID<nfp8h2$7u7$1@dont-email.me>
In reply to#23762
Paul Rubin wrote:
> Tim Wescott <tim@seemywebsite.com> writes:
>> D'oh -- why, of course I'll include an appendix or something on how to do
>> this with op-amps.  It should have occurred to me immediately.
>
> Indeed I've been wondering whether this stuff was ever done with purely
> analog electronics.  I don't know how far back it goes historically but
> I imagine quite a way.  Optimal control is from the 1940s and I'd expect
> PID to be much older?  I'm clueless though.
>


The first PID was used for steering ships and was mostly mechanical:

http://www.pcbheaven.com/wikipages/PID_Theory/

-- 
Les Cargill

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


#23779

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


#23781

Fromrickman <gnuarm@gmail.com>
Date2016-04-26 20:50 -0400
Message-ID<nfp25g$ooq$1@dont-email.me>
In reply to#23779
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]


#23786

FromLes Cargill <lcargill99@comcast.com>
Date2016-04-26 21:57 -0500
Message-ID<nfp9h4$a31$1@dont-email.me>
In reply to#23781
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]


#23784

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


#23790

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


#23800

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


#23815

FromM Philbrook <jamie_ka1lpa@charter.net>
Date2016-04-30 20:12 -0400
Message-ID<MPG.318f13ee81cebb2d989ee2@news.eternal-september.org>
In reply to#23800
In article <nfuiil$cc0$2@dont-email.me>, lcargill99@comcast.com says...
> 
> 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.

http://www.contrexinc.com/PDF/Reflex/tm_12m03_104.pdf

 That is a perfect Analog PID circuit,.. Scroll down to see print.

 LAG = (I)  With enhanced control.
 LEAD= (D)    "    "        "       Via the BREAK levels.
 GAIN= (P)
  
 Dancer POS is the Set Point (SP)
 While the input to the buffer is the Process Value (PV)

 Jamie

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


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

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


csiph-web