Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 74
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
All today's birthdays', congrats!
Download (31)
ScottH (37)


Next birthdays
11/03 Electroguy (94)
11/04 nitromarsjipan (2024)
11/04 mb (31)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

High order filters

1 2 
Move Thread LAN_403
IamSmooth
Tue Mar 16 2010, 05:05PM Print
IamSmooth Registered Member #190 Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
If I have a 2nd or 3rd order RC filter, is the time constant the sum of each?

Back to top
Steve Conner
Tue Mar 16 2010, 05:33PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
The concept of time constant only has meaning for a simple RC circuit with one pole. If you add more poles, each one comes with its own time constant: the circuit as a whole doesn't have "a time constant", it has several. That holds even if they're all the same.

And, if you just cascade three RC sections, the resulting three time constants are all different, even if all the Rs and Cs are the same. This is because of interaction between the sections, so if you want three poles all the same, you need to buffer them from each other.

If you want a higher-order filter, a properly designed active filter will beat a bunch of RCs in most applications.
Back to top
IamSmooth
Tue Mar 16 2010, 06:05PM
IamSmooth Registered Member #190 Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
Steve McConner wrote ...

If you want a higher-order filter, a properly designed active filter will beat a bunch of RCs in most applications.

Why is this so?
Back to top
Steve Conner
Tue Mar 16 2010, 06:32PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
The answer depends on the application :P
Back to top
IamSmooth
Tue Mar 16 2010, 06:50PM
IamSmooth Registered Member #190 Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
I've been reading about them. I can see that active filters usually don't need inductors, so you can get a good 2nd order filter without them.

I just want to filter a pwm output, and get as close to a pure DC value without a significant RC delay.

For this application which would you use? Any good active filter calculators out there on the web?
Back to top
Sulaiman
Tue Mar 16 2010, 07:13PM
Sulaiman Registered Member #162 Joined: Mon Feb 13 2006, 10:25AM
Location: United Kingdom
Posts: 3140
Just to add to Steve's post,

- 'filters' is a huge subject, about one lifetime's study. Link2

- there are sooo many types of filter
some requirements are so common that specific ICs are available, everything from
Link2 Link2 Link2 5th-order audio lowpass filter to DSPs.

- for help with filters you need to be quite specific!
Back to top
tesla500
Tue Mar 16 2010, 07:24PM
tesla500 Registered Member #347 Joined: Sat Mar 25 2006, 08:26AM
Location: Vancouver, Canada
Posts: 106
You can get a pretty good high order filter by using RC sections in series, all of the same time constant, but making each resistance several times higher than that of the previous section. For example, have 3 sections in series, with RC values of (1k, 1uF), (10k, 100nF), and (100k, 10nF). Having increasing resistance minimizes loading on the previous stage. You will likely have to follow this with a hi-z op-amp buffer, because the output impedance is so high.

David
Back to top
Steve Conner
Tue Mar 16 2010, 07:41PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
Well, for this particular application, filtering PWM, I probably would use a Bessel active filter, or the cascaded RCs. I actually designed a product for someone that did this, and it used two cascaded RCs with 10:1 ratio like David describes.

But you're asking "What filter will give the best ratio of PWM attenuation to settling time", and it's actually quite a complicated question.

For instance an elliptic filter could notch out the PWM carrier completely with a stopband zero, but they overshoot and oscillate when settling.

If it's that critical, probably best to ditch the PWM and use a DAC.
Back to top
Dr. Slack
Tue Mar 16 2010, 07:51PM
Dr. Slack Registered Member #72 Joined: Thu Feb 09 2006, 08:29AM
Location: UK St. Albans
Posts: 1659

I just want to filter a pwm output, and get as close to a pure DC value without a significant RC delay.

Mmmm, tough. What you're asking is akin to asking for the "best" and "cheapest" widget, the two are mutually exclusive, and there may be other factors about your widget, the colour for instance, that you haven't specified.

However, enough of analogies. When people want to filter a DC waveform that moves from one value to another, they often choose a Bessel response. This has no overshoot, though its delay will be greater than filters that do, like Butterworth, Chebychev, Elliptic etc. When Steve said design a high order filter instead of a random bunch of RCs, it starts with deciding what's important about your application, choose the least worst filter, and then specifying what level of bad things you can tolerate.

There are two bad things you have to tolerate in your application. One is the ripple generated by your PWM, the other is the overshoot. The first can be attenuated so much that it's negligible, the second can be eliminated all together, BUT either will lead to a filter with excess delay. If you decide you can tolerate (say) 1%, or 0.1% ripple and (say) 2% overshoot, then a filter can be designed that will have lower delay.

A very advanced filter is the equi-ripple phase (for constrained overshoot) with stopband zeroes (for ripple attenuation). This filter type was invented specifically for DAC reconstruction filtering, but there's absolutely no point in getting out the tables to design one of these without a specification for delay, ripple and overshoot.

Cascading several RC sections with the same time constant gives you an approximation to a Bessel.

What's the controlling specification for this filter. Is it within a control loop, so the delay is absolutely limited by stability concerns? If so, you'll have to compromise on ripple and overshoot. If the delay is just "smallish", then you can choose ripple and overshoot more freely.

Raising the frequency of the PWM signal will make everything easier for filter. If you are already topped-out on resolution and clock rate, then a fractional-N PWM could do this, either a MASH type used in CD players, or something based on the Chinese Remainder Theorem which can be easier to code in a micro controller.

How many times do we see this next observation in a post? Once you have specified what is important, then we can help advise you on a complicated compromise.

<edit> douf, collided with Steve Mc in the door there! </edit>



Back to top
IamSmooth
Tue Mar 16 2010, 08:34PM
IamSmooth Registered Member #190 Joined: Fri Feb 17 2006, 12:00AM
Location:
Posts: 1567
What is important? Hum...

I have maxed out my pwm frequency at 4khz. This give me adequate resolution to vary the duty, which will control my voltage to a PLL's VCO. This is for a control-loop.

I have learned that having the smallest delay is critical. Having a low ripple is also important.

I found this active analog chip based on your suggestion, Neil.
Link2

It is an 8th order filter. I just need to find out what kind of delay it has. I ordered a few samples.

Back to top
1 2 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.