We have learned about audio filters and explained that audio filters also have the function of phase modulation. However, in the previous article, we skipped the most important function of the filter: removing part of the harmonics in the spectrum to create new sounds. But the working method of the filter is far from simple as it sounds. In this article, we will continue to have a deeper understanding of the principles of the filter.
Figure 1: A simple low-pass filter circuit
Figure 1 shows the passive low-pass RC filter we introduced in the previous article (the reason why it is called "passive" is that we call electronic components that only need input signals and do not need additional power "passive components", so resistors, capacitors and inductors are all passive components, while transistors and other amplifiers are not passive components). If you have read the previous article, you may remember that the cutoff frequency of the RC filter can be determined by the capacitance of the two passive components in its circuit.
The relationship between the input signal to a filter and the output signal after the filter is called the transfer function. More precisely, the transfer function describes the filter's amplitude response (the filter's effect on the volume) and phase response, but since we've already discussed the filter's effect on the audio phase in the previous article, we'll only focus on the amplitude response in this article. Ideally, the transfer function of our RC filter is very simple: for every two times above the cutoff frequency (denoted as Fc in this article), the output of the signal will be halved (see Figure 2).
Figure 2: RC low-pass filter response diagram under ideal conditions
So, for example, if Fc is 1kHz, then the signal at 2kHz will have a gain of 1/2 (half the volume), at 4kHz it will have a gain of 1/4 (one quarter the volume), and so on... Since the pitch rises one octave every time the frequency doubles, and the amplitude is attenuated by 6 decibels every time the gain is halved, this response is also called a 6dB/octave filter.
But while diagrams like Figure 2 are widely used in the music industry, they are not accurate. Figure 3 shows a more accurate transfer function diagram.
Figure 3: A more accurate representation of the RC low-pass filter response
It can be seen that the signal has been attenuated by 3dB at the cutoff frequency. This is not a mistake. In fact, in electrical engineering, the cutoff frequency is the position where the signal attenuates by 3dB. So the first rule to be summarized in this article is:
The position where the passive low-pass filter starts to work is not determined by the cutoff frequency; the cutoff frequency is the position where the signal has been attenuated by 3dB. In addition, since the 3dB attenuation can be easily perceived by the human ear, this means that the signal has been significantly affected at the cutoff frequency.
Let's step back and think about how a simple low-pass filter affects common waveforms. For simplicity, we will use the ideal low-pass filter in Figure 2 as an example, because its sharp "knee" simplifies the filter's work a lot.
Figure 4: The first 200 harmonics of a sawtooth wave
Figure 4 shows the harmonic structure of the sawtooth wave, one of the most common analog synthesizer waveforms. All of its harmonics exist, and the amplitude of each harmonic has a simple relationship of 1/n to the amplitude of the fundamental frequency (n is the harmonic number).
Figure 5: Harmonic structure of the above 100Hz sawtooth wave using a logarithmic axis
Figure 4 shows the amplitude of the first 200 harmonics of the sawtooth wave in traditional units. However, it is much more appropriate to use a logarithmic axis to show these harmonics in Figure 5 than in Figure 4. But even if you don’t understand what logarithms are, it doesn’t matter because even though Figure 4 and Figure 5 look very different, they are actually showing the same information. The reason I chose to use a logarithmic graph here is because the amplitude expressed logarithmically is a straight line, so it is easier to show the effect of the filter on it. In fact, if you look back at Figures 2 and 3, they also use logarithmic axes.
Figure 6: Effect of a 3kHz, 6dB/octave lowpass filter on a 100Hz sawtooth wave
Suppose we have a 6dB/octave RC filter with a cutoff frequency of 3kHz, let's see what effect it will have on a sawtooth wave with a base frequency of 100Hz. Figure 6 shows the attenuation of the filter for frequencies above 3kHz. It is not difficult to find that the graph in Figure 6 has a "fold" compared to Figure 5, and the graph conforms to the 6dB/octave rule mentioned above.
Figure 7-8: 100Hz sawtooth waveform under ideal conditions (top); the sawtooth waveform processed by a 3kHz filter (bottom)
Now look at Figure 7 and Figure 8. Figure 7 shows the waveform of the 100Hz sawtooth wave in the ideal state mentioned above, and Figure 8 shows the sawtooth wave processed by our 3kHz filter. Although there is not much difference in the visual aspect between the two waveforms, because the 3kHz cutoff frequency allows the first thirty harmonics of the waveform to pass, and only the low-amplitude high-frequency harmonics are affected, but because the human ear is very sensitive, when you compare the two waveforms, you can obviously hear that the filtered waveform is more "dim", or lacks "high frequency".
6dB/octave filters are widely used in sound system tone control units and are occasionally used by synthesizers as auxiliary brightness controls, but they are not usually used in real sound synthesis. This is because they usually do not cause a noticeable change in the timbre - a waveform processed by a 6dB/octave filter sounds just like the original waveform, just a little darker. Obviously, to create completely new timbres we need more powerful filters.
So what passive components do we need to make a 12dB/octave, 18dB/octave, or even 24dB/octave filter? Unfortunately, there are no passive components that can meet such requirements, so we need a different approach. Why not combine a series of RC filters to get the steeper frequency response we need? For example, two RC filters combined will give a 12dB/octave filter, three will give an 18dB/octave filter, four will give a 24dB/octave filter... Ideally, such a circuit composed of four RC filters stacked together will look similar to Figure 9. If this filter is working properly, its ideal transfer function should be similar to the graph shown in Figure 10.
Figure 9: A 24dB/octave low-pass RC filter composed of four 6dB/octave filters stacked together
Figure 10: The above hypothetical 24dB/octave attenuation of high frequency harmonics
However, the working method of the filter is not as simple as imagined. Our passive RC filter response model needs to have certain assumptions about its input and output values. Although a single RC circuit can meet this requirement, if you stack multiple such circuits together, the response will be completely different. So how can we make the filter we need?
If you know anything about synthesizers, you may have heard that 12dB/octave filters are sometimes called "2-pole" filters, and 24dB/octave filters are called "4-pole" filters. So you might assume that each 6dB/octave block in Figure 9 is a "pole". However, this assumption is not accurate.
In fact, the names "2-pole" and "4-pole" are the result of a mathematical operation called "Laplace transform". This transformation allows mathematicians to analyze the linear response of audio signals (as for what is a "linear system" and the mathematical principles behind it, it is too complicated to be discussed in this article). In short, the reason why we use "pole" to describe filters is because the Laplace transform diagram of an RC filter looks like a rubber plane supported by tent poles. A single 6dB/octave filter has one such "tent pole", so it is called a "1-pole" filter, a 12dB/octave filter has two such "tent poles", and so on...
Figure 11: Illustration of the Laplace transform of a 1-pole (left), 2-pole (center), and 3-pole (right) filter
Therefore, if you want to make a passive RC filter with a single cutoff frequency of 24dB/octave, you need to make the four poles in the same position in the figure. But as I explained before, it is impossible to achieve such an effect using passive components, because multiple passive components will interact with each other, and the working method of the combined passive components is different from that of a single passive component. Therefore, the frequency response composed of four 6dB/octave RC filters cannot achieve the ideal effect in Figure 10. On the contrary, in reality, we will get a transfer function curve with four "inflection points", as shown in Figure 12.
Figure 12: Transfer function curve composed of four 6dB/octave filters superimposed
We can therefore draw an important conclusion: although the passive 4-pole filter will be close to the 24dB/octave response at high frequencies, in some frequency bands, its response will be more or less similar to 6dB/octave, 12dB/octave, and 18dB/octave. In addition, if you look closely at the above graph, you can see that these middle areas are not exactly straight lines, that is, the frequency and input and output signals are not as direct as before.
Although we have designed a circuit that theoretically has 24dB/octave, the cutoff frequencies of the filters are not exactly the same due to the interaction between them. In addition, the inflection point of each cutoff frequency is smooth, and even if the cutoff frequencies of the four sub-filters are exactly the same, the synthesized inflection point will not become "sharp". Moreover, we have also ignored its impact on frequencies below the cutoff frequency. Signals below the cutoff frequency should not be affected by the filter in theory, but in fact, due to the working principle of the above-mentioned filter, the signals below the cutoff frequency will also be attenuated to a certain extent, and may also produce some other unwanted results. And one last point: we have also completely ignored the phase shift of the waveform caused by each sub-filter.
Previous article:Frequently Asked Questions about Image Acquisition Cards
Next article:High-loudness alarm generator/electronic sound-imitation mouse repellent/voice recording and playback circuit design
- Popular Resources
- Popular amplifiers
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- FPGA Deep Analysis.pdf
- C51 uses macro definition to replace printf function
- Understanding the CAN bus from the bottom up
- [STM32WB55 Review] +USB Dongle Bricked
- STM32F429 USB_OTG_FS (PA11, PA12) read USB disk problem
- PoE and PoE+, an article to understand Power over Ethernet
- How to control trace impedance of PCB for signal integrity?
- Disassembling the USB wireless network card, the circuit scheme is very classic
- Low-cost MCU options
- 5G millimeter wave antenna