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


Groups > comp.dsp > #31161 > unrolled thread

PID Without a PhD, Finally

Started byTim Wescott <seemywebsite@myfooter.really>
First post2016-04-14 17:03 -0500
Last post2016-04-26 14:09 -0700
Articles 20 on this page of 150 — 35 participants

Back to article view | Back to comp.dsp


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 herrmannsfeldt@gmail.com - 2016-04-27 13:57 -0700
              Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-27 16:25 -0500
                Re: PID Without a PhD, Finally Christian Gollwitzer <auriocus@gmx.de> - 2016-04-27 23:55 +0200
                  Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-27 17:12 -0500
                  Re: PID Without a PhD, Finally spope33@speedymail.org (Steve Pope) - 2016-04-28 01:22 +0000
                  Re: PID Without a PhD, Finally Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2016-04-28 12:02 +0300
                  Re: PID Without a PhD, Finally Les Cargill <lcargill99@comcast.com> - 2016-04-28 21:59 -0500
            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 robert bristow-johnson <rbj@audioimagination.com> - 2016-05-02 16:37 -0700
                  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 herrmannsfeldt@gmail.com - 2016-05-02 19:05 -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
    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 gyansorova@gmail.com - 2016-04-14 16:33 -0700
      Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-14 19:09 -0500
      Re: PID Without a PhD, Finally Les Cargill <lcargill99@comcast.com> - 2016-04-14 21:14 -0500
        Re: PID Without a PhD, Finally Tim Wescott <tim@seemywebsite.com> - 2016-04-14 23:09 -0500
          Re: PID Without a PhD, Finally Les Cargill <lcargill99@comcast.com> - 2016-04-15 00:37 -0500
            Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-15 12:11 -0500
    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 herrmannsfeldt@gmail.com - 2016-04-15 13:26 -0700
                    Re: PID Without a PhD, Finally Tim Wescott <tim@seemywebsite.com> - 2016-04-15 15:32 -0500
                      Re: PID Without a PhD, Finally herrmannsfeldt@gmail.com - 2016-04-15 15:06 -0700
                        Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-15 20:13 -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 herrmannsfeldt@gmail.com - 2016-04-15 19:57 -0700
              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 robert bristow-johnson <rbj@audioimagination.com> - 2016-04-15 20:36 -0700
      Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-18 11:34 -0500
        Re: PID Without a PhD, Finally robert bristow-johnson <rbj@audioimagination.com> - 2016-04-19 22:14 -0700
        Re: PID Without a PhD, Finally robert bristow-johnson <rbj@audioimagination.com> - 2016-04-19 22:57 -0700
    Re: PID Without a PhD, Finally Christian Gollwitzer <auriocus@gmx.de> - 2016-04-16 09:25 +0200
      Re: PID Without a PhD, Finally herrmannsfeldt@gmail.com - 2016-04-16 15:44 -0700
        Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-17 00:58 -0400
        Re: PID Without a PhD, Finally Christian Gollwitzer <auriocus@gmx.de> - 2016-04-17 08:41 +0200
          Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-18 11:49 -0500
            Re: PID Without a PhD, Finally makolber@yahoo.com - 2016-04-18 13:43 -0700
              Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-18 16:24 -0500
                Re: PID Without a PhD, Finally lasselangwadtchristensen@gmail.com - 2016-04-18 15:19 -0700
                Re: PID Without a PhD, Finally herrmannsfeldt@gmail.com - 2016-04-18 16:19 -0700
                  Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-20 00:34 -0400
                    Re: PID Without a PhD, Finally herrmannsfeldt@gmail.com - 2016-04-19 23:07 -0700
                      Re: PID Without a PhD, Finally rickman <gnuarm@gmail.com> - 2016-04-20 04:23 -0400
                      Re: PID Without a PhD, Finally makolber@yahoo.com - 2016-04-20 06:17 -0700
                Re: PID Without a PhD, Finally Les Cargill <lcargill99@comcast.com> - 2016-04-18 19:50 -0500
                Re: PID Without a PhD, Finally herrmannsfeldt@gmail.com - 2016-04-18 20:01 -0700
              Re: PID Without a PhD, Finally Nobody <nobody@nowhere.invalid> - 2016-04-19 12:37 +0100
                Re: PID Without a PhD, Finally herrmannsfeldt@gmail.com - 2016-04-19 11:45 -0700
              Re: PID Without a PhD, Finally Mac Decman <dearman.mark@gmail.com> - 2016-04-21 21:16 -0700
                Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-22 11:47 -0500
                  Re: PID Without a PhD, Finally Mac Decman <dearman.mark@gmail.com> - 2016-04-22 12:20 -0700
                    Re: PID Without a PhD, Finally Mac Decman <dearman.mark@gmail.com> - 2016-04-22 13:02 -0700
    Re: PID Without a PhD, Finally OG <AIEO@AIOESPAM.COM> - 2016-04-17 10:12 -0700
      Re: PID Without a PhD, Finally gyansorova@gmail.com - 2016-04-17 12:48 -0700
        Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-18 11:36 -0500
    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
        Re: PID Without a PhD, Finally makolber@yahoo.com - 2016-04-26 11:54 -0700
          Re: PID Without a PhD, Finally Tim Wescott <seemywebsite@myfooter.really> - 2016-04-26 14:38 -0500
            Re: PID Without a PhD, Finally herrmannsfeldt@gmail.com - 2016-04-26 14:09 -0700

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


#31319

Fromrobert bristow-johnson <rbj@audioimagination.com>
Date2016-04-19 22:57 -0700
Message-ID<16d635e7-017f-498d-820e-51d940078e60@googlegroups.com>
In reply to#31292
On Monday, April 18, 2016 at 12:34:32 PM UTC-4, Tim Wescott wrote:
> On Fri, 15 Apr 2016 20:36:06 -0700, robert bristow-johnson wrote:
> 
> > i wanna "lab queen".
> > 
> > :-O
> 
> They can be very demanding of your time and attention, and unreliable 
> about giving you what you want when you want it.

BTW, i have to confess that i like this document very much, Tim.  since grad school, the only time i did anything like a PID was, coincidently (since we were discussing the SHArC in Randy's thread and i have mentioned that only 20 years ago and now are the only times i have coded on that chip) 20 years ago when i designed and implemented an Asynchronous SRC.  (so hey, Bob Adams, you're not the only one! :-)  and it ran on the SHArC of the day (i think it was a ADSP-21062).

anyway, very similar to a PLL, an ASRC has a feedback control system that had the "I" naturally built in, as the VCO or NCO that's in a PLL inherently integrates its input to become phase.  in an ASRC, the control variable that goes into the "plant" is the "step size" of the output pointer, which has both integer and fractional parts.  anyway to model that was a little tricky because the step size is integrated to become the output pointer, but the feedback is the difference between the output pointer and the input pointer (actually you want the output pointer to be 1/2 buffer length behind the input pointer).  the output pointer moves whenever an output sample is demanded (set by the asynchronous output clock) and the input pointer moves whenever an input sample is provided.

so although the integrator was integrating something always positive, so that variable was always increasing, it was having a similar variable subtracted from it to yield a feedback value.  and if i wanted a little "P", i had to differentiate that feedback value because it was going into an integrator.  i didn't bother with any "D".

i also had a 9th order polynomial, which was x*(1 + a*x^8), acting on the difference parameter (before going into the integrator) as a "hurry up factor" if the output pointer somehow drifted too far from it's set point.

