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


Groups > sci.electronics.design > #410559

Re: PID Without a PhD, Finally

From Tim Wescott <seemywebsite@myfooter.really>
Subject Re: PID Without a PhD, Finally
Newsgroups sci.electronics.design
References (12 earlier) <g5idnTwYabAZlLfKnZ2dnUU7-bOdnZ2d@supernews.com> <uJ-dnaEs85tSuLfKnZ2dnUU7-emdnZ2d@giganews.com> <VpidnSti2vieq7fKnZ2dnUU7-XGdnZ2d@supernews.com> <-LadnXQXB41n97fKnZ2dnUU7-R-dnZ2d@giganews.com> <572A82DF.9060005@electrooptical.net>
Message-ID <-LadnXIXB41GELfKnZ2dnUU7-R-dnZ2d@giganews.com> (permalink)
Date 2016-05-04 19:03 -0500

Show all headers | View raw


On Wed, 04 May 2016 19:16:47 -0400, Phil Hobbs wrote:

> On 05/04/2016 05:34 PM, Tim Wescott wrote:
>> On Wed, 04 May 2016 13:48:50 -0400, Phil Hobbs wrote:
>>
>>> On 05/04/2016 12:39 PM, Tim Wescott wrote:
>>>> On Wed, 04 May 2016 10:39:00 -0400, Phil Hobbs wrote:
>>>>
>>>>> On 05/03/2016 08:26 PM, George Herold wrote:
>>>>>> On Tuesday, May 3, 2016 at 6:23:30 PM UTC-4, Tim Wescott wrote:
>>>>>>> On Mon, 02 May 2016 17:57:32 -0700, Paul Rubin wrote:
>>>>>>>
>>>>>>>> John Larkin <jjlarkin@highlandtechnology.com> writes:
>>>>>>>>> Sometimes the only practical way to design a temperature control
>>>>>>>>> loop is by breadboarding it; the thermal structure can be too
>>>>>>>>> fuzzy to even simulate.
>>>>>>>>
>>>>>>>> I wonder how close you can come by sticking temperature sensors
>>>>>>>> all over the place during development.  Then apply heat in a
>>>>>>>> single place and see how the temperature map evolves over time;
>>>>>>>> then move the heat source to another place and repeat, etc.  The
>>>>>>>> idea is to get enough info to let you simulate the system
>>>>>>>> accurately using basic thermo equations.
>>>>>>>
>>>>>>> If the question you want to answer is "now that I have it, how to
>>>>>>> I control it", then you can do swept-sine or step-input tests for
>>>>>>> system identification, and then design your controller from that.
>>>>>>>
>>>>>>> I prefer swept-sine measurements followed by design based on Bode
>>>>>>> plots.
>>>>>>> I like them because they're valid for any linear system, even ones
>>>>>>> that have distributed states, and because -- to an extent -- you
>>>>>>> can take nonlinearities into account as part of your control
>>>>>>> design.
>>>>>>>
>>>>>>> <http://wescottdesign.com/articles/FreqMeas/freq_meas.html>
>>>>>
>>>>>
>>>>>> Huh, OK. How good is my laser locker?
>>>>>> and what does the response look like?
>>>>>> I should wiggle the (optical) table with sine waves, in some
>>>>>> controlled way*.
>>>>>> rather than rapping with my knuckle.
>>>>>>
>>>>>> (Drop a screw driver on the table, and the lock is done. (maybe
>>>>>> with faster PD's, and more electronics.))
>>>>>>
>>>>>> George H.
>>>>>> *So how do I make controlled audio vibrations?
>>>>>> Mount a speaker?
>>>>>> Piezo pushing on the table would drop off fast..
>>>>>> A motor and off axis cylinder.. cam's?
>>>>>>
>>>>>>
>>>>> Two-channel dynamic signal analyzers like my HP 35665A are the bee's
>>>>> knees for that job.  You measure the disturbance with one channel
>>>>> (e.g.
>>>>> on an accelerometer) and the response with the other.  You can do
>>>>> all sorts of math on the results, which makes them really good for
>>>>> millihertz-to-tens-of-kilohertz feedback loops.
>>>>
>>>> These days there's probably a lower-budget way to do that with a two-
>>>> channel O-scope that can record to disk plus some number-crunching
>>>> software like Scilab.
>>>
>>> Maybe, but I paid $350 for mine, which is hard to beat.
>>
>> Goodgawd -- starting at $300 on eBay.  Yeeks!
>>
>> I actually had the predecessor to the 35665A available to me when I
>> started building control analyzer code into my software, on the theory
>> that if you're tapping into the exact same signals as you're doing the
>> controlling with, then (at least from the processor's perspective) your
>> plant measurements will be exact.
>>
>> It's worked consistently and well for me, so I'm going to stick with
>> it.
>>
>>
> Absolutely.  About 80% of my control stuff is analogue, though, so the
> DSA is great.

Does the version you have show the phase difference between excitation 
and system output?  At FLIR we had the predecessor, which was slow and 
clunky and we lived in fear of the hard drive going out, and we had 
something similar to those that only showed the magnitude difference.

I actually used it in my first big digital control project, for a variety 
of reasons.  Later, I ended up inheriting the analog boards that my 
digital board replaced, and used it to maintain those, too.

Part of the reason that I like my in-built thingie is because it's 
designed so that I can suck the response off into a file.  That gets put 
on a computer with Scilab, and I have scripts that let me generate closed-
loop Bode plots from the model of the control rule used by the 
processor.  Since it's all digital, that model is damn near exact, 
meaning that for well-behaved plants the tuning often only took one or 
two iterations.

(Plants with significant nonlinearities took more work, partially because 
the apparent response changed with the controller used, and partially 
because one had to make tradeoffs involved with dodging and/or embracing 
the nonlinearities.)

-- 

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

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

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 George Herold <gherold@teachspin.com> - 2016-05-03 18:23 -0700
            Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-05-04 11:37 -0500
          Re: PID Without a PhD, Finally George Herold <gherold@teachspin.com> - 2016-05-03 17:26 -0700
            Re: PID Without a PhD, Finally Glen Walpert <nospam@null.void> - 2016-05-04 13:27 +0000
              Re: PID Without a PhD, Finally George Herold <gherold@teachspin.com> - 2016-05-04 07:27 -0700
            Re: PID Without a PhD, Finally Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-05-04 10:39 -0400
              Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-05-04 11:39 -0500
                Re: PID Without a PhD, Finally Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-05-04 13:48 -0400
                Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-05-04 16:34 -0500
                Re: PID Without a PhD, Finally Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2016-05-04 19:16 -0400
                Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-05-04 19:03 -0500
                Re: PID Without a PhD, Finally Phil Hobbs <pcdhobbs@gmail.com> - 2016-05-04 17:14 -0700
                Re: PID Without a PhD, Finally George Herold <gherold@teachspin.com> - 2016-05-04 17:15 -0700
      Re: PID Without a PhD, Finally George Herold <gherold@teachspin.com> - 2016-05-02 19:34 -0700
  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

csiph-web