w3c
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

 
   Home   Help Search Blog Login Register  
Pages: [1]
  Print  
Author Topic: New RC Filter Online Tool  (Read 3149 times)
ve3wwg
phpBB Member


View Profile WWW
« on: May 08, 2012, 06:59:55 PM »

I've been busy adding a few locally hosted online electronics calculators here lately. The one I want to draw your attention to is the online RC filter calculator here:

http://www.experimentalistsanonymous.com/ve3wwg/doku.php?id=rc_simple_filter

I've attached a picture of the results.  It took me while to figure out how to create a bode plot for the low and high pass filters, but it is working now. So the tool now also plots graphs of each filter, once the frequency is known. You can calculate R, C or F given any two known values.

The other calculators are listed in the menu here:

http://www.experimentalistsanonymous.com/ve3wwg/doku.php?id=online_tools

One I find particularly useful is the standard resistor calculator. Unlike the others, with this one you can choose the closest standard value, closest higher, or closest lower standard value. Sometimes you need to choose in a particular direction.


* filter_calc.png (32.83 KB, 1236x344 - viewed 176 times.)
Logged
dislocations
phpBB Junior Member

View Profile
« Reply #1 on: May 09, 2012, 12:00:22 AM »

Many thanks for this...........Just what I'm looking for!!!!!!!!
Logged
dislocations
phpBB Junior Member

View Profile
« Reply #2 on: May 09, 2012, 12:25:33 AM »

Just breadboarded a simple 40106 oscillator and added an RC/CR. Worked a treat! So, what do I do next? I heard that 'proper' filters incorporate op-amps (is an LM386 ok?). Is this so the quieter tones are louder? The next step would be great to see!!!!
Many thanks again!!!!
Logged
ve3wwg
phpBB Member


View Profile WWW
« Reply #3 on: May 09, 2012, 08:51:18 AM »

Just breadboarded a simple 40106 oscillator and added an RC/CR. Worked a treat! So, what do I do next?

The funny thing about RC filters is they also depend upon input and output circuits that they attach to.  The source feeding into the filter should have a relatively low impedance so as not to affect the chosen filter response (which likely applies to your application).

Another challenge is the input impedance of the stage following the filter. It should feed into a high input impedance for best results. Feeding into a circuit with lower input impedance will affect the response.  Exactly how and what ranges to watch out for is something I want to investigate. I hope to run some LTspice simulations on that purely out of curiosity.

I only mention these things because what seems simple doesn't always work as expected. So for best results, low impedance feeds into the RC filter and then the filter feeds into a high impedance following stage.

I heard that 'proper' filters incorporate op-amps (is an LM386 ok?). Is this so the quieter tones are louder? The next step would be great to see!!!!
Many thanks again!!!!

The RC filter is a passive filter. You can't beat it for simplicity. But it does suffer from what is known as "insertion loss". The signal coming out will be reduced in amplitude.

With an opamp (or transistor) circuit, you make what is known as an "active filter". It is "active" because it includes active components (that amplify).

So what is best depends upon your needs (as in most things in life).

If your RC filter is going into another amplifying stage, you really don't need to worry about insertion loss (you simply make it up the lost gain in the following stage(s)). If you want your filter to amplify a band of frequencies above the current level, then an active filter will be required.

Here's another deciding factor:

One RC filter drops power at a rate of 3 dB per octave beyond the cutoff frequency. With signals, you are usually only concerned with voltage, which drops at 6 dB / octave. [Apologies for going into decibels here... -3 dB means a drop of 50%]

If you wanted a sharper cutoff than that, you need to run multiple RC filters in series. The problem is that this doesn't work well unless you go to an active filter design. The reason is that the output impedance of a passive RC filter is relatively high. Feeding into the next RC filter means that both filters now become corrupted in filter response because of this (both filters will interact and change the frequency response).

A simple fix is to run one RC filter into a buffer (opamp), which then feeds another RC filter. The buffer provides the high input impedance that the first filter needs, while providing a very low output impedance to feed the next filter with. So now we have gone full circle in this post. Smiley

Of course, you can also have opamp circuits that are active filters in themselves, rather than just a buffer, but that gets more difficult to describe in a brief discussion.