then, contrary to my memory from my olden school daze, i noticed in Figure 2 that the Differentiator does not come out of the comparator of the Plant output to the "Command" (what we used to call "the Set Point").  that's interesting and makes a lot of sense, since you wouldn't want the spike from suddenly changing the Set Point to bang up the Plant.  but you still want the "D" part to *anticipate* drift or change of the Plant value from what you set it to be.

i wonder if the integrator that is inherent to the NCO (the thing that integrates "step size") should be modeled as part of the Plant or modeled as part of the controller.  i did the latter, as i recall.

appreciations for any free musings from an expert.  sorry i can't pay you, Tim.  (and it's only for my own edification, i ain't gonna do another ASRC again in my life.  or any control systems app.  i'm pretty confident of that.)

r b-j

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


#31257

FromChristian Gollwitzer <auriocus@gmx.de>
Date2016-04-16 09:25 +0200
Message-ID<nesp6e$qvo$1@dont-email.me>
In reply to#31161
Am 15.04.16 um 00:03 schrieb Tim Wescott:
> 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've had a cursory look. I'm a physicist myself with only basic 
knowledge of PID control, so for me the math boxes were helpful. You did 
not define all variables there, particularly the dependent variables. In 
equation (1), I wondered whether theta_m is the angle or angular 
velocity of the motor. That t is time seems fairly obvious, but I'd put 
both in for clarification. Same for equation (2).

Your plots need some typographical adjustment. The lines are too thin 
and the fonts are too small. I would also put the variables  on the 
axis, i.e. "Time t in seconds" etc.

The complete controller is a short function which fits in one page. 
Maybe it is better to put it at the beginning, giving different colours 
to the proportinal, integral and derivative term, and then explain it. 
While reading the code snippets, I was wondering what are the fields in 
the pid structure etc.

For some reason, I find the code on paper quite hard to read. Maybe it's 
the syntax highlighting that I'm used to when reading on the screen. You 
can do some basic highlighting using the listings package to improve on 
that.

	Christian

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


#31268

Fromherrmannsfeldt@gmail.com
Date2016-04-16 15:44 -0700
Message-ID<1d26899e-a6c9-44c1-a01f-5b5c0958d368@googlegroups.com>
In reply to#31257
On Saturday, April 16, 2016 at 12:25:14 AM UTC-7, Christian Gollwitzer wrote:

(snip)

> I've had a cursory look. I'm a physicist myself with only basic 
> knowledge of PID control, so for me the math boxes were helpful. You did 
> not define all variables there, particularly the dependent variables. In 
> equation (1), I wondered whether theta_m is the angle or angular 
> velocity of the motor. That t is time seems fairly obvious, but I'd put 
> both in for clarification. Same for equation (2).

I don't know control theory much at all, but in physics it is usual that an
angle is theta, angular velocity (d theta/dt) is omega, and the second derivative,
angular acceleration is alpha.

Omega is also used as the angular frequency in time dependent sinusoids,
such as Fourier transforms in the time dimension.  This avoids many of the 2pi
that come out when you do Fourier transforms using f instead of omega.

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


#31272

Fromrickman <gnuarm@gmail.com>
Date2016-04-17 00:58 -0400
Message-ID<nev502$1hc$2@dont-email.me>
In reply to#31268
On 4/16/2016 6:44 PM, herrmannsfeldt@gmail.com wrote:
> On Saturday, April 16, 2016 at 12:25:14 AM UTC-7, Christian Gollwitzer wrote:
>
> (snip)
>
>> I've had a cursory look. I'm a physicist myself with only basic
>> knowledge of PID control, so for me the math boxes were helpful. You did
>> not define all variables there, particularly the dependent variables. In
>> equation (1), I wondered whether theta_m is the angle or angular
>> velocity of the motor. That t is time seems fairly obvious, but I'd put
>> both in for clarification. Same for equation (2).
>
> I don't know control theory much at all, but in physics it is usual that an
> angle is theta, angular velocity (d theta/dt) is omega, and the second derivative,
> angular acceleration is alpha.
>
> Omega is also used as the angular frequency in time dependent sinusoids,
> such as Fourier transforms in the time dimension.  This avoids many of the 2pi
> that come out when you do Fourier transforms using f instead of omega.

I saw a capital omega used in several of the references I found and 
didn't make the connection to the lower case omega I am used to seeing 
in formulas.  I did figure out they were talking about angular velocity, 
but that sort of confusion makes learning harder.  Writers should get 
used to the fact that everything you use should be explained.  Your 
audience often is not familiar with the jargon.

-- 

Rick

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


#31273

FromChristian Gollwitzer <auriocus@gmx.de>
Date2016-04-17 08:41 +0200
Message-ID<nevb09$h28$1@dont-email.me>
In reply to#31268
Am 17.04.16 um 00:44 schrieb herrmannsfeldt@gmail.com:
> On Saturday, April 16, 2016 at 12:25:14 AM UTC-7, Christian Gollwitzer wrote:
>
> (snip)
>
>> I've had a cursory look. I'm a physicist myself with only basic
>> knowledge of PID control, so for me the math boxes were helpful. You did
>> not define all variables there, particularly the dependent variables. In
>> equation (1), I wondered whether theta_m is the angle or angular
>> velocity of the motor. That t is time seems fairly obvious, but I'd put
>> both in for clarification. Same for equation (2).
>
> I don't know control theory much at all, but in physics it is usual that an
> angle is theta, angular velocity (d theta/dt) is omega, and the second derivative,
> angular acceleration is alpha.

I'm just saying that I couldn't get it at the first look. To me, theta 
is a neutral variable, could be temperature, a scaling paramater, almost 
anything. alpha, which you percieve as angular acceleration, sounds like 
a general angle to me.

Therefore, in papers I usually define every variable. Instead of

"
The response of the motor position to the input voltage can be described 
by the equation

d^2 theta/dt^2 = ...

"

I'd put

"
The response of the motor axis angle theta to the input voltage V_m can 
be described by the equation

d^2 theta/dt^2 = ...

... where t is the time" or "at the time t" or similar.


	Christian

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


#31294

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-04-18 11:49 -0500
Message-ID<8L-dnZWyAoe6jYjKnZ2dnUU7-dudnZ2d@giganews.com>
In reply to#31273
On Sun, 17 Apr 2016 08:41:22 +0200, Christian Gollwitzer wrote:

> Am 17.04.16 um 00:44 schrieb herrmannsfeldt@gmail.com:
>> On Saturday, April 16, 2016 at 12:25:14 AM UTC-7, Christian Gollwitzer
>> wrote:
>>
>> (snip)
>>
>>> I've had a cursory look. I'm a physicist myself with only basic
>>> knowledge of PID control, so for me the math boxes were helpful. You
>>> did not define all variables there, particularly the dependent
>>> variables. In equation (1), I wondered whether theta_m is the angle or
>>> angular velocity of the motor. That t is time seems fairly obvious,
>>> but I'd put both in for clarification. Same for equation (2).
>>
>> I don't know control theory much at all, but in physics it is usual
>> that an angle is theta, angular velocity (d theta/dt) is omega, and the
>> second derivative,
>> angular acceleration is alpha.
> 
> I'm just saying that I couldn't get it at the first look. To me, theta
> is a neutral variable, could be temperature, a scaling paramater, almost
> anything. alpha, which you percieve as angular acceleration, sounds like
> a general angle to me.
> 
> Therefore, in papers I usually define every variable. Instead of
> 
> "
> The response of the motor position to the input voltage can be described
> by the equation
> 
> d^2 theta/dt^2 = ...
> 
> "
> 
> I'd put
> 
> "
> The response of the motor axis angle theta to the input voltage V_m can
> be described by the equation
> 
> d^2 theta/dt^2 = ...
> 
> ... where t is the time" or "at the time t" or similar.
> 
> 
> 	Christian

