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


Groups > sci.electronics.design > #493316 > unrolled thread

Dumpy filter

Started bybitrex <bitrex@de.lete.earthlink.net>
First post2018-02-01 18:14 -0500
Last post2018-02-02 01:46 -0600
Articles 20 on this page of 50 — 17 participants

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


Contents

  Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-01 18:14 -0500
    Re: Dumpy filter Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2018-02-01 16:58 -0700
      Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-01 19:18 -0500
        Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-01 19:25 -0500
          Re: Dumpy filter Pimpom <Pimpom@invalid.com> - 2018-02-02 10:48 +0530
            Re: Dumpy filter piglet <erichpwagner@hotmail.com> - 2018-02-04 21:48 +0000
              Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-04 18:13 -0500
              Re: Dumpy filter Don Kuenz <g@crcomp.net> - 2018-02-05 17:05 +0000
                Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-05 16:03 -0500
                  Re: Dumpy filter Don Kuenz <g@crcomp.net> - 2018-02-06 02:25 +0000
                    Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-05 23:13 -0500
                      Re: Dumpy filter tabbypurr@gmail.com - 2018-02-06 02:14 -0800
                        Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-06 09:34 -0500
                          Re: Dumpy filter tabbypurr@gmail.com - 2018-02-06 06:48 -0800
                            Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-06 10:04 -0500
                              Re: Dumpy filter tabbypurr@gmail.com - 2018-02-06 13:59 -0800
                                Re: Dumpy filter Clifford Heath <no.spam@please.net> - 2018-02-08 19:08 +1100
                                  Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-08 11:05 -0500
                                    Re: Dumpy filter krw@notreal.com - 2018-02-08 12:36 -0500
                                      Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-08 19:32 -0500
                                        Re: Dumpy filter krw@notreal.com - 2018-02-08 20:12 -0500
                                          Re: Dumpy filter bill.sloman@ieee.org - 2018-02-09 05:27 -0800
      Re: Dumpy filter bill.sloman@ieee.org - 2018-02-01 18:06 -0800
        Re: Dumpy filter Lasse Langwadt Christensen <langwadt@fonz.dk> - 2018-02-01 18:16 -0800
          Re: Dumpy filter Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2018-02-01 21:28 -0700
            Re: Dumpy filter Jasen Betts <jasen@xnet.co.nz> - 2018-02-02 05:10 +0000
              Re: Dumpy filter krw@notreal.com - 2018-02-02 00:58 -0500
            Re: Dumpy filter bill.sloman@ieee.org - 2018-02-02 06:25 -0800
              Re: Dumpy filter bill.sloman@ieee.org - 2018-02-02 18:43 -0800
                Re: Dumpy filter bill.sloman@ieee.org - 2018-02-03 15:34 -0800
                  Re: Dumpy filter Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2018-02-03 17:23 -0700
                    Re: Dumpy filter bill.sloman@ieee.org - 2018-02-03 17:01 -0800
        Re: Dumpy filter David Brown <david.brown@hesbynett.no> - 2018-02-02 13:29 +0100
          Re: Dumpy filter bill.sloman@ieee.org - 2018-02-02 18:50 -0800
            Re: Dumpy filter David Brown <david.brown@hesbynett.no> - 2018-02-05 13:23 +0100
              Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-05 08:45 -0500
              Re: Dumpy filter bill.sloman@ieee.org - 2018-02-05 13:58 -0800
    Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-01 19:30 -0500
      Re: Dumpy filter Winfield Hill <hill@rowland.harvard.edu> - 2018-02-01 18:45 -0800
        Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-01 21:56 -0500
    Re: Dumpy filter George Herold <gherold@teachspin.com> - 2018-02-01 16:40 -0800
      Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-01 20:00 -0500
        Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-01 20:02 -0500
      Re: Dumpy filter bill.sloman@ieee.org - 2018-02-01 18:16 -0800
    Re: Dumpy filter John Larkin <jjlarkin@highland_snip_technology.com> - 2018-02-01 17:54 -0800
      Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-01 21:16 -0500
      Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-01 21:30 -0500
        Re: Dumpy filter Mike Perkins <spam@spam.com> - 2018-02-02 11:28 +0000
          Re: Dumpy filter bitrex <bitrex@de.lete.earthlink.net> - 2018-02-02 08:28 -0500
    Re: Dumpy filter "Tim Williams" <tiwill@seventransistorlabs.com> - 2018-02-02 01:46 -0600

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


#494427

Fromkrw@notreal.com
Date2018-02-08 20:12 -0500
Message-ID<vatp7d1l92qmcibes2lutj69uec4dr1143@4ax.com>
In reply to#494423
On Thu, 8 Feb 2018 19:32:02 -0500, bitrex
<bitrex@de.lete.earthlink.net> wrote:

>On 02/08/2018 12:36 PM, krw@notreal.com wrote:
>> On Thu, 8 Feb 2018 11:05:12 -0500, bitrex
>> <bitrex@de.lete.earthlink.net> wrote:
>> 
>>> On 02/08/2018 03:08 AM, Clifford Heath wrote:
>>>> On 07/02/18 08:59, tabbypurr@gmail.com wrote:
>>>>> On Tuesday, 6 February 2018 15:04:30 UTC, bitrex  wrote:
>>>>>> On 02/06/2018 09:48 AM, tabbypurr wrote:
>>>>>>> On Tuesday, 6 February 2018 14:34:58 UTC, bitrex  wrote:
>>>>>>>> On 02/06/2018 05:14 AM, tabbypurr wrote:
>>>>>>>>> On Tuesday, 6 February 2018 04:13:41 UTC, bitrex  wrote:
>>>>>
>>>>>>>>>> Why not try editing the page? "Encyclopedia anyone can edit" and
>>>>>>>>>> all that.
>>>>>>>>>
>>>>>>>>> Years ago I did that, fixing some really silly errors on a page.
>>>>>>>>> An editor reversed them all right away, insisting that because he
>>>>>>>>> had found some barmy book claiming that nearly all electronic
>>>>>>>>> profucts were based on valves in the 1980s, they must be and he
>>>>>>>>> 'corrected' that point and similar others, for some deluded value
>>>>>>>>> of corrected. Wiki really needs to grow a pair and ban idiots like
>>>>>>>>> that. It needs some resident subject experts who can ban the very
>>>>>>>>> out there & destructive individuals, but not overreach so as to
>>>>>>>>> interfere with the legitimate editing process.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> NT
>>>>>>>>>
>>>>>>>>
>>>>>>>> Yeah I've heard of that happening and it sucks, I've made a few
>>>>>>>> anonymous edits in the past and they seemed to have been accepted
>>>>>>>> OK so
>>>>>>>> I guess it's a hit-or-miss situation depending on the personality of
>>>>>>>> whomever is "guarding" the page or if anyone cares that much or not.
>>>>>>>>
>>>>>>>> At least when it comes to "self-policing" online communities what
>>>>>>>> usually happens is that they attract pathological types whose primary
>>>>>>>> desire is to be a big-shot who backs up and is backed up by other big
>>>>>>>> shots and eventually they run the actual expects (who tend to be more
>>>>>>>> equitable) out on a rail with their drama-producing behavior - actual
>>>>>>>> experts have better things to do with their time.
>>>>>>>>
>>>>>>>> That said Wikipedia I think it's remarkable how valuable a resource
>>>>>>>> Wikipedia can be given that its "model" was very optimistic and
>>>>>>>> doesn't
>>>>>>>> really make much sense now.
>>>>>>>
>>>>>>> Some good points. Wiki has done remarkably well, with as you say a
>>>>>>> rather optimistic model. It's a useful first place to look for many
>>>>>>> things, but only that. Now it's the time for Wiki to decide whether
>>>>>>> it wants to up its game or carry on with deluded idiots sitting on
>>>>>>> some pages here & there. I think it'll continue doing the latter.
>>>>>>>
>>>>>>>
>>>>>>> NT
>>>>>>>
>>>>>>
>>>>>> Probably the latter, but I think the reason is just for Pareto-principle
>>>>>> time and budget constraints. You can stamp out 80% of the poseurs and
>>>>>> trolls and pranksters without too much effort, but the last 20% proves
>>>>>> intransigent and starts exponentially sucking energy when you try to
>>>>>> take them on. Maybe best to wall them into their little kingdoms like
>>>>>> the Cask of Amontillado and hope they get bored/institutionalized.
>>>>>> "Better is the enemy of good enough" and all that
>>>>>
>>>>> There are already many articles where editing is restricted. Adding a
>>>>> few topic experts purely to keep out the most extreme loons would be
>>>>> quite doable - that could leave them access to all the unimportant
>>>>> stuff, ie fiction, tv programs & similar stuff.
>>>>
>>>> By far the better way is to accept edits from the extreme loons,
>>>> but only ever show those edits to their authors. That way they
>>>> feel satisfied that their weird opinions are being noticed, but
>>>> nobody else does.
>>>>
>>>> Clifford Heath.
>>>
>>> Ya, that's called "shadow banning" or "ghost banning." Historically a
>>> popular tool on Reddit and with censors in the People's Republic of China
>> 
>> ,Facebook, and other Communist controlled communication channels.
>> Don't need no steenkin' free speech.  Snowflakes can't handle it.
>> 
>
>They aren't a Communist-controlled communication channel, they're a 
>corporate-controlled communication channel. Nobody's forcing anyone at 
>gunpoint to be there. You don't like it, leave.

