Filtering harmonics from a circuit containing square waves?

Click For Summary

Discussion Overview

The discussion revolves around the characteristics of harmonics in square waves, particularly focusing on their amplitude, extent, and the feasibility of filtering specific harmonics using RC or LC filters. The scope includes theoretical analysis, practical applications in electronics, and implications for signal processing.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • Some participants note that Fourier analysis indicates square waves consist of sine wave harmonics, questioning how far these harmonics extend.
  • One participant suggests that for a perfect square wave, harmonics theoretically extend to infinity, while others propose that real square waves have finite rise times affecting harmonic content.
  • There is uncertainty regarding the amplitude of harmonics, with questions raised about whether they are all of the same amplitude and how Fourier Series terms might inform this.
  • One participant estimates that the highest harmonic frequency is related to the rise time of the square wave, suggesting a specific relationship but acknowledging uncertainty in the exact values.
  • Participants discuss the use of LC filters for removing higher harmonics, while expressing skepticism about the effectiveness of RC filters.
  • Practical applications are mentioned, such as generating sine waves from square waves using higher-order filters, particularly in power electronics and motor drives.
  • Some participants highlight techniques like pulse width modulation to manage lower harmonics in practical scenarios.

Areas of Agreement / Disagreement

Participants express a mix of agreement and disagreement regarding the extent and amplitude of harmonics, as well as the effectiveness of different filtering methods. The discussion remains unresolved on several points, particularly concerning the exact nature of harmonic behavior in real-world applications.

Contextual Notes

Limitations include assumptions about the ideal behavior of square waves versus real-world signals, the dependence on rise times, and the unresolved nature of specific harmonic frequencies and amplitudes.

hobbs125
Messages
108
Reaction score
0
Fourier analysis of a square wave shows that it is made up of sine waves which are harmonics of the square wave.

What I am wondering is how far do these harmonics extend to? Are they all of the same amplitude? And, can specific harmonics be filtered using a series or parallel RC filter?
 
Engineering news on Phys.org
hobbs125 said:
Fourier analysis of a square wave shows that it is made up of sine waves which are harmonics of the square wave.

What I am wondering is how far do these harmonics extend to?
For a perfect square wave, which jumps from one level to another in zero picoseconds, the harmonics extend to infinity. :smile:

Are they all of the same amplitude?
What do you think? Can the terms in the Fourier Series give any clue to this?
 
Theoretically the harmonics extend to infinite. But real square wave have finite rise time. Don't quote me on this, but I think the highest component has a frequency with period around 2.2 times the rise time of the square wave. Say if you have a square wave with rise time of 1nS, the highest harmonic frequency has a period of about 2.2nS which is like about 400MHz. The amplitudes of any harmonics higher than 400MHz is going to be much lower. Don 't quote on my exact number, but you should get what I am driving at.

Yes, you can use LC filter to get rid of the higher harmonics. RC is too flat. In fact, it is quite common to get a pure sine wave starting with a good square wave. It is not as easy as people think to generate a pure sine wave from oscillator, so might as well start with a square wave and filter it down. I did very critical design that need very pure sine wave and I started with square from a TTL crystal and then use a D flip flop to do a divide by two to get rid of the even harmonics.
 
It's practical to make fairly good sine waves from a square wave using a third or fifth order filter.
In power electronics, inverters and motor drives often require waves that have fairly low harmonic content to the fifth harmonic. Beyond that, motors don't object as much because their leakage inductance usually prevents the additional harmonics from causing much loss.

For the lower harmonics, the pulse width can be modulated, or the signal can be stepped. This is the idea behind the quasi sine wave inverter, which reduces the third harmonic by setting its output to "floating" between + output and - output swings.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
Replies
38
Views
6K
  • · Replies 28 ·
Replies
28
Views
6K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 26 ·
Replies
26
Views
3K
Replies
15
Views
3K
Replies
16
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 26 ·
Replies
26
Views
4K