Thanks for your comments.  The notation is fairly standard within the 
motion control community, but since my intended audience is outside of 
that, I should better define my terms.

It's just this sort of thing that I solicit comments for -- things that 
are in my blind spots that are glaringly obvious to y'all.

-- 

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

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


#31296

Frommakolber@yahoo.com
Date2016-04-18 13:43 -0700
Message-ID<e1d7d9a3-7db0-4754-b49a-b13b188e20a1@googlegroups.com>
In reply to#31294
> 
> It's just this sort of thing that I solicit comments for -- things that 
> are in my blind spots that are glaringly obvious to y'all.
> 
> -- 
> 
> Tim Wescott
> Wescott Design Services
> http://www.wescottdesign.com


This question is somewhat OT...

For the case of the "speaker" on Page 6....


If the ACCELERATION is proportional to the coil CURRENT,  how do we get to the situation in an ordinary "audio speaker" where  I think the DISPLACEMENT is proportional to VOLATGE.  

And also where a constant VOLTAGE yields a flat SPL response over frequency but with a decreasing DISPACMENT with frequency.

Seems fortuitous.
Mark

    

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


#31297

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-04-18 16:24 -0500
Message-ID<OOadnRujVdQWzYjKnZ2dnUU7-eednZ2d@giganews.com>
In reply to#31296
On Mon, 18 Apr 2016 13:43:45 -0700, makolber wrote:


>> It's just this sort of thing that I solicit comments for -- things that
>> are in my blind spots that are glaringly obvious to y'all.
>> 
>> --
>> 
>> Tim Wescott Wescott Design Services http://www.wescottdesign.com
> 
> 
> This question is somewhat OT...
> 
> For the case of the "speaker" on Page 6....
> 
> 
> If the ACCELERATION is proportional to the coil CURRENT,  how do we get
> to the situation in an ordinary "audio speaker" where  I think the
> DISPLACEMENT is proportional to VOLATGE.
> 
> And also where a constant VOLTAGE yields a flat SPL response over
> frequency but with a decreasing DISPACMENT with frequency.
> 
> Seems fortuitous.
> Mark

I'm going to tell you what little I know, and then end with an "I dunno".

The _force_ on the coil (really between the coil and magnet) is 
proportional to the coil current, for some range of coil currents.  In 
the given example, the acceleration of the stage is proportional to the 
force because, outside of the bounds of the discussion, some mechanical 
designer sweat a lot of blood to insure that the stage can move freely in 
the desired direction without being affected by external forces.  So 
friction, springiness (arising from cabling) gravity, and a host of other 
effects have all been carefully designed out of the system.

As a consequence of this, the acceleration is strictly proportional to 
the force (until the thing bonks into a stop), which, in turn, is 
strictly proportional to the current.

Part of making this happen is making sure that whatever the software 
commands is turned into a current, and not a voltage.

A speaker is not driven by a current-output amplifier.  It's driven by a 
voltage-output amplifier: whatever form the input command takes, the 
final amplifier tries to hold the output _voltage_ to the commanded value.

If the coil were superconducting, then the velocity of the stage with 
respect to the magnet would follow the coil voltage.  As it is, the coil 
has some resistance, so the stage would sorta-kinda act like it's 
connected to the magnet via a shock absorber.

I'm not an audio guy, so a lot of what comes after is bloviating.  I'm 
going to say what I know as best as I know it, and then if some audio guy 
comes on and says my picture is incomplete or even erroneous, believe 
them.

In a speaker, the coil is connected to a cone that "sees" push-back from 
the air, and from it's suspension (I suspect that the component of force 
from the suspension is as little as can be made to happen, possibly by 
some mechanical guy sweating blood).  Moreover, the cone has mechanical 
resonances (which I'll bet are pushed as high as possible, possibly above 
the rated frequency of the speaker).  So the relationship between the 
applied voltage, the coil velocity, and the sound pressure level is (A) 
complicated, and (B) a closed book to me.

So I'd like some audio guy to elucidate!

-- 

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

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


#31298

Fromlasselangwadtchristensen@gmail.com
Date2016-04-18 15:19 -0700
Message-ID<db4bbfa8-f4d2-4486-821e-6772e99ec47d@googlegroups.com>
In reply to#31297
Den mandag den 18. april 2016 kl. 23.24.31 UTC+2 skrev Tim Wescott:
> On Mon, 18 Apr 2016 13:43:45 -0700, makolber wrote:
> 
> 
> >> It's just this sort of thing that I solicit comments for -- things that
> >> are in my blind spots that are glaringly obvious to y'all.
> >> 
> >> --
> >> 
> >> Tim Wescott Wescott Design Services http://www.wescottdesign.com
> > 
> > 
> > This question is somewhat OT...
> > 
> > For the case of the "speaker" on Page 6....
> > 
> > 
> > If the ACCELERATION is proportional to the coil CURRENT,  how do we get
> > to the situation in an ordinary "audio speaker" where  I think the
> > DISPLACEMENT is proportional to VOLATGE.
> > 
> > And also where a constant VOLTAGE yields a flat SPL response over
> > frequency but with a decreasing DISPACMENT with frequency.
> > 
> > Seems fortuitous.
> > Mark
> 
> I'm going to tell you what little I know, and then end with an "I dunno".
> 
> The _force_ on the coil (really between the coil and magnet) is 
> proportional to the coil current, for some range of coil currents.  In 
> the given example, the acceleration of the stage is proportional to the 
> force because, outside of the bounds of the discussion, some mechanical 
> designer sweat a lot of blood to insure that the stage can move freely in 
> the desired direction without being affected by external forces.  So 
> friction, springiness (arising from cabling) gravity, and a host of other 
> effects have all been carefully designed out of the system.
> 
> As a consequence of this, the acceleration is strictly proportional to 
> the force (until the thing bonks into a stop), which, in turn, is 
> strictly proportional to the current.
> 
> Part of making this happen is making sure that whatever the software 
> commands is turned into a current, and not a voltage.
> 
> A speaker is not driven by a current-output amplifier.  It's driven by a 
> voltage-output amplifier: whatever form the input command takes, the 
> final amplifier tries to hold the output _voltage_ to the commanded value.
> 
> If the coil were superconducting, then the velocity of the stage with 
> respect to the magnet would follow the coil voltage.  As it is, the coil 
> has some resistance, so the stage would sorta-kinda act like it's 
> connected to the magnet via a shock absorber.
> 
> I'm not an audio guy, so a lot of what comes after is bloviating.  I'm 
> going to say what I know as best as I know it, and then if some audio guy 
> comes on and says my picture is incomplete or even erroneous, believe 
> them.
> 
> In a speaker, the coil is connected to a cone that "sees" push-back from 
> the air, and from it's suspension (I suspect that the component of force 
> from the suspension is as little as can be made to happen, possibly by 
> some mechanical guy sweating blood).  Moreover, the cone has mechanical 
> resonances (which I'll bet are pushed as high as possible, possibly above 
> the rated frequency of the speaker).  So the relationship between the 
> applied voltage, the coil velocity, and the sound pressure level is (A) 
> complicated, and (B) a closed book to me.
> 
> So I'd like some audio guy to elucidate!
> 