Communist, Nazi, same difference.

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


#494481

Frombill.sloman@ieee.org
Date2018-02-09 05:27 -0800
Message-ID<a1c4ca4c-9baf-4fe9-a5a8-e829b3da2e29@googlegroups.com>
In reply to#494427
On Friday, February 9, 2018 at 12:12:39 PM UTC+11, k...@notreal.com wrote:
> On Thu, 8 Feb 2018 19:32:02 -0500, bitrex
> <bitrex@de.lete.earthlink.net> wrote:
> 
> >On 02/08/2018 12:36 PM, krw@notreal.com wrote:
> >> On Thu, 8 Feb 2018 11:05:12 -0500, bitrex
> >> <bitrex@de.lete.earthlink.net> wrote:
> >> 
> >>> On 02/08/2018 03:08 AM, Clifford Heath wrote:
> >>>> On 07/02/18 08:59, tabbypurr@gmail.com wrote:
> >>>>> On Tuesday, 6 February 2018 15:04:30 UTC, bitrex  wrote:
> >>>>>> On 02/06/2018 09:48 AM, tabbypurr wrote:
> >>>>>>> On Tuesday, 6 February 2018 14:34:58 UTC, bitrex  wrote:
> >>>>>>>> On 02/06/2018 05:14 AM, tabbypurr wrote:
> >>>>>>>>> On Tuesday, 6 February 2018 04:13:41 UTC, bitrex  wrote:
> >>>>>
> >>>>>>>>>> Why not try editing the page? "Encyclopedia anyone can edit" and
> >>>>>>>>>> all that.
> >>>>>>>>>
> >>>>>>>>> Years ago I did that, fixing some really silly errors on a page.
> >>>>>>>>> An editor reversed them all right away, insisting that because he
> >>>>>>>>> had found some barmy book claiming that nearly all electronic
> >>>>>>>>> profucts were based on valves in the 1980s, they must be and he
> >>>>>>>>> 'corrected' that point and similar others, for some deluded value
> >>>>>>>>> of corrected. Wiki really needs to grow a pair and ban idiots like
> >>>>>>>>> that. It needs some resident subject experts who can ban the very
> >>>>>>>>> out there & destructive individuals, but not overreach so as to
> >>>>>>>>> interfere with the legitimate editing process.
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> NT
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>> Yeah I've heard of that happening and it sucks, I've made a few
> >>>>>>>> anonymous edits in the past and they seemed to have been accepted
> >>>>>>>> OK so
> >>>>>>>> I guess it's a hit-or-miss situation depending on the personality of
> >>>>>>>> whomever is "guarding" the page or if anyone cares that much or not.
> >>>>>>>>
> >>>>>>>> At least when it comes to "self-policing" online communities what
> >>>>>>>> usually happens is that they attract pathological types whose primary
> >>>>>>>> desire is to be a big-shot who backs up and is backed up by other big
> >>>>>>>> shots and eventually they run the actual expects (who tend to be more
> >>>>>>>> equitable) out on a rail with their drama-producing behavior - actual
> >>>>>>>> experts have better things to do with their time.
> >>>>>>>>
> >>>>>>>> That said Wikipedia I think it's remarkable how valuable a resource
> >>>>>>>> Wikipedia can be given that its "model" was very optimistic and
> >>>>>>>> doesn't
> >>>>>>>> really make much sense now.
> >>>>>>>
> >>>>>>> Some good points. Wiki has done remarkably well, with as you say a
> >>>>>>> rather optimistic model. It's a useful first place to look for many
> >>>>>>> things, but only that. Now it's the time for Wiki to decide whether
> >>>>>>> it wants to up its game or carry on with deluded idiots sitting on
> >>>>>>> some pages here & there. I think it'll continue doing the latter.
> >>>>>>>
> >>>>>>>
> >>>>>>> NT
> >>>>>>>
> >>>>>>
> >>>>>> Probably the latter, but I think the reason is just for Pareto-
> >>>>>> principle time and budget constraints. You can stamp out 80% of the 
> >>>>>> poseurs and trolls and pranksters without too much effort, but the last 
> >>>>>> 20% proves intransigent and starts exponentially sucking energy when 
> >>>>>> you try to take them on. Maybe best to wall them into their little 
> >>>>>> kingdoms like the Cask of Amontillado and hope they get 
> >>>>>> bored/institutionalized. "Better is the enemy of good enough" and all 
> >>>>>> that.
> >>>>>
> >>>>> There are already many articles where editing is restricted. Adding a
> >>>>> few topic experts purely to keep out the most extreme loons would be
> >>>>> quite doable - that could leave them access to all the unimportant
> >>>>> stuff, ie fiction, tv programs & similar stuff.
> >>>>
> >>>> By far the better way is to accept edits from the extreme loons,
> >>>> but only ever show those edits to their authors. That way they
> >>>> feel satisfied that their weird opinions are being noticed, but
> >>>> nobody else does.
> >>>
> >>> Ya, that's called "shadow banning" or "ghost banning." Historically a
> >>> popular tool on Reddit and with censors in the People's Republic of China
> >> 
> >> Facebook, and other Communist controlled communication channels.
> >> Don't need no steenkin' free speech.  Snowflakes can't handle it.
> >> 
> >
> >They aren't a Communist-controlled communication channel, they're a 
> >corporate-controlled communication channel. Nobody's forcing anyone at 
> >gunpoint to be there. You don't like it, leave.
> 
> Communist, Nazi, same difference.