Opamp Choice

The LM386 is really meant to be an output amplifier, driving a speaker or similar type of load.  If the output in your application is simply an audio output signal to be plugged into a stereo (for example), I would not use that.

Use a voltage amplifier opamp like the TL071, TL072, or TL074 for single, dual or quad opamps, depending upon your needs.  These will be easier to work with than the LM386 (fewer connections) and provide better quality results.

Sometimes I have seen LM386's used in pedal circuits. This is normally done when it is doing some extreme "driving" into another distortion type of stage. I still suspect that this application of the LM386 is less than optimal, but I've not checked it out in detail.  

I've overly simplified the opamp selection here, since there are lots of other things to consider. It requires a book to treat the subject properly. But the TL07x opamp is a great jellybean part for low cost - high performance. If you need lowest noise, lowest distortion, the NE5532 or NE5534 is suitable for most applications.

Update:

I added some notes about effects of inter-stage impedance effects on filters here:

http://www.experimentalistsanonymous.com/ve3wwg/doku.php?id=rc_filters_coupling
« Last Edit: May 09, 2012, 10:28:43 AM by ve3wwg » Logged
ve3wwg
phpBB Member


View Profile WWW
« Reply #4 on: May 09, 2012, 09:32:59 PM »

I've just added a Ceramic capacitor code calculator here:

http://www.experimentalistsanonymous.com/ve3wwg/doku.php?id=cap_codes&#code_calculator

While I can read the cap codes ok, I like to be doubly certain before I solder the part into place. There is nothing like a confirmation during a build.
Logged
dislocations
phpBB Junior Member

View Profile
« Reply #5 on: May 10, 2012, 12:05:40 AM »

Again, many thanks!!! This is really interesting for me at this time. Been fiddling with 40106's and 555's for a while and this is helping me forward!!!
Logged
ve3wwg
phpBB Member


View Profile WWW
« Reply #6 on: May 10, 2012, 05:48:48 AM »

As you're probably discovering for yourself, opamps are fairly easy to engineer useful audio circuits with. To create a buffer, you just wire it up with no resistors required (for split supply). Need some gain? Add a  few selected resistors to an opamp circuit, without any mind bending math to conquer.

To take things to the next level, I heartily recommend used books for topics such as opamps. New engineering books can cost a fortune, but I buy them used (at hobby prices) for under $12 + shipping.

A site I have had great experiences with is abebooks.com. They are a clearing house for 1000s of small used book stores across the continent (actually, they include the UK and India as well). The great thing is that they can usually find you the best used book price on the planet (be sure to use their sort by price+shipping link).

Even popular books like "The Art of Electronics" can be hard to find cheap, but I got mine from India for cheap. The paper quality of the India copies are often not as good, but I didn't really care about that (some on the internet call them the 'toilet paper' editions Smiley ).

For opamps, I heartily recommend any of these books:

  • Op-Amps and Linear Integrated Circuits - Ramakant A. Gayakwad
  • Op Amps for Everyone - Bruce Carter and Ron Mancini
  • IC Op-amp Cookbook - Walter G. Junk (oldie but goodie)

There are probably a number of other ones out there, but these are the ones that I am familiar with.

Another source of inspiration comes from the library. If I borrow a book and like it a lot, I'll order a used copy for myself.  I've ended up with a few good books that way.
Logged
expanoncolin
Administrator
phpBB Member


View Profile WWW
« Reply #7 on: May 12, 2012, 07:44:34 PM »


Update:

I added some notes about effects of inter-stage impedance effects on filters here:

http://www.experimentalistsanonymous.com/ve3wwg/doku.php?id=rc_filters_coupling

Your preceding notes on using op amps to overcome some of these issues would fit in well at the end of this page!

-Colin
Logged

The best way to learn is to experiment.  Try it first, then learn from what went wrong.

http://www.eaced.com
http://www.experimentalistsanonymous.com
ve3wwg
phpBB Member


View Profile WWW
« Reply #8 on: May 13, 2012, 09:01:04 PM »

I suppose you're right.  I've put a yellow sticky note on my desktop, as a reminder.

I'm currently in the middle of building my VCF module. I've been real anxious about finishing this last of the most essential parts of my analog synth.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC