Studying the different types of active filters might require advanced knowledge in electronic engineering and calculus since differential equations are required to evaluate some answers and circuit knowledge to implement the correct designs.
I do not intend to create complex topics because I understand that I write for a global audience and my intention in creating this blog has always been to present electronics in the easiest way to understand without affecting the quality of our designs.
With the technologies we have today differential equations and complex calculations can be omitted because there are design applications that take care of it, however it is necessary to know the parameters and principles of operation to understand and correctly apply the design technologies.
That is where my focus is in this series of articles, that the reader can become familiar with filters at the surface level and be able to design them using applications that take care of the complex calculations. So today we are going to see what approximations are and in the act we will learn how to interpret the graphs.
Estudiar los distintos tipos de filtros activos podr铆a requerir conocimientos avanzados en ingenier铆a electr贸nica y c谩lculo ya que se requiere de ecuaciones diferenciales para evaluar algunas respuestas y conocimientos de circuitos para implementar los dise帽os correctos.
No pretendo crear temas complejos porque entiendo que escribo para un p煤blico global y mi intenci贸n al crear este blog siempre ha sido presentar la electr贸nica de la forma m谩s f谩cil de comprender sin afectar la calidad de nuestros dise帽os.
Con las tecnolog铆as que disponemos actualmente las ecuaciones diferenciales y los c谩lculos complejos pueden omitirse porque existen aplicaciones de dise帽o que se encargan de ello, sin embargo es necesario conocer los parametros y principios de funcionamiento para poder comprender y aplicar de forma correcta las tecnolog铆as de dise帽o.
Es ah铆 donde est谩 centrado mi enfoque en esta serie de art铆culos, que el lector se pueda familiarizar con los filtros a nivel superficial y pueda ser capaces de dise帽arlos mediante aplicaciones que se encarguen de los c谩lculos complejos. As铆 que hoy vamos a ver que son las aproximaciones y en el acto aprenderemos a interpretar las gr谩ficas.
Graphical analysis |
|---|
We can rely on several graphs to analyze our designs, the way a graph is constructed is simple, a y-axis as a function of an x-axis, the only thing that will change will be the variables that we want to represent on each axis.
We could represent for example the phase shift with respect to frequency, the output magnitude with respect to frequency, attenuation with respect to frequency. If you notice everything is with respect to the frequency because it is the fundamental variable that we use to design our filters and the work of a filter is precisely to vary its behavior with respect to the change of frequencies.
On the other hand we have the scales, in our case we will consider two types: natural when the distances between each representative point is the same, if my first point is 1 the second will be 2 the third 3 and so on and each frame of a grid will have the same value.
Podemos apoyarnos en varias gr谩ficas para analizar nuestros dise帽os, la forma como se construye una gr谩fica es sencilla, un eje y en funci贸n de un eje x, lo unico que cambiara sera las variables que deseamos representar en cada eje.
Podr铆amos representar por ejemplo el cambio de fase respecto a la frecuencia, la magnitud de salida respecto a la frecuencia, atenuaci贸n respecto a la frecuencia. Si lo notas todo est谩 respecto a la frecuencia porque es la variable fundamental que usamos para dise帽ar nuestros filtros y el trabajo de un filtro es precisamente variar su comportamiento respecto al cambio de frecuencias.
Por otro lado tenemos las escalas, en nuestro caso consideraremos dos tipos: natural cuando las distancias entre cada punto representativo es la misma, si mi primer punto es el 1 el segundo sera el 2 el tercero el 3 y as铆 en lo sucesivo y cada cuadro de un grid tendr谩 el mismo valor.
When a very large range of values needs to be represented, the logarithmic scale is used, it is based on a logarithm of base 10 where the next reference point will be ten times greater than the previous one.
Cuando se necesita representar un rango muy grande de valores se utiliza la escala logar铆tmica, est谩 basada en un logaritmo de base 10 donde el siguiente punto de referencia sera diez veces mayor al anterior.
Now that we have the graphic sheet to represent our data we must choose who will be on the Y axis and who will be on the X axis, the variables that we place there will help us to analyze the behavior of our designs, the X axis in most cases is represented by the frequency in Hz or rad/sec but almost always will be the frequency variable there.
In the Y variable we will place the variable that we want to analyze since we will be able to appreciate which is its behavior in front of the different values of frequency. Since we are designing a filter the first thing we want to know is its ability to block signals at unwanted frequencies. The efficiency of the filter will depend on that, then we can analyze other things such as phase shift, output magnitude.
Attenuation refers to how much signal is lost or removed. For a constant input voltage the attenuation can be calculated as the output value at any frequency divided by the output value for medium frequencies.
Ahora que tenemos la hoja gr谩fica para representar nuestros datos debemos escoger quien estar谩 en el eje de las Y y quien en el de la X, las variables que coloquemos ah铆 nos ayudar谩n a analizar el comportamiento de nuestros dise帽os, el eje de las X en la mayor parte de los casos est谩 representado por la frecuencia en Hz o rad/seg pero casi siempre sera la variable frecuencia ah铆.
En la variable de las Y colocaremos la variable que deseamos analizar ya que podremos apreciar cu谩l es su comportamiento frente a los distintos valores de frecuencia. Ya que estamos dise帽ando un filtro lo primero que queremos saber es su capacidad de bloquear las se帽ales a frecuencias no deseadas. De eso depender谩 la eficiencia del mismo, luego podremos analizar otras cosas como el cambio de fase, magnitud de salida.
La atenuaci贸n se refiere a cuanta se帽al se pierde o se elimina. Para un voltaje de entrada constante la atenuaci贸n se puede calcular como el valor de salida en cualquier frecuencia dividido entre el valor de la salida para frecuencias medias.
Generally the attenuation is expressed in decibels, if we have the voltage output values at the frequency we want to calculate the attenuation and the voltage output values at medium frequencies we can use the following formula to calculate the attenuation in decibels.
Generalmente la atenuaci贸n se expresa en decibelios, si tenemos los valores de salida de voltaje a la frecuencia que queremos calcular la atenuaci贸n y los valores de salida de voltaje a frecuencias medias podemos usar la siguiente f贸rmula para calcular la atenuaci贸n en decibelios.
For example, an attenuation of 3 dB means that the output voltage is 0.707 of its value in the mid frequencies, if 6 dB the output is 0.5 of its value in the mid frequencies, if 12 dB, that the output voltage is 0.25 of its value in the mid frequencies and we can calculate any value to know how effective our filter is.
Attenuation is not desired in the passband but a loss of 0.5dB is usually sacrificed to obtain a better attenuation of the removed band.
Por ejemplo, una atenuaci贸n de 3 dB significa que la tensi贸n de salida es 0,707 de su valor en las frecuencias medias, si 6 dB la salida es 0,5 de su valor en las frecuencias medias, si 12 dB, que la tensi贸n de salida es 0,25 de su valor en las frecuencias medias y podemos as铆 calcular cualquier valor para conocer qu茅 tan efectivo es nuestro filtro.
La atenuaci贸n no es deseada en la banda pasante pero se suele sacrificar una p茅rdida de 0.5dB para obtener una mejor atenuaci贸n de la banda eliminada.
Butterworth Approximation |
|---|
When we refer to approximations it does not mean that each type of approximation needs a schematic modification in the circuit, often it is enough to change some values in the components to obtain the responses that comply with the approximation without the need to add, remove or move components between one filter or another.
In the Butterworth approximation the attenuation in most of the passband is zero (no power is sacrificed from the area where the frequency is acceptable to the filter) and gradually decreases after the cutoff frequency.
The attenuation slope for this approach can be calculated with the following formula:
Cuando nos referimos a las aproximaciones no quiere decir que cada tipo de aproximaci贸n necesite una modificaci贸n esquem谩tica en el circuito, a menudo solo basta con cambiar algunos valores en los componentes para obtener las respuestas que cumplan con la aproximaci贸n sin que sea necesario a帽adir, quitar o mover componentes entre un filtro u otro.
En la aproximaci贸n de Butterworth la atenuaci贸n en la mayor parte de la banda pasante es cero (no se sacrifica potencia de la zona en la que la frecuencia es aceptable para el filtro) y disminuye gradualmente luego de la frecuencia de corte.
La pendiente de atenuaci贸n para esta aproximaci贸n se puede calcular con la siguiente f贸rmula:
Where P is the attenuation slope and n the order of the filter, we can use MatLab to illustrate the behavior of a Butterworth filter as we increase the order, we will do it 2 by 2 up to order 10. To do this we will use the following code:
Donde P es la pendiente de atenuaci贸n y n el orden del filtro, podemos usar MatLab para ilustrar el comportamiento de un filtro Butterworth a medida que aumentamos el orden, lo haremos de 2 en 2 hasta el orden 10. Para ello utilizaremos el siguiente c贸digo:
clear all
clc
n=2;
wn=0.7;
for n=2:2:10
[num den]=butter(n,wn,'Low');
ft=tf(num,den)
[h w]=freqz(num,den);
plot(w,abs(h), 'LineWidth',2)
title('Butterworth - @electronico')
xlabel('(Hz)')
ylabel('dB')
grid on
pause(2)
hold on
end
And this generates the following result:
Y esto nos genera el siguiente resultado:
We can notice how the slope increases as the filter order increases.
There are still other approaches to study but I don't want to saturate you with content, so for now we end this article up to here 馃槈.
See you in the comments section 馃憤.
Podemos notar como la pendiente aumenta a medida que aumenta el orden del filtro.
A煤n faltan estudiar otras aproximaciones pero no quiero saturarlos de contenido, as铆 que por ahora terminamos este art铆culo hasta aqu铆. 馃槈.
Nos vemos en las secci贸n de comentarios 馃憤.