Krw isn't great on distinguishing between things he doesn't like. 

The Nazi's were specifically anti-semitic. Stalin's communists didn't like Jews much, but they didn't put them into gas-ovens. 

The German corporations were pro-Nazi - as was Henry Ford - largely because Nazi storm-troopers were prepared to beat up trade unionists. Communism idealised trade unions, not that they let them strike for higher wages or better working conditions. Of course you couldn't be trade union official unless you were a party member and subject to party discipline, so you got beaten up for not conforming to party discipline, which is obviously completely different.

Facebook might like a Hitler - if one showed up - but they don't seem all that fond of Trump, so they probably aren't all that Nazi.

-- 
Bill Sloman, Sydney

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


#493345

Frombill.sloman@ieee.org
Date2018-02-01 18:06 -0800
Message-ID<84711603-65c9-489e-a5bc-3177128abed0@googlegroups.com>
In reply to#493326
On Friday, February 2, 2018 at 10:58:15 AM UTC+11, Jim Thompson wrote:
> On Thu, 1 Feb 2018 18:14:36 -0500, bitrex
> <bitrex@de.lete.earthlink.net> wrote:
> 
> >Filtering 0-5V 1kHz PWM square wave to get ~1 volt to 10 volts DC output 
> >proportional to duty cycle, an LM386 as two-pole Sallen Key 
> >"Busselworth" filter:
> >
> ><https://imgur.com/a/XcDCC>
> >
> >Faster settling and better drive current than an RC filter, almost as 
> >cheap. It's not glamorous but gets the job done
> 
> I'm so-o-o-o unimpressed.
> 
> At least three (maybe six ;-) of us here could output a DC level
> proportional to duty-cycle ON A CYCLE-BY-CYCLE BASIS.

Use a pair of counters to evaluate the duty cycle over one cycle, digital number crunching to turn that into a number, and a D/A converter to push out that voltage over the next cycle. If the period of waveform being looked at is stable, you can use a phase-locked loop to lock the period-counting clock to some (high) multiple of the frequency of the waveform being looked at, and save yourself the digital number crunching.

It's really only practical in an ASIC, which is to say for high volume applications (which are the only ones Jim get to hear about).

A fast-settling multi-pole low pass filter can do almost as good a job in most application.

Taylor and Williams list some equi-ripple approximations to the perfect fast-settling filter which give better carrier attenuation at the price of small excursions from the ideal phase-versus-frequency plot. 

-- 
Bill Sloman, Sydney

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


#493352

FromLasse Langwadt Christensen <langwadt@fonz.dk>
Date2018-02-01 18:16 -0800
Message-ID<6d7256f2-a635-45bc-b1bf-5c721d1a9c6b@googlegroups.com>
In reply to#493345
Den fredag den 2. februar 2018 kl. 03.06.20 UTC+1 skrev bill....@ieee.org:
> On Friday, February 2, 2018 at 10:58:15 AM UTC+11, Jim Thompson wrote:
> > On Thu, 1 Feb 2018 18:14:36 -0500, bitrex
> > <bitrex@de.lete.earthlink.net> wrote:
> > 
> > >Filtering 0-5V 1kHz PWM square wave to get ~1 volt to 10 volts DC output 
> > >proportional to duty cycle, an LM386 as two-pole Sallen Key 
> > >"Busselworth" filter:
> > >
> > ><https://imgur.com/a/XcDCC>
> > >
> > >Faster settling and better drive current than an RC filter, almost as 
> > >cheap. It's not glamorous but gets the job done
> > 
> > I'm so-o-o-o unimpressed.
> > 
> > At least three (maybe six ;-) of us here could output a DC level
> > proportional to duty-cycle ON A CYCLE-BY-CYCLE BASIS.
> 
> Use a pair of counters to evaluate the duty cycle over one cycle, digital number crunching to turn that into a number, and a D/A converter to push out that voltage over the next cycle. If the period of waveform being looked at is stable, you can use a phase-locked loop to lock the period-counting clock to some (high) multiple of the frequency of the waveform being looked at, and save yourself the digital number crunching.
> 

https://en.wikipedia.org/wiki/Rube_Goldberg_machine

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


#493378

FromJim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>
Date2018-02-01 21:28 -0700
Message-ID<j5q77dpplgd0hdft1tbahg3hdach5jj5kq@4ax.com>
In reply to#493352
On Thu, 1 Feb 2018 18:16:44 -0800 (PST), Lasse Langwadt Christensen
<langwadt@fonz.dk> wrote:

>Den fredag den 2. februar 2018 kl. 03.06.20 UTC+1 skrev bill....@ieee.org:
>> On Friday, February 2, 2018 at 10:58:15 AM UTC+11, Jim Thompson wrote:
>> > On Thu, 1 Feb 2018 18:14:36 -0500, bitrex
>> > <bitrex@de.lete.earthlink.net> wrote:
>> > 
>> > >Filtering 0-5V 1kHz PWM square wave to get ~1 volt to 10 volts DC output 
>> > >proportional to duty cycle, an LM386 as two-pole Sallen Key 
>> > >"Busselworth" filter:
>> > >
>> > ><https://imgur.com/a/XcDCC>
>> > >
>> > >Faster settling and better drive current than an RC filter, almost as 
>> > >cheap. It's not glamorous but gets the job done
>> > 
>> > I'm so-o-o-o unimpressed.
>> > 
>> > At least three (maybe six ;-) of us here could output a DC level
>> > proportional to duty-cycle ON A CYCLE-BY-CYCLE BASIS.
>> 
>> Use a pair of counters to evaluate the duty cycle over one cycle, digital number crunching to turn that into a number, and a D/A converter to push out that voltage over the next cycle. If the period of waveform being looked at is stable, you can use a phase-locked loop to lock the period-counting clock to some (high) multiple of the frequency of the waveform being looked at, and save yourself the digital number crunching.
>> 
>
>https://en.wikipedia.org/wiki/Rube_Goldberg_machine

Leave it to Slowman to not see the obvious (and easy) analog solution.
		
                                        ...Jim Thompson
-- 
| James E.Thompson                                 |    mens     |
| Analog Innovations                               |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| STV, Queen Creek, AZ 85142    Skype: skypeanalog |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
     It's what you learn, after you know it all, that counts.

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


#493383