described by Thiele/Small parameters

https://en.wikipedia.org/wiki/Thiele/Small

http://sound.westhost.com/tsp.htm


-Lasse

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


#31300

Fromherrmannsfeldt@gmail.com
Date2016-04-18 16:19 -0700
Message-ID<09e64957-a487-454b-a80a-b59818656d1a@googlegroups.com>
In reply to#31297
On Monday, April 18, 2016 at 2:24:31 PM UTC-7, Tim Wescott wrote:
> On Mon, 18 Apr 2016 13:43:45 -0700, makolber wrote:

(snip)

> > If the ACCELERATION is proportional to the coil CURRENT,  how do we get
> > to the situation in an ordinary "audio speaker" where  I think the
> > DISPLACEMENT is proportional to VOLATGE.
 
> > And also where a constant VOLTAGE yields a flat SPL response over
> > frequency but with a decreasing DISPACMENT with frequency.
 
For the case of loudspeakers, and I always believed for voice coil positioners
on disk drives, there is also a spring.  The result of spring is that the offset is,
assuming spring linearity, proportional to the force.  Well, you still have all
the rest of the parameters, but in steady state position with a spring is
proportional to force.  It is also convenient for disk drives, in that the spring
pulls the heads to the park position when the current goes to zero.

> I'm going to tell you what little I know, and then end with an "I dunno".

> The _force_ on the coil (really between the coil and magnet) is 
> proportional to the coil current, for some range of coil currents.  In 
> the given example, the acceleration of the stage is proportional to the 
> force because, outside of the bounds of the discussion, some mechanical 
> designer sweat a lot of blood to insure that the stage can move freely in 
> the desired direction without being affected by external forces.  So 
> friction, springiness (arising from cabling) gravity, and a host of other 
> effects have all been carefully designed out of the system.

Since the whole idea is to use feedback, there is no need for the drive to
be linear.  For scanners and printers, it is usual to use a quadrature encoder
to digitally extract the position information, as accurately as you can 
design the encoder wheel or linear track.
 
> As a consequence of this, the acceleration is strictly proportional to 
> the force (until the thing bonks into a stop), which, in turn, is 
> strictly proportional to the current.

> Part of making this happen is making sure that whatever the software 
> commands is turned into a current, and not a voltage.
 
> A speaker is not driven by a current-output amplifier.  It's driven by a 
> voltage-output amplifier: whatever form the input command takes, the 
> final amplifier tries to hold the output _voltage_ to the commanded value.

And, as above, speakers have a spring. The edge of the cone, and its coupling
to the frame, has some springiness.  For acoustic suspension speaker systems,
it is the pressure from the air in the cabinet that forms a very linear spring. 

> If the coil were superconducting, then the velocity of the stage with 
> respect to the magnet would follow the coil voltage.  As it is, the coil 
> has some resistance, so the stage would sorta-kinda act like it's 
> connected to the magnet via a shock absorber.

The DC resistance, and the voltage source, mean the steady state
current is voltage over resistance.  Would it be easier to just design
amplifiers as current sources?

There is an additional term, which I knew back to the days of vacuum
tube amplifiers.  (When I was younger, I inherited my father's Heathkit
amplifier when he bought a transistorized one.  Also, the manual for it.)

The term is called damping, which comes from the output DC resistance
of the amplifier. Movement of the cone generates a back EMF, which then
meets the amplifier output impedance. 

> I'm not an audio guy, so a lot of what comes after is bloviating.  I'm 
> going to say what I know as best as I know it, and then if some audio guy 
> comes on and says my picture is incomplete or even erroneous, believe 
> them.

I am not an audio professional, but I have read some over the years, 
starting with the Heathkit manuals.
 
> In a speaker, the coil is connected to a cone that "sees" push-back from 
> the air, and from it's suspension (I suspect that the component of force 
> from the suspension is as little as can be made to happen, possibly by 
> some mechanical guy sweating blood). 

As above, for acoustic suspension it is the air in the cabinet, which must
be well sealed, that supplies the push back, nice and linear.

The other popular design is bass reflex. Speaker system response naturally
falls at lower frequencies.  The bass reflex uses a cabinet resonance to lift
the response just where it otherwise starts to fall.  The result is more
efficient than acoustic suspension, but less linear.  

The springiness of the driver itself is somewhat non-linear, especially
at high amplitude.  At low frequencies, you have a high displacement
amplitude, for constant power, but even more as audio demands more
acoustic power at lower frequencies. 

> Moreover, the cone has mechanical 
> resonances (which I'll bet are pushed as high as possible, possibly above 
> the rated frequency of the speaker).  

I think that is right.  Lower mass is good, which would be higher resonance.

> So the relationship between the 
> applied voltage, the coil velocity, and the sound pressure level is (A) 
> complicated, and (B) a closed book to me.

Having written that, I haven't thought for a while whether the audio voltage
is supposed to be pressure or displacement, the difference being a factor
of f (frequency).  In addition, there is the complication of the inductance
and capacitance of the speaker winding, and the effects of the crossover
inductors and capacitors.

> So I'd like some audio guy to elucidate!

I am sure there are those that know it better than I do, but maybe
that will get it started.

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


#31317

Fromrickman <gnuarm@gmail.com>
Date2016-04-20 00:34 -0400
Message-ID<nf70lf$ne6$1@dont-email.me>
In reply to#31300
On 4/18/2016 7:19 PM, herrmannsfeldt@gmail.com wrote:
> On Monday, April 18, 2016 at 2:24:31 PM UTC-7, Tim Wescott wrote:
>> On Mon, 18 Apr 2016 13:43:45 -0700, makolber wrote:
>
> (snip)
>
>>> If the ACCELERATION is proportional to the coil CURRENT,  how do we get
>>> to the situation in an ordinary "audio speaker" where  I think the
>>> DISPLACEMENT is proportional to VOLATGE.
>
>>> And also where a constant VOLTAGE yields a flat SPL response over
>>> frequency but with a decreasing DISPACMENT with frequency.
>
> For the case of loudspeakers, and I always believed for voice coil positioners
> on disk drives, there is also a spring.  The result of spring is that the offset is,
> assuming spring linearity, proportional to the force.  Well, you still have all
> the rest of the parameters, but in steady state position with a spring is
> proportional to force.  It is also convenient for disk drives, in that the spring
> pulls the heads to the park position when the current goes to zero.

I don't know about the disc drive head, but in the case of the 
loudspeaker the spring force is very weak compared to the force of 
accelerating the speaker cone and even more, the air.  If you push the 
cone of a quality speaker with your finger, you find it moves *very* 
easily.  That is by design to reduce both the spring constant and the 
friction (damping) of the cone support.  So in most cases you can ignore 
these factors leaving the nearly all the force to accelerate the speaker 
cone and the air.


>> I'm going to tell you what little I know, and then end with an "I dunno".
>
>> The _force_ on the coil (really between the coil and magnet) is
>> proportional to the coil current, for some range of coil currents.  In
>> the given example, the acceleration of the stage is proportional to the
>> force because, outside of the bounds of the discussion, some mechanical
>> designer sweat a lot of blood to insure that the stage can move freely in
>> the desired direction without being affected by external forces.  So
>> friction, springiness (arising from cabling) gravity, and a host of other
>> effects have all been carefully designed out of the system.
>
> Since the whole idea is to use feedback, there is no need for the drive to
> be linear.  For scanners and printers, it is usual to use a quadrature encoder
> to digitally extract the position information, as accurately as you can
> design the encoder wheel or linear track.
>
>> As a consequence of this, the acceleration is strictly proportional to
>> the force (until the thing bonks into a stop), which, in turn, is
>> strictly proportional to the current.
>
>> Part of making this happen is making sure that whatever the software
>> commands is turned into a current, and not a voltage.
>
>> A speaker is not driven by a current-output amplifier.  It's driven by a
>> voltage-output amplifier: whatever form the input command takes, the
>> final amplifier tries to hold the output _voltage_ to the commanded value.
>
> And, as above, speakers have a spring. The edge of the cone, and its coupling
> to the frame, has some springiness.  For acoustic suspension speaker systems,
> it is the pressure from the air in the cabinet that forms a very linear spring.

Yes, the air is compressible, but more importantly when the air is moved 
it has momentum as well as friction.  As Tim pointed out there are also 
resonances in the enclosure and the speaker parts which make it all much 
more complex over frequency if you want to define the system in detail.


>> If the coil were superconducting, then the velocity of the stage with
>> respect to the magnet would follow the coil voltage.  As it is, the coil
>> has some resistance, so the stage would sorta-kinda act like it's
>> connected to the magnet via a shock absorber.
>
> The DC resistance, and the voltage source, mean the steady state
> current is voltage over resistance.  Would it be easier to just design
> amplifiers as current sources?

I think the response of the speaker is being very oversimplified here. 
The acceleration of the speaker is still determined by the current in 
the coil.  This is only changed when the speaker reaches the end of its 
travel and the spring constant (very small normally) greatly changes 
along with the damping.

Until that point, the speaker cone and air are similar to the freely 
suspended platform, other than the impact of the non-idealities of the 
enclosure.


> There is an additional term, which I knew back to the days of vacuum
> tube amplifiers.  (When I was younger, I inherited my father's Heathkit
> amplifier when he bought a transistorized one.  Also, the manual for it.)
>
> The term is called damping, which comes from the output DC resistance
> of the amplifier. Movement of the cone generates a back EMF, which then
> meets the amplifier output impedance.
>
>> I'm not an audio guy, so a lot of what comes after is bloviating.  I'm
>> going to say what I know as best as I know it, and then if some audio guy
>> comes on and says my picture is incomplete or even erroneous, believe
>> them.
>
> I am not an audio professional, but I have read some over the years,
> starting with the Heathkit manuals.
>
>> In a speaker, the coil is connected to a cone that "sees" push-back from
>> the air, and from it's suspension (I suspect that the component of force
>> from the suspension is as little as can be made to happen, possibly by
>> some mechanical guy sweating blood).

Exactly, and as long as the speaker is not over driven.


> As above, for acoustic suspension it is the air in the cabinet, which must
> be well sealed, that supplies the push back, nice and linear.

Sealed other than the big hole that is usually provided.  There is 
little reason to want the air in the cabinet to be a spring as it just 
creates a resonance with the speaker cone mass.  Better to use a port to 
allow that sound to merge constructively with the front projected air.


> The other popular design is bass reflex. Speaker system response naturally
> falls at lower frequencies.  The bass reflex uses a cabinet resonance to lift
> the response just where it otherwise starts to fall.  The result is more
> efficient than acoustic suspension, but less linear.

Yes, well, there *is* that.  ;)


> The springiness of the driver itself is somewhat non-linear, especially
> at high amplitude.  At low frequencies, you have a high displacement
> amplitude, for constant power, but even more as audio demands more
> acoustic power at lower frequencies.
>
>> Moreover, the cone has mechanical
>> resonances (which I'll bet are pushed as high as possible, possibly above
>> the rated frequency of the speaker).
>
> I think that is right.  Lower mass is good, which would be higher resonance.

Mass is a trade-off between reducing the force and movement available to 
move air (heavier cone moves less air) and the stiffness of the cone to 
prevent bending and resonances within the cone itself (think waves 
moving across the cone).  Improve one and the other gets worse unless 
you can find better materials or designs.

-- 

Rick

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


#31320

Fromherrmannsfeldt@gmail.com
Date2016-04-19 23:07 -0700
Message-ID<de6a5ea8-c6f4-4da6-9b9f-fa85af8606ee@googlegroups.com>
In reply to#31317
On Tuesday, April 19, 2016 at 9:34:05 PM UTC-7, rickman wrote:


(snip, I wrote)
> > And, as above, speakers have a spring. The edge of the cone, and its coupling
> > to the frame, has some springiness.  For acoustic suspension speaker systems,
> > it is the pressure from the air in the cabinet that forms a very linear spring.

> Yes, the air is compressible, but more importantly when the air is moved 
> it has momentum as well as friction.  As Tim pointed out there are also 
> resonances in the enclosure and the speaker parts which make it all much 
> more complex over frequency if you want to define the system in detail.

(Tim, I believe, wrote)
> >> If the coil were superconducting, then the velocity of the stage with
> >> respect to the magnet would follow the coil voltage.  As it is, the coil
> >> has some resistance, so the stage would sorta-kinda act like it's
> >> connected to the magnet via a shock absorber.

Yes.  And for sufficiently low resistance, it is sufficiently close.

(snip)

> I think the response of the speaker is being very oversimplified here. 
> The acceleration of the speaker is still determined by the current in 
> the coil.  This is only changed when the speaker reaches the end of its 
> travel and the spring constant (very small normally) greatly changes 
> along with the damping.

It also changes from the back EMF from the moving cone.

> Until that point, the speaker cone and air are similar to the freely 
> suspended platform, other than the impact of the non-idealities of the 
> enclosure.

So, one difference is a voltage source instead of a current source,
but the other is the result of a DC component.

For the freely suspended case, a small DC component will eventually move the
platform or cone to the limit, or off the end.  In the case of a small spring,
it will move until the spring balances the DC.  If the spring is otherwise small,
the effect will be small at higher frequencies, and small displacements.

(snip, I wrote)

> > As above, for acoustic suspension it is the air in the cabinet, which must
> > be well sealed, that supplies the push back, nice and linear.

> Sealed other than the big hole that is usually provided.  There is 
> little reason to want the air in the cabinet to be a spring as it just 
> creates a resonance with the speaker cone mass.  Better to use a port to 
> allow that sound to merge constructively with the front projected air.

http://www.aes.org/aeshc/docs/recording.technology.history/villchur.html

I still have the AR-11 speakers that I bought in 1980.  I have replaced the
woofers once, and, more recently, just the foam surrounds. 

There are places that sell the foam surrounds for specific speaker models.

http://www.hifiengine.com/manual_library/acoustic-research/ar-11.shtml

The AR-11 is rated down to 27Hz at -8dB (and up to 30kHz). 

And, as usual for acoustic suspension, the bass doesn't fall out all that
fast at lower frequencies.  Especially good for pipe organ music.

> > The other popular design is bass reflex. Speaker system response naturally
> > falls at lower frequencies.  The bass reflex uses a cabinet resonance to lift
> > the response just where it otherwise starts to fall.  The result is more
> > efficient than acoustic suspension, but less linear.

> Yes, well, there *is* that.  ;)

These are the ones with the hole, and usually a tube to get the
resonance in the right place.  The resonance helps the bass just at where
it normally falls of, then it sinks like a rock at even lower frequencies.