FromJasen Betts <jasen@xnet.co.nz>
Date2018-02-02 05:10 +0000
Message-ID<p50rst$2c9$1@gonzo.alcatraz>
In reply to#493378
On 2018-02-02, Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:
> On Thu, 1 Feb 2018 18:16:44 -0800 (PST), Lasse Langwadt Christensen
><langwadt@fonz.dk> wrote:
>
>>Den fredag den 2. februar 2018 kl. 03.06.20 UTC+1 skrev bill....@ieee.org:
>>> On Friday, February 2, 2018 at 10:58:15 AM UTC+11, Jim Thompson wrote:
>>> > On Thu, 1 Feb 2018 18:14:36 -0500, bitrex
>>> > <bitrex@de.lete.earthlink.net> wrote:
>>> > 
>>> > >Filtering 0-5V 1kHz PWM square wave to get ~1 volt to 10 volts DC output 
>>> > >proportional to duty cycle, an LM386 as two-pole Sallen Key 
>>> > >"Busselworth" filter:
>>> > >
>>> > ><https://imgur.com/a/XcDCC>
>>> > >
>>> > >Faster settling and better drive current than an RC filter, almost as 
>>> > >cheap. It's not glamorous but gets the job done
>>> > 
>>> > I'm so-o-o-o unimpressed.
>>> > 
>>> > At least three (maybe six ;-) of us here could output a DC level
>>> > proportional to duty-cycle ON A CYCLE-BY-CYCLE BASIS.
>>> 
>>> Use a pair of counters to evaluate the duty cycle over one cycle, digital number crunching to turn that into a number, and a D/A converter to push out that voltage over the next cycle. If the period of waveform being looked at is stable, you can use a phase-locked loop to lock the period-counting clock to some (high) multiple of the frequency of the waveform being looked at, and save yourself the digital number crunching.
>>> 
>>
>>https://en.wikipedia.org/wiki/Rube_Goldberg_machine
>
> Leave it to Slowman to not see the obvious (and easy) analog solution.

a ramp and a sample and hold triggered on opposite edges, but how do you get 
the right slope?  are you relying on the signal being exactly 1kHz?

-- 
This email has not been checked by half-arsed antivirus software 

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


#493391

Fromkrw@notreal.com
Date2018-02-02 00:58 -0500
Message-ID<rdv77d1fh5acistvbgdrseeakntrdgpi53@4ax.com>
In reply to#493383
On 2 Feb 2018 05:10:53 GMT, Jasen Betts <jasen@xnet.co.nz> wrote:

>On 2018-02-02, Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> wrote:
>> On Thu, 1 Feb 2018 18:16:44 -0800 (PST), Lasse Langwadt Christensen
>><langwadt@fonz.dk> wrote:
>>
>>>Den fredag den 2. februar 2018 kl. 03.06.20 UTC+1 skrev bill....@ieee.org:
>>>> On Friday, February 2, 2018 at 10:58:15 AM UTC+11, Jim Thompson wrote:
>>>> > On Thu, 1 Feb 2018 18:14:36 -0500, bitrex
>>>> > <bitrex@de.lete.earthlink.net> wrote:
>>>> > 
>>>> > >Filtering 0-5V 1kHz PWM square wave to get ~1 volt to 10 volts DC output 
>>>> > >proportional to duty cycle, an LM386 as two-pole Sallen Key 
>>>> > >"Busselworth" filter:
>>>> > >
>>>> > ><https://imgur.com/a/XcDCC>
>>>> > >
>>>> > >Faster settling and better drive current than an RC filter, almost as 
>>>> > >cheap. It's not glamorous but gets the job done
>>>> > 
>>>> > I'm so-o-o-o unimpressed.
>>>> > 
>>>> > At least three (maybe six ;-) of us here could output a DC level
>>>> > proportional to duty-cycle ON A CYCLE-BY-CYCLE BASIS.
>>>> 
>>>> Use a pair of counters to evaluate the duty cycle over one cycle, digital number crunching to turn that into a number, and a D/A converter to push out that voltage over the next cycle. If the period of waveform being looked at is stable, you can use a phase-locked loop to lock the period-counting clock to some (high) multiple of the frequency of the waveform being looked at, and save yourself the digital number crunching.
>>>> 
>>>
>>>https://en.wikipedia.org/wiki/Rube_Goldberg_machine
>>
>> Leave it to Slowman to not see the obvious (and easy) analog solution.
>
>a ramp and a sample and hold triggered on opposite edges, but how do you get 
>the right slope?  are you relying on the signal being exactly 1kHz?

If you use both edges (dual slope) do you care?

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


#493423

Frombill.sloman@ieee.org
Date2018-02-02 06:25 -0800
Message-ID<0892a1aa-7d14-4a22-8a1d-cd7bdc73451d@googlegroups.com>
In reply to#493378
On Friday, February 2, 2018 at 3:28:23 PM UTC+11, Jim Thompson wrote:
> On Thu, 1 Feb 2018 18:16:44 -0800 (PST), Lasse Langwadt Christensen
> <langwadt@fonz.dk> wrote:
> 
> >Den fredag den 2. februar 2018 kl. 03.06.20 UTC+1 skrev bill....@ieee.org:
> >> On Friday, February 2, 2018 at 10:58:15 AM UTC+11, Jim Thompson wrote:
> >> > On Thu, 1 Feb 2018 18:14:36 -0500, bitrex
> >> > <bitrex@de.lete.earthlink.net> wrote:
> >> > 
> >> > >Filtering 0-5V 1kHz PWM square wave to get ~1 volt to 10 volts DC output 
> >> > >proportional to duty cycle, an LM386 as two-pole Sallen Key 
> >> > >"Busselworth" filter:
> >> > >
> >> > ><https://imgur.com/a/XcDCC>
> >> > >
> >> > >Faster settling and better drive current than an RC filter, almost as 
> >> > >cheap. It's not glamorous but gets the job done
> >> > 
> >> > I'm so-o-o-o unimpressed.
> >> > 
> >> > At least three (maybe six ;-) of us here could output a DC level
> >> > proportional to duty-cycle ON A CYCLE-BY-CYCLE BASIS.
> >> 
> >> Use a pair of counters to evaluate the duty cycle over one cycle, digital number crunching to turn that into a number, and a D/A converter to push out that voltage over the next cycle. If the period of waveform being looked at is stable, you can use a phase-locked loop to lock the period-counting clock to some (high) multiple of the frequency of the waveform being looked at, and save yourself the digital number crunching.
> >> 
> >
> >https://en.wikipedia.org/wiki/Rube_Goldberg_machine
> 
> Leave it to Sloman to not see the obvious (and easy) analog solution.

Integrating into a capacitor for the appropriate portion of the duty cycle may look obvious and easy, but it's a can of worms.

-- 
Bill Sloman, Sydney

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


#493510