(snip, I wrote)

> > I think that is right.  Lower mass is good, which would be higher resonance.
 
> Mass is a trade-off between reducing the force and movement available to 
> move air (heavier cone moves less air) and the stiffness of the cone to 
> prevent bending and resonances within the cone itself (think waves 
> moving across the cone).  Improve one and the other gets worse unless 
> you can find better materials or designs.

For a sealed box, one foot deep, so about like a closed end organ pipe,
the half wave resonance is about 500Hz, so about at the 525Hz crossover.

But yes, low mass and high stiffness are good.

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


#31321

Fromrickman <gnuarm@gmail.com>
Date2016-04-20 04:23 -0400
Message-ID<nf7e3j$scc$1@dont-email.me>
In reply to#31320
On 4/20/2016 2:07 AM, herrmannsfeldt@gmail.com wrote:
> On Tuesday, April 19, 2016 at 9:34:05 PM UTC-7, rickman wrote:
>
>
> (snip, I wrote)
>>> And, as above, speakers have a spring. The edge of the cone, and its coupling
>>> to the frame, has some springiness.  For acoustic suspension speaker systems,
>>> it is the pressure from the air in the cabinet that forms a very linear spring.
>
>> Yes, the air is compressible, but more importantly when the air is moved
>> it has momentum as well as friction.  As Tim pointed out there are also
>> resonances in the enclosure and the speaker parts which make it all much
>> more complex over frequency if you want to define the system in detail.
>
> (Tim, I believe, wrote)
>>>> If the coil were superconducting, then the velocity of the stage with
>>>> respect to the magnet would follow the coil voltage.  As it is, the coil
>>>> has some resistance, so the stage would sorta-kinda act like it's
>>>> connected to the magnet via a shock absorber.
>
> Yes.  And for sufficiently low resistance, it is sufficiently close.
>
> (snip)
>
>> I think the response of the speaker is being very oversimplified here.
>> The acceleration of the speaker is still determined by the current in
>> the coil.  This is only changed when the speaker reaches the end of its
>> travel and the spring constant (very small normally) greatly changes
>> along with the damping.
>
> It also changes from the back EMF from the moving cone.

That may affect the current, but it doesn't affect the fact that the 
current determines the acceleration of the speaker cone.


>> Until that point, the speaker cone and air are similar to the freely
>> suspended platform, other than the impact of the non-idealities of the
>> enclosure.
>
> So, one difference is a voltage source instead of a current source,
> but the other is the result of a DC component.

A difference in the drive, but not a difference in the equations that 
describe the speaker.


> For the freely suspended case, a small DC component will eventually move the
> platform or cone to the limit, or off the end.  In the case of a small spring,
> it will move until the spring balances the DC.  If the spring is otherwise small,
> the effect will be small at higher frequencies, and small displacements.

That is not at all relevant with the speaker since the purpose is moving 
the air to make sound and DC won't do that.


>>> As above, for acoustic suspension it is the air in the cabinet, which must
>>> be well sealed, that supplies the push back, nice and linear.
>
>> Sealed other than the big hole that is usually provided.  There is
>> little reason to want the air in the cabinet to be a spring as it just
>> creates a resonance with the speaker cone mass.  Better to use a port to
>> allow that sound to merge constructively with the front projected air.
>
> http://www.aes.org/aeshc/docs/recording.technology.history/villchur.html
>
> I still have the AR-11 speakers that I bought in 1980.  I have replaced the
> woofers once, and, more recently, just the foam surrounds.
>
> There are places that sell the foam surrounds for specific speaker models.
>
> http://www.hifiengine.com/manual_library/acoustic-research/ar-11.shtml
>
> The AR-11 is rated down to 27Hz at -8dB (and up to 30kHz).
>
> And, as usual for acoustic suspension, the bass doesn't fall out all that
> fast at lower frequencies.  Especially good for pipe organ music.
>
>>> The other popular design is bass reflex. Speaker system response naturally
>>> falls at lower frequencies.  The bass reflex uses a cabinet resonance to lift
>>> the response just where it otherwise starts to fall.  The result is more
>>> efficient than acoustic suspension, but less linear.
>
>> Yes, well, there *is* that.  ;)
>
> These are the ones with the hole, and usually a tube to get the
> resonance in the right place.  The resonance helps the bass just at where
> it normally falls of, then it sinks like a rock at even lower frequencies.
>
> (snip, I wrote)
>
>>> I think that is right.  Lower mass is good, which would be higher resonance.
>
>> Mass is a trade-off between reducing the force and movement available to
>> move air (heavier cone moves less air) and the stiffness of the cone to
>> prevent bending and resonances within the cone itself (think waves
>> moving across the cone).  Improve one and the other gets worse unless
>> you can find better materials or designs.
>
> For a sealed box, one foot deep, so about like a closed end organ pipe,
> the half wave resonance is about 500Hz, so about at the 525Hz crossover.
>
> But yes, low mass and high stiffness are good.

Sure, but they are opposites.  To improve one by changing the amount of 
material you make the other worse.  The only way to improve both is to 
change the material or the shape.

-- 

Rick

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


#31324

Frommakolber@yahoo.com
Date2016-04-20 06:17 -0700
Message-ID<220dc4f0-c393-4a85-bc7c-38f127bcd33b@googlegroups.com>
In reply to#31320
> 
> And, as usual for acoustic suspension, the bass doesn't fall out all that
> fast at lower frequencies.  Especially good for pipe organ music.
> 
> > > The other popular design is bass reflex. Speaker system response naturally
> > > falls at lower frequencies.  The bass reflex uses a cabinet resonance to lift
> > > the response just where it otherwise starts to fall.  The result is more
> > > efficient than acoustic suspension, but less linear.
> 
> > Yes, well, there *is* that.  ;)
> 
> These are the ones with the hole, and usually a tube to get the
> resonance in the right place.  The resonance helps the bass just at where
> it normally falls of, then it sinks like a rock at even lower frequencies.
> 

YES!

I have always prefered the bass sound of a sealed box vs a ported box  to the point where I have sealed the ports of the ported speakers that I own.  This makes the bass roll off more gradual and therefore more ameniable to correction with electrical EQ.   i.e. I prefer the combination of a sealed boax and a graphic EQ boosting the low bass.   Amplifer power is not an issue these days.  It seems that in audio (as in many other applications)  a steep roll-off either on the high end or the low end does not make for good sound.

With all the counteracting factors in play, find it amazing that it works out that the response is nominally flat vs voltage.  It is actually also pretty flat vs current as there are some amplifiers that are designed to act as a current source, typically guitar amps where they like the effect of the undamped resonance.

Interesting discussion.
thanks 
Mark
 
  

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


#31303

FromLes Cargill <lcargill99@comcast.com>
Date2016-04-18 19:50 -0500
Message-ID<nf3v34$28o$1@dont-email.me>
In reply to#31297
Tim Wescott wrote:
> On Mon, 18 Apr 2016 13:43:45 -0700, makolber wrote:
>
>
>>> It's just this sort of thing that I solicit comments for -- things that
>>> are in my blind spots that are glaringly obvious to y'all.
>>>
>>> --
>>>
>>> Tim Wescott Wescott Design Services http://www.wescottdesign.com
>>
>>
>> This question is somewhat OT...
>>
>> For the case of the "speaker" on Page 6....
>>
>>
>> If the ACCELERATION is proportional to the coil CURRENT,  how do we get
>> to the situation in an ordinary "audio speaker" where  I think the
>> DISPLACEMENT is proportional to VOLATGE.
>>
>> And also where a constant VOLTAGE yields a flat SPL response over
>> frequency but with a decreasing DISPACMENT with frequency.
>>
>> Seems fortuitous.
>> Mark
>
> I'm going to tell you what little I know, and then end with an "I dunno".
>
> The _force_ on the coil (really between the coil and magnet) is
> proportional to the coil current, for some range of coil currents.  In
> the given example, the acceleration of the stage is proportional to the
> force because, outside of the bounds of the discussion, some mechanical
> designer sweat a lot of blood to insure that the stage can move freely in
> the desired direction without being affected by external forces.  So
> friction, springiness (arising from cabling) gravity, and a host of other
> effects have all been carefully designed out of the system.
>
> As a consequence of this, the acceleration is strictly proportional to
> the force (until the thing bonks into a stop), which, in turn, is
> strictly proportional to the current.
>

With a nicely designed speaker with a nice enclosure with reasonably 
flat response, the current and voltage have a largely constant 
relationship in the linear range of the speaker system,
for any given frequency.

WinISD draws some nice graphs for a given speaker in a given enclosure.

> Part of making this happen is making sure that whatever the software
> commands is turned into a current, and not a voltage.
>
> A speaker is not driven by a current-output amplifier.  It's driven by a
> voltage-output amplifier: whatever form the input command takes, the
> final amplifier tries to hold the output _voltage_ to the commanded value.
>
> If the coil were superconducting, then the velocity of the stage with
> respect to the magnet would follow the coil voltage.  As it is, the coil
> has some resistance, so the stage would sorta-kinda act like it's
> connected to the magnet via a shock absorber.
>
> I'm not an audio guy, so a lot of what comes after is bloviating.  I'm
> going to say what I know as best as I know it, and then if some audio guy
> comes on and says my picture is incomplete or even erroneous, believe
> them.
>

See also the derivation of the Thiele-Small parameters.

> In a speaker, the coil is connected to a cone that "sees" push-back from
> the air, and from it's suspension (I suspect that the component of force
> from the suspension is as little as can be made to happen, possibly by
> some mechanical guy sweating blood).  Moreover, the cone has mechanical
> resonances (which I'll bet are pushed as high as possible, possibly above
> the rated frequency of the speaker).  So the relationship between the
> applied voltage, the coil velocity, and the sound pressure level is (A)
> complicated, and (B) a closed book to me.
>
> So I'd like some audio guy to elucidate!
>


-- 
Les Cargill

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


#31304

Fromherrmannsfeldt@gmail.com
Date2016-04-18 20:01 -0700
Message-ID<e47b944d-c1d2-4e11-8030-ef93d8445ffa@googlegroups.com>
In reply to#31297
On Monday, April 18, 2016 at 2:24:31 PM UTC-7, Tim Wescott wrote:

(snip)

> In a speaker, the coil is connected to a cone that "sees" push-back from 
> the air, and from it's suspension (I suspect that the component of force 
> from the suspension is as little as can be made to happen, possibly by 
> some mechanical guy sweating blood).  Moreover, the cone has mechanical 
> resonances (which I'll bet are pushed as high as possible, possibly above 
> the rated frequency of the speaker).  So the relationship between the 
> applied voltage, the coil velocity, and the sound pressure level is (A) 
> complicated, and (B) a closed book to me.

To continue this, and unconfuse some things from a previous post ...

Sound waves are commonly considered as pressure-displacement waves, which is
a little unusual.

The usual waves in physics come when two quantities are interdependent, such that
each has a dependence (usually) on the derivative of the other.  In addition, it is
usual to consider one quantity as generating a potential energy, and the other as 
kinetic energy, though not always uniquely.

In the early days of electronics, it was usual to use mechanical analogies to
understand RLC systems.  Now, it is more usual to use the electronic analogy
to understand mechanical mass, spring, friction systems.  (Partly because mechanical
friction is harder to understand than resistance.)

For the one most commonly known here, an EM wave down a transmission line, there is:

I = C dV/dt and V=L dI/dt, with V(x, t) and I(x, t) the voltage and current at a given
spot on the line.    Consider a small piece of cable, with C=c dx and L=l dx,
where c and l are capacitance per unit length, and inductance per unit length,
and in the end, limit as dx --> 0.

Consider the line as infinitely small capacitors connected together by infinitely
short inductors.  dV/dx=l dI/dt  (from C = c dx, and moving the dx),
and dI/dx=c dV/dt  (where these are now partial derivatives, but I don't have
the right d on the keyboard.)

now d2i/dx2=c d2V/dxdt = cl d2i/dt2, and similarly for V.  The wave velocity
is inverse square root of the product of c and l.  Interestingly, for coaxial capacitors
and inductors with vacuum dielectric, the velocity comes out c.

But sound waves are commonly described in terms of pressure and displacement,
instead of pressure and the derivative of displacement.  The result is that the
factor of frequency that I expected isn't there. Displacement and pressure are
proportional.  

The other  one I didn't explain right previously is the frequency dependence of the
connection between speakers and sound.  A moving cone does not make a good
impedance match to air, and, for a given size, the match decreases with decreasing
frequency.  This is where the bass drop of comes from that bass reflex systems
try to correct.  Horn type speakers use the horn to improve the impedance match,
similar to the way that a passive cone megaphone improves the impedance
match between our voice and the ambient air. 

The poor impedance match for a cone speaker is also why the ambient air isn't
the most important part of the restoring force. (Except, possibly, in horn designs.)

But as to the original question, it is voltage (and current) proportional to 
displacement, not to acceleration, at least under the ideal assumptions,
such as low mass cone. 

 

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


#31308

FromNobody <nobody@nowhere.invalid>
Date2016-04-19 12:37 +0100
Message-ID<pan.2016.04.19.11.37.42.812000@nowhere.invalid>
In reply to#31296
On Mon, 18 Apr 2016 13:43:45 -0700, makolber wrote:

> For the case of the "speaker" on Page 6....
> 
> 
> If the ACCELERATION is proportional to the coil CURRENT,  how do we get to
> the situation in an ordinary "audio speaker" where  I think the
> DISPLACEMENT is proportional to VOLATGE.

A loudspeaker contains both a voice coil and a spring (the diaphragm).

The force produced by the voice coil is proportional to current.

Fc = Kc*I

The force produced by the spring is proportional to (and opposing) the
displacement.

Fs = -Ks*x

The acceleration is proportional to the sum of these.

d^2x/dt^2 = (Fc+Fs)/M = (Kc*I-Ks*x)/M

There exists an equilibrium point where this is zero, i.e. where

Kc*I-Ks*x = 0 => Kc*I=Ks*x => x = (Kc/Ks)*I

i.e. displacement is proportional to current.

In the equilibrium state, current is proportional to voltage. When the
coil is moving, there's also back-EMF which is proportional to velocity.

I = (V-Ve)/R = (V-Ke*dx/dt)/R

The net result is that you have the classic second-order differential
equation for damped harmonic motion.

M*d^2x/dt^2
 = Fc + Fs
 = Kc*I - Ks*x
 = Kc*(V - Ke*dx/dt)/R - Ks*x
 = (Kc/R)*V - (Ke*Kc/R)*dx/dt - Ks*x
=> M*d^2x/dt^2 + (Ke*Kc/R)*dx/dt + Ks*x - (Kc/R)*V = 0