Frombill.sloman@ieee.org
Date2018-02-02 18:43 -0800
Message-ID<99313ba4-0dd0-465b-a66a-ba4f28ea612b@googlegroups.com>
In reply to#493423
On Saturday, February 3, 2018 at 1:25:11 AM UTC+11, bill....@ieee.org wrote:
> On Friday, February 2, 2018 at 3:28:23 PM UTC+11, Jim Thompson wrote:
> > On Thu, 1 Feb 2018 18:16:44 -0800 (PST), Lasse Langwadt Christensen
> > <langwadt@fonz.dk> wrote:
> > 
> > >Den fredag den 2. februar 2018 kl. 03.06.20 UTC+1 skrev bill....@ieee.org:
> > >> On Friday, February 2, 2018 at 10:58:15 AM UTC+11, Jim Thompson wrote:
> > >> > On Thu, 1 Feb 2018 18:14:36 -0500, bitrex
> > >> > <bitrex@de.lete.earthlink.net> wrote:
> > >> > 
> > >> > >Filtering 0-5V 1kHz PWM square wave to get ~1 volt to 10 volts DC output 
> > >> > >proportional to duty cycle, an LM386 as two-pole Sallen Key 
> > >> > >"Busselworth" filter:
> > >> > >
> > >> > ><https://imgur.com/a/XcDCC>
> > >> > >
> > >> > >Faster settling and better drive current than an RC filter, almost as 
> > >> > >cheap. It's not glamorous but gets the job done
> > >> > 
> > >> > I'm so-o-o-o unimpressed.
> > >> > 
> > >> > At least three (maybe six ;-) of us here could output a DC level
> > >> > proportional to duty-cycle ON A CYCLE-BY-CYCLE BASIS.
> > >> 
> > >> Use a pair of counters to evaluate the duty cycle over one cycle, digital number crunching to turn that into a number, and a D/A converter to push out that voltage over the next cycle. If the period of waveform being looked at is stable, you can use a phase-locked loop to lock the period-counting clock to some (high) multiple of the frequency of the waveform being looked at, and save yourself the digital number crunching.
> > >> 
> > >
> > >https://en.wikipedia.org/wiki/Rube_Goldberg_machine
> > 
> > Leave it to Sloman to not see the obvious (and easy) analog solution.
> 
> Integrating into a capacitor for the appropriate portion of the duty cycle may look obvious and easy, but it's a can of worms.

Thinking about it, you probably need to use one cycle of the mark-to-space waveform to zero your capacitor, the next to charge it up for the mark period of waveform, and the next to hold the voltage so somebody can read it.

So you end up with three capacitors, and three constant current sources, and a three way multiplexer to present the stable voltage on each of the three different capacitors to the observer who needs it.

Sadly, the constant current sources need to be matched to the capacitor they are charging, and the period over which they charge it, so you probably need four capacitors and four constant current sources, and four more capacitors to hold the voltages the determine each of the four constant current.

Each of the four capacitor constant current source pairs would do a calibration cycle after three reading cycles, in which the capacitor would be charged for the full period of the mark-to-space cycle, and that 100% output used to correct the stored voltage that defined that constant current.

This does assume that period of the mark-to-space waveform has good short term stability (which the digital scheme doesn't) but it could be made to work.

Jim's idea of simple and easy strikes me as complicated and messy.

-- 
Bill Sloman, Sydney

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


#493606

Frombill.sloman@ieee.org
Date2018-02-03 15:34 -0800
Message-ID<a3cc9279-8324-4f4e-a848-5da4dc0bf7dd@googlegroups.com>
In reply to#493510
On Saturday, February 3, 2018 at 1:43:10 PM UTC+11, bill....@ieee.org wrote:
> On Saturday, February 3, 2018 at 1:25:11 AM UTC+11, bill....@ieee.org wrote:
> > On Friday, February 2, 2018 at 3:28:23 PM UTC+11, Jim Thompson wrote:
> > > On Thu, 1 Feb 2018 18:16:44 -0800 (PST), Lasse Langwadt Christensen
> > > <langwadt@fonz.dk> wrote:
> > > 
> > > >Den fredag den 2. februar 2018 kl. 03.06.20 UTC+1 skrev bill....@ieee.org:
> > > >> On Friday, February 2, 2018 at 10:58:15 AM UTC+11, Jim Thompson wrote:
> > > >> > On Thu, 1 Feb 2018 18:14:36 -0500, bitrex
> > > >> > <bitrex@de.lete.earthlink.net> wrote:
> > > >> > 
> > > >> > >Filtering 0-5V 1kHz PWM square wave to get ~1 volt to 10 volts DC output 
> > > >> > >proportional to duty cycle, an LM386 as two-pole Sallen Key 
> > > >> > >"Busselworth" filter:
> > > >> > >
> > > >> > ><https://imgur.com/a/XcDCC>
> > > >> > >
> > > >> > >Faster settling and better drive current than an RC filter, almost as 
> > > >> > >cheap. It's not glamorous but gets the job done
> > > >> > 
> > > >> > I'm so-o-o-o unimpressed.
> > > >> > 
> > > >> > At least three (maybe six ;-) of us here could output a DC level
> > > >> > proportional to duty-cycle ON A CYCLE-BY-CYCLE BASIS.
> > > >> 
> > > >> Use a pair of counters to evaluate the duty cycle over one cycle, digital number crunching to turn that into a number, and a D/A converter to push out that voltage over the next cycle. If the period of waveform being looked at is stable, you can use a phase-locked loop to lock the period-counting clock to some (high) multiple of the frequency of the waveform being looked at, and save yourself the digital number crunching.
> > > >> 
> > > >
> > > >https://en.wikipedia.org/wiki/Rube_Goldberg_machine
> > > 
> > > Leave it to Sloman to not see the obvious (and easy) analog solution.
> > 
> > Integrating into a capacitor for the appropriate portion of the duty cycle may look obvious and easy, but it's a can of worms.
> 
> Thinking about it, you probably need to use one cycle of the mark-to-space waveform to zero your capacitor, the next to charge it up for the mark period of waveform, and the next to hold the voltage so somebody can read it.
> 
> So you end up with three capacitors, and three constant current sources, and a three way multiplexer to present the stable voltage on each of the three different capacitors to the observer who needs it.
> 
> Sadly, the constant current sources need to be matched to the capacitor they are charging, and the period over which they charge it, so you probably need four capacitors and four constant current sources, and four more capacitors to hold the voltages the determine each of the four constant current.
> 
> Each of the four capacitor constant current source pairs would do a calibration cycle after three reading cycles, in which the capacitor would be charged for the full period of the mark-to-space cycle, and that 100% output used to correct the stored voltage that defined that constant current.
> 
> This does assume that period of the mark-to-space waveform has good short term stability (which the digital scheme doesn't) but it could be made to work.
> 
> Jim's idea of simple and easy strikes me as complicated and messy.

And there's also the question of what happens when the mark-to-space ration goes to 0% or 100% - you haven't even got a narrow positive or negative going spike to clock the system.

It's easy enough to deal with at the system design stage, but it is a further complication of the stable-output-for-a-single-cycle approach. Jim's clearly not a systems designer - he gets commissioned by people who have spent time and money working out what they want, in proportion to the cost of having an ASIC made.
 
-- 
Bill Sloman, Sydney

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


#493608

FromJim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com>
Date2018-02-03 17:23 -0700
Message-ID<7ijc7d98bvik3n950cqjn2qnstivhhajkf@4ax.com>
In reply to#493606
On Sat, 3 Feb 2018 15:34:36 -0800 (PST), bill.sloman@ieee.org wrote:

[snip]

> Jim's clearly not a systems designer - he gets commissioned by people who have spent time
> and money working out what they want, in proportion to the cost of having an ASIC made.
> 

Except that you WRONG and IGNORANT as usual.

For a high proportion of my ASIC designs I COMPLETELY re-architect the
customer's system design because...

(1) I AM a systems designer

AND

(2) a device-level designer

AND, THUS, I can see solutions that the pure systems designer,
constrained by the use of OTS components, can not possibly envision.

The TLSI project that I mentioned in a recent post is a good example.

For those readers with a real project in mind, contact me directly.

I will provide references who can verify my abilities, success rate,
and economics.

Have gun, will travel >:-}

(Sorry for responding to a Slowman post... I shouldn't waste my time,
or yours :-(
		
                                        ...Jim Thompson
-- 
| James E.Thompson                                 |    mens     |
| Analog Innovations                               |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| STV, Queen Creek, AZ 85142    Skype: skypeanalog |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
     It's what you learn, after you know it all, that counts.

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


#493611

Frombill.sloman@ieee.org
Date2018-02-03 17:01 -0800
Message-ID<a1a3ed43-acba-434a-a0dc-065ebef9d414@googlegroups.com>
In reply to#493608
On Sunday, February 4, 2018 at 11:24:03 AM UTC+11, Jim Thompson wrote:
> On Sat, 3 Feb 2018 15:34:36 -0800 (PST), bill.sloman@ieee.org wrote:
> 
> [snip]
> 
> > Jim's clearly not a systems designer - he gets commissioned by people who have spent time
> > and money working out what they want, in proportion to the cost of having an ASIC made.
> > 
> 
> Except that you WRONG and IGNORANT as usual.

But he doesn't say how or why. As usual.
> 
> For a high proportion of my ASIC designs I COMPLETELY re-architect the
> customer's system design because...
> 
> (1) I AM a systems designer
> 
> AND
> 
> (2) a device-level designer
> 
> AND, THUS, I can see solutions that the pure systems designer,
> constrained by the use of OTS components, can not possibly envision.

Perhaps, but somebody else did the system design for you, and you got to offer alternative realisations. The business of sorting out the data available and how to use it is always outside your scope.
 
> The TLSI project that I mentioned in a recent post is a good example.

I wonder what that acronym stands for. Google offers Telephonic Large Scale Integration, and the telephone system is one where the basic system design was done a long time ago.

> For those readers with a real project in mind, contact me directly.
> 
> I will provide references who can verify my abilities, success rate,
> and economics.
> 
> Have gun, will travel >:-}
> 
> (Sorry for responding to a Sloman post... I shouldn't waste my time,
> or yours :-(

Or advertise the sloppines of your thinking.

-- 
Bill Sloman, Sydney

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


#493418

FromDavid Brown <david.brown@hesbynett.no>
Date2018-02-02 13:29 +0100
Message-ID<p51ljq$et8$1@dont-email.me>
In reply to#493345
On 02/02/18 03:06, bill.sloman@ieee.org wrote:
> On Friday, February 2, 2018 at 10:58:15 AM UTC+11, Jim Thompson
> wrote:
>> On Thu, 1 Feb 2018 18:14:36 -0500, bitrex 
>> <bitrex@de.lete.earthlink.net> wrote:
>> 
>>> Filtering 0-5V 1kHz PWM square wave to get ~1 volt to 10 volts DC
>>> output proportional to duty cycle, an LM386 as two-pole Sallen
>>> Key "Busselworth" filter:
>>> 
>>> <https://imgur.com/a/XcDCC>
>>> 
>>> Faster settling and better drive current than an RC filter,
>>> almost as cheap. It's not glamorous but gets the job done
>> 
>> I'm so-o-o-o unimpressed.
>> 
>> At least three (maybe six ;-) of us here could output a DC level 
>> proportional to duty-cycle ON A CYCLE-BY-CYCLE BASIS.
> 
> Use a pair of counters to evaluate the duty cycle over one cycle,
> digital number crunching to turn that into a number, and a D/A
> converter to push out that voltage over the next cycle. If the period
> of waveform being looked at is stable, you can use a phase-locked
> loop to lock the period-counting clock to some (high) multiple of the
> frequency of the waveform being looked at, and save yourself the
> digital number crunching.
> 
> It's really only practical in an ASIC, which is to say for high
> volume applications (which are the only ones Jim get to hear about).
> 

It is a lot simpler than that, and can be done on a cheapo
microcontroller.  (Still slightly more expensive than a simple analogue
solution, but with digital you get more flexibility and can filter in
any way you want.)  I can't imagine why you want an ASIC to measure a 1
kHz PWM signal.

> A fast-settling multi-pole low pass filter can do almost as good a
> job in most application.
> 
> Taylor and Williams list some equi-ripple approximations to the
> perfect fast-settling filter which give better carrier attenuation at
> the price of small excursions from the ideal phase-versus-frequency
> plot.
> 

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


#493513

Frombill.sloman@ieee.org
Date2018-02-02 18:50 -0800
Message-ID<197abe15-9281-41e1-886e-5a22fa75eb90@googlegroups.com>
In reply to#493418
On Friday, February 2, 2018 at 11:29:54 PM UTC+11, David Brown wrote:
> On 02/02/18 03:06, bill.sloman@ieee.org wrote:
> > On Friday, February 2, 2018 at 10:58:15 AM UTC+11, Jim Thompson
> > wrote:
> >> On Thu, 1 Feb 2018 18:14:36 -0500, bitrex 
> >> <bitrex@de.lete.earthlink.net> wrote:
> >> 
> >>> Filtering 0-5V 1kHz PWM square wave to get ~1 volt to 10 volts DC
> >>> output proportional to duty cycle, an LM386 as two-pole Sallen
> >>> Key "Busselworth" filter:
> >>> 
> >>> <https://imgur.com/a/XcDCC>
> >>> 
> >>> Faster settling and better drive current than an RC filter,
> >>> almost as cheap. It's not glamorous but gets the job done
> >> 
> >> I'm so-o-o-o unimpressed.
> >> 
> >> At least three (maybe six ;-) of us here could output a DC level 
> >> proportional to duty-cycle ON A CYCLE-BY-CYCLE BASIS.
> > 
> > Use a pair of counters to evaluate the duty cycle over one cycle,
> > digital number crunching to turn that into a number, and a D/A
> > converter to push out that voltage over the next cycle. If the period
> > of waveform being looked at is stable, you can use a phase-locked
> > loop to lock the period-counting clock to some (high) multiple of the
> > frequency of the waveform being looked at, and save yourself the
> > digital number crunching.
> > 
> > It's really only practical in an ASIC, which is to say for high
> > volume applications (which are the only ones Jim get to hear about).
> 
> It is a lot simpler than that, and can be done on a cheapo
> microcontroller.

If it has enough of the right kind of timing registers, and integrates a decent DAC (which some of them do). The whole point about a Turing machine is that it can do anything - or at least anything computable. The fact that a particular Turing machine could do the job doesn't make it the cheapest or best way of doing the job.

>  (Still slightly more expensive than a simple analogue
> solution, but with digital you get more flexibility and can filter in
> any way you want.)  I can't imagine why you want an ASIC to measure a 1
> kHz PWM signal.

It's going to be cheaper than a general purpose microcontroller, which uses up silicon area to offer the capacity to do stuff that you don't need.
 
<snip>

-- 
Bill Sloman, Sydney

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


#493760

FromDavid Brown <david.brown@hesbynett.no>
Date2018-02-05 13:23 +0100
Message-ID<p59ic3$s1a$1@dont-email.me>
In reply to#493513
On 03/02/18 03:50, bill.sloman@ieee.org wrote:
> On Friday, February 2, 2018 at 11:29:54 PM UTC+11, David Brown
> wrote:
>> On 02/02/18 03:06, bill.sloman@ieee.org wrote:
>>> On Friday, February 2, 2018 at 10:58:15 AM UTC+11, Jim Thompson 
>>> wrote:
>>>> On Thu, 1 Feb 2018 18:14:36 -0500, bitrex 
>>>> <bitrex@de.lete.earthlink.net> wrote:
>>>> 
>>>>> Filtering 0-5V 1kHz PWM square wave to get ~1 volt to 10
>>>>> volts DC output proportional to duty cycle, an LM386 as
>>>>> two-pole Sallen Key "Busselworth" filter:
>>>>> 
>>>>> <https://imgur.com/a/XcDCC>
>>>>> 
>>>>> Faster settling and better drive current than an RC filter, 
>>>>> almost as cheap. It's not glamorous but gets the job done
>>>> 
>>>> I'm so-o-o-o unimpressed.
>>>> 
>>>> At least three (maybe six ;-) of us here could output a DC
>>>> level proportional to duty-cycle ON A CYCLE-BY-CYCLE BASIS.
>>> 
>>> Use a pair of counters to evaluate the duty cycle over one
>>> cycle, digital number crunching to turn that into a number, and a
>>> D/A converter to push out that voltage over the next cycle. If
>>> the period of waveform being looked at is stable, you can use a
>>> phase-locked loop to lock the period-counting clock to some
>>> (high) multiple of the frequency of the waveform being looked at,
>>> and save yourself the digital number crunching.
>>> 
>>> It's really only practical in an ASIC, which is to say for high 
>>> volume applications (which are the only ones Jim get to hear
>>> about).
>> 
>> It is a lot simpler than that, and can be done on a cheapo 
>> microcontroller.
> 
> If it has enough of the right kind of timing registers, 

As most microcontrollers do, even the cheapo ones.

> and
> integrates a decent DAC (which some of them do).

Some do.  Even if they don't, a simple serial DAC is small and cheap
(many, many orders of magnitude cheaper than making an ASIC, and vastly
more flexible and responsive than an analogue filter).  And even a PWM
output with a simple analogue filter will give you a better quality
filter with more flexibility than you'd get from pure analogue.

> The whole point
> about a Turing machine is that it can do anything - or at least
> anything computable. The fact that a particular Turing machine could
> do the job doesn't make it the cheapest or best way of doing the
> job.

That is entirely true - and utterly pointless.

> 
>> (Still slightly more expensive than a simple analogue solution, but
>> with digital you get more flexibility and can filter in any way you
>> want.)  I can't imagine why you want an ASIC to measure a 1 kHz PWM
>> signal.
> 
> It's going to be cheaper than a general purpose microcontroller,
> which uses up silicon area to offer the capacity to do stuff that you
> don't need.
> 

No, an ASIC is not going to be cheaper - even if you are making millions
of these things.  Even the simplest ASICs have a minimum cost for the
packaging, testing, etc., and I think you'd have a hard time beating the
price of the smallest and cheapest microcontroller that could do the
job.  For 100K units, you'd be talking about perhaps $0.30 for the
microcontroller.  For an ASIC production to get down close to that unit
price, you would need to be investing millions in NRE costs.  Do you
really think Bitrex is interested in the absurdly high numbers needed to
make an ASIC the cheap choice here?

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


#493763

Frombitrex <bitrex@de.lete.earthlink.net>
Date2018-02-05 08:45 -0500
Message-ID<5eZdC.4455$fQ7.3741@fx13.iad>
In reply to#493760
On 02/05/2018 07:23 AM, David Brown wrote:
> On 03/02/18 03:50, bill.sloman@ieee.org wrote:
>> On Friday, February 2, 2018 at 11:29:54 PM UTC+11, David Brown
>> wrote:
>>> On 02/02/18 03:06, bill.sloman@ieee.org wrote:
>>>> On Friday, February 2, 2018 at 10:58:15 AM UTC+11, Jim Thompson
>>>> wrote:
>>>>> On Thu, 1 Feb 2018 18:14:36 -0500, bitrex
>>>>> <bitrex@de.lete.earthlink.net> wrote:
>>>>>
>>>>>> Filtering 0-5V 1kHz PWM square wave to get ~1 volt to 10
>>>>>> volts DC output proportional to duty cycle, an LM386 as
>>>>>> two-pole Sallen Key "Busselworth" filter:
>>>>>>
>>>>>> <https://imgur.com/a/XcDCC>
>>>>>>
>>>>>> Faster settling and better drive current than an RC filter,
>>>>>> almost as cheap. It's not glamorous but gets the job done
>>>>>
>>>>> I'm so-o-o-o unimpressed.
>>>>>
>>>>> At least three (maybe six ;-) of us here could output a DC
>>>>> level proportional to duty-cycle ON A CYCLE-BY-CYCLE BASIS.
>>>>
>>>> Use a pair of counters to evaluate the duty cycle over one
>>>> cycle, digital number crunching to turn that into a number, and a
>>>> D/A converter to push out that voltage over the next cycle. If
>>>> the period of waveform being looked at is stable, you can use a
>>>> phase-locked loop to lock the period-counting clock to some
>>>> (high) multiple of the frequency of the waveform being looked at,
>>>> and save yourself the digital number crunching.
>>>>
>>>> It's really only practical in an ASIC, which is to say for high
>>>> volume applications (which are the only ones Jim get to hear
>>>> about).
>>>
>>> It is a lot simpler than that, and can be done on a cheapo
>>> microcontroller.
>>
>> If it has enough of the right kind of timing registers,
> 
> As most microcontrollers do, even the cheapo ones.
> 
>> and
>> integrates a decent DAC (which some of them do).
> 
> Some do.  Even if they don't, a simple serial DAC is small and cheap
> (many, many orders of magnitude cheaper than making an ASIC, and vastly
> more flexible and responsive than an analogue filter).  And even a PWM
> output with a simple analogue filter will give you a better quality
> filter with more flexibility than you'd get from pure analogue.

This is a "simple analog filter" being fed with a PWM output from an 
DAC, lol

>> The whole point
>> about a Turing machine is that it can do anything - or at least
>> anything computable. The fact that a particular Turing machine could
>> do the job doesn't make it the cheapest or best way of doing the
>> job.
> 
> That is entirely true - and utterly pointless.
> 
>>
>>> (Still slightly more expensive than a simple analogue solution, but
>>> with digital you get more flexibility and can filter in any way you
>>> want.)  I can't imagine why you want an ASIC to measure a 1 kHz PWM
>>> signal.
>>
>> It's going to be cheaper than a general purpose microcontroller,
>> which uses up silicon area to offer the capacity to do stuff that you
>> don't need.
>>
> 
> No, an ASIC is not going to be cheaper - even if you are making millions
> of these things.  Even the simplest ASICs have a minimum cost for the
> packaging, testing, etc., and I think you'd have a hard time beating the
> price of the smallest and cheapest microcontroller that could do the
> job.  For 100K units, you'd be talking about perhaps $0.30 for the
> microcontroller.  For an ASIC production to get down close to that unit
> price, you would need to be investing millions in NRE costs.  Do you
> really think Bitrex is interested in the absurdly high numbers needed to
> make an ASIC the cheap choice here?
> 

I've forgotten what we were talking about!

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


#493834

Frombill.sloman@ieee.org
Date2018-02-05 13:58 -0800
Message-ID<5e76e594-bcbd-4787-9b9c-9d387c6772b0@googlegroups.com>
In reply to#493760
On Monday, February 5, 2018 at 11:23:36 PM UTC+11, David Brown wrote:
> On 03/02/18 03:50, bill.sloman@ieee.org wrote:
> > On Friday, February 2, 2018 at 11:29:54 PM UTC+11, David Brown
> > wrote:
> >> On 02/02/18 03:06, bill.sloman@ieee.org wrote:
> >>> On Friday, February 2, 2018 at 10:58:15 AM UTC+11, Jim Thompson 
> >>> wrote:
> >>>> On Thu, 1 Feb 2018 18:14:36 -0500, bitrex 
> >>>> <bitrex@de.lete.earthlink.net> wrote:
> >>>> 
> >>>>> Filtering 0-5V 1kHz PWM square wave to get ~1 volt to 10
> >>>>> volts DC output proportional to duty cycle, an LM386 as
> >>>>> two-pole Sallen Key "Busselworth" filter:
> >>>>> 
> >>>>> <https://imgur.com/a/XcDCC>
> >>>>> 
> >>>>> Faster settling and better drive current than an RC filter, 
> >>>>> almost as cheap. It's not glamorous but gets the job done
> >>>> 
> >>>> I'm so-o-o-o unimpressed.
> >>>> 
> >>>> At least three (maybe six ;-) of us here could output a DC
> >>>> level proportional to duty-cycle ON A CYCLE-BY-CYCLE BASIS.
> >>> 
> >>> Use a pair of counters to evaluate the duty cycle over one
> >>> cycle, digital number crunching to turn that into a number, and a
> >>> D/A converter to push out that voltage over the next cycle. If
> >>> the period of waveform being looked at is stable, you can use a
> >>> phase-locked loop to lock the period-counting clock to some
> >>> (high) multiple of the frequency of the waveform being looked at,
> >>> and save yourself the digital number crunching.
> >>> 
> >>> It's really only practical in an ASIC, which is to say for high 
> >>> volume applications (which are the only ones Jim get to hear
> >>> about).
> >> 
> >> It is a lot simpler than that, and can be done on a cheapo 
> >> microcontroller.
> > 
> > If it has enough of the right kind of timing registers, 
> 
> As most microcontrollers do, even the cheapo ones.
> 
> > and
> > integrates a decent DAC (which some of them do).
> 
> Some do.  Even if they don't, a simple serial DAC is small and cheap
> (many, many orders of magnitude cheaper than making an ASIC, and vastly
> more flexible and responsive than an analogue filter).  And even a PWM
> output with a simple analogue filter will give you a better quality
> filter with more flexibility than you'd get from pure analogue.
> 
> > The whole point
> > about a Turing machine is that it can do anything - or at least
> > anything computable. The fact that a particular Turing machine could
> > do the job doesn't make it the cheapest or best way of doing the
> > job.
> 
> That is entirely true - and utterly pointless.

Exactly as pointless as your point that you could do the job in a microcontroller rather than an ASIC.
 
> >> (Still slightly more expensive than a simple analogue solution, but
> >> with digital you get more flexibility and can filter in any way you
> >> want.)  I can't imagine why you want an ASIC to measure a 1 kHz PWM
> >> signal.
> > 
> > It's going to be cheaper than a general purpose microcontroller,
> > which uses up silicon area to offer the capacity to do stuff that you
> > don't need.
> > 
> 
> No, an ASIC is not going to be cheaper - even if you are making millions
> of these things.  Even the simplest ASICs have a minimum cost for the
> packaging, testing, etc., and I think you'd have a hard time beating the
> price of the smallest and cheapest microcontroller that could do the
> job.  For 100K units, you'd be talking about perhaps $0.30 for the
> microcontroller.  For an ASIC production to get down close to that unit
> price, you would need to be investing millions in NRE costs.  Do you
> really think Bitrex is interested in the absurdly high numbers needed to
> make an ASIC the cheap choice here?

Bitrex was prefectly happy with his Dumpy Filter. It was Jim Thompson who thought that a cycle by cycle staircase representation of the mark-to-space ratio would be better, and hard to design (so that only half-a-dozen of us could do it). I sketched out a digital solution - and because Jim designs ASICs I couched in it terms of an ASIC.

Jim then went on to complain that a solution with a hgher analog content would be better (but didn't produce one). I sketched out something for that, but found it messy. Jim didn't come up with anything simpler.

Neither have you.

My own design history would bias me towards as digital solution mostly realised in a cheap programmable logic device, but microcontrollers sell in much larger volumes, and I agree that the right microcontroller would probably be the cheapest solution in most situations.

Jim Thompson's branch of the thread wasn't about cheap but rather about alternative approaches.

It doesn't make sense to worry about price until you've worked out what you need and want to do. You may end up compromisng on what you want to do if your first thoughts leave you stuck with a too-expensive solution, but system design is all about working out what you can and should do, followed by thinking about how you might do that.

-- 
Bill Sloman, Sydney

-- 
Bill Sloman, Sydney

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


#493329

Frombitrex <bitrex@de.lete.earthlink.net>
Date2018-02-01 19:30 -0500
Message-ID<FiOcC.45$EV2.29@fx30.iad>
In reply to#493316
On 02/01/2018 06:14 PM, bitrex wrote:
> Filtering 0-5V 1kHz PWM square wave to get ~1 volt to 10 volts DC output 
> proportional to duty cycle, an LM386 as two-pole Sallen Key 
> "Busselworth" filter:
> 
> <https://imgur.com/a/XcDCC>
> 
> Faster settling and better drive current than an RC filter, almost as 
> cheap. It's not glamorous but gets the job done

The internal feedback bypass cap is probably too large, I think one 
could get away with a ceramic there

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


#493359

FromWinfield Hill <hill@rowland.harvard.edu>
Date2018-02-01 18:45 -0800
Message-ID<p50jbq02hv2@drn.newsguy.com>
In reply to#493329
bitrex wrote...
>
> The internal feedback bypass cap is probably too large

 Raise those resistor values!


-- 
 Thanks,
    - Win

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


#493360

Frombitrex <bitrex@de.lete.earthlink.net>
Date2018-02-01 21:56 -0500
Message-ID<ArQcC.24287$u94.12799@fx08.iad>
In reply to#493359
On 02/01/2018 09:45 PM, Winfield Hill wrote:
> bitrex wrote...
>>
>> The internal feedback bypass cap is probably too large
> 
>   Raise those resistor values!
> 
> 

Can't raise them too far, or the voltage divider created by the second 
resistor and the internal ~50k on the '386 kills the response.

2.2k, 4.7k, and two 470n capacitors seems an OK compromise

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


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

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


csiph-web