Note that when the first and second derivatives are zero (the equilibrium
state), you get (Ks/M)*x = (Kc/R/M)*V => x = (Kc/Ks)*V/R.

All this basically means that the displacement is proportional to the
result of applying a second-order low-pass filter to the voltage. You can
construct an exact analogue of the above equations using an RLC filter.

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


#31316

Fromherrmannsfeldt@gmail.com
Date2016-04-19 11:45 -0700
Message-ID<cf2cccb7-3da5-481f-a064-6d8dda7a2a48@googlegroups.com>
In reply to#31308
On Tuesday, April 19, 2016 at 4:36:36 AM UTC-7, Nobody wrote:
> On Mon, 18 Apr 2016 13:43:45 -0700, makolber wrote:

(snip)
> > If the ACCELERATION is proportional to the coil CURRENT,  how do we get to
> > the situation in an ordinary "audio speaker" where  I think the
> > DISPLACEMENT is proportional to VOLATGE.

> A loudspeaker contains both a voice coil and a spring (the diaphragm).

> The force produced by the voice coil is proportional to current.
 
> Fc = Kc*I
 
> The force produced by the spring is proportional to (and opposing) the
> displacement.
 
> Fs = -Ks*x
 
> The acceleration is proportional to the sum of these.
 
> d^2x/dt^2 = (Fc+Fs)/M = (Kc*I-Ks*x)/M
 
> There exists an equilibrium point where this is zero, i.e. where
 
> Kc*I-Ks*x = 0 => Kc*I=Ks*x => x = (Kc/Ks)*I
 
> i.e. displacement is proportional to current.
 
> In the equilibrium state, current is proportional to voltage. When the
> coil is moving, there's also back-EMF which is proportional to velocity.
 
> I = (V-Ve)/R = (V-Ke*dx/dt)/R
 
> The net result is that you have the classic second-order differential
> equation for damped harmonic motion.
 
> M*d^2x/dt^2
>  = Fc + Fs
>  = Kc*I - Ks*x
>  = Kc*(V - Ke*dx/dt)/R - Ks*x
>  = (Kc/R)*V - (Ke*Kc/R)*dx/dt - Ks*x
> => M*d^2x/dt^2 + (Ke*Kc/R)*dx/dt + Ks*x - (Kc/R)*V = 0
 
> Note that when the first and second derivatives are zero (the equilibrium
> state), you get (Ks/M)*x = (Kc/R/M)*V => x = (Kc/Ks)*V/R.

There should be damping terms for mechanical friction in addition
to electrical friction (resistance), but yes.
 
> All this basically means that the displacement is proportional to the
> result of applying a second-order low-pass filter to the voltage. You can
> construct an exact analogue of the above equations using an RLC filter.

I once knew a physics exam problem which connected an ideal motor
(torque proportional to current, angular velocity proportional to voltage)
to a spring and mass.  (As well as I remember, no friction/damping term.)

If you consider just the mass, applying a current generates a torque which
accelerates the mass, and generates a voltage, so dV/dt is proportional to I.

With just a spring, you have torque proportional to rotation (angular displacement),
or dI/dt proportional to d torque/dt proportional to angular velocity proportional
to voltage.

From the electrical side, I=C dV/dt and V=L dI/dt, so the mass looks like a capacitor,
and the spring like an inductor, which appropriate proportionality constants.

Interesting, as the usual analogy between RLC circuits and spring/mass systems,
is to consider the mass as L and spring as C. 

Reminds me also of a physics demonstration, comparing sound waves in open and
closed end tubes to electrical waves in open and shorted end coaxial cables.

At the end of the demonstration, the analogy was backwards, comparing the voltage
on the cable to the pressure of the sound wave.

At the next lecture, there was the same demonstration, with a current probe on the
oscilloscope, to make the analogy right.  That is, closed end tube is analogous to 
a shorted transmission line if pressure  is analogous to current.

The equations are symmetric, and you can generate the dual problem by exchanging
the variables. 

But anyway, the reason for the long analogy discussion is that the electrical impedance
of a speaker depends on its mechanical properties.  The case previously discussed
used an ideal current source, or an ideal voltage source and constant resistance.

In addition, there is actual inductance due to the coil winding. Capacitance, too,
but that should be pretty small. 

And that is only the linear terms.  There is an end effect as the speaker voice
coil moves away from the center of the magnet, and also change in inductance
at the same time. At large displacements, the force is not proportional to 
current anymore.

All speakers that I know of have at least a little springiness.

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


#31335

FromMac Decman <dearman.mark@gmail.com>
Date2016-04-21 21:16 -0700
Message-ID<399jhbh728vv2e4jr3ffrib9f45c0rbeuc@4ax.com>
In reply to#31296
On Mon, 18 Apr 2016 13:43:45 -0700 (PDT), makolber@yahoo.com wrote:

>
>> 
>> It's just this sort of thing that I solicit comments for -- things that 
>> are in my blind spots that are glaringly obvious to y'all.
>> 
>> -- 
>> 
>> Tim Wescott
>> Wescott Design Services
>> http://www.wescottdesign.com
>
>
>This question is somewhat OT...
>
>For the case of the "speaker" on Page 6....
>
>
>If the ACCELERATION is proportional to the coil CURRENT,  how do we get to the situation in an ordinary "audio speaker" where  I think the DISPLACEMENT is proportional to VOLATGE.  
>
>And also where a constant VOLTAGE yields a flat SPL response over frequency but with a decreasing DISPACMENT with frequency.
>
>Seems fortuitous.
>Mark
>
>    

OT
I'm not sure if you have access to AES Journal , but this pull your
hair out gem was published, I kid you not, 'Today'.

http://www.aes.org/e-lib/browse.cfm?elib=18132

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


#31339

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-04-22 11:47 -0500
Message-ID<BpWdnRZuCJsLyIfKnZ2dnUU7-bmdnZ2d@giganews.com>
In reply to#31335
On Thu, 21 Apr 2016 21:16:20 -0700, Mac Decman wrote:

> On Mon, 18 Apr 2016 13:43:45 -0700 (PDT), makolber@yahoo.com wrote:
> 
> 
>>
>>> It's just this sort of thing that I solicit comments for -- things
>>> that are in my blind spots that are glaringly obvious to y'all.
>>> 
>>> --
>>> 
>>> Tim Wescott Wescott Design Services http://www.wescottdesign.com
>>
>>
>>This question is somewhat OT...
>>
>>For the case of the "speaker" on Page 6....
>>
>>
>>If the ACCELERATION is proportional to the coil CURRENT,  how do we get
>>to the situation in an ordinary "audio speaker" where  I think the
>>DISPLACEMENT is proportional to VOLATGE.
>>
>>And also where a constant VOLTAGE yields a flat SPL response over
>>frequency but with a decreasing DISPACMENT with frequency.
>>
>>Seems fortuitous.
>>Mark
>>
>>
>>    
> OT I'm not sure if you have access to AES Journal , but this pull your
> hair out gem was published, I kid you not, 'Today'.
> 
> http://www.aes.org/e-lib/browse.cfm?elib=18132

I'm not sure what had you pulling your hair out, unless it was the 
assertion that a more efficient, lower-resistance coil had a higher low-
frequency cut-off, and that a higher low-frequency cutoff is good -- the 
way that reads I almost think that someone had a brain-fart and replaced 
"lower" with "higher".

-- 

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

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


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

Back to top | Article view | comp.dsp


csiph-web