how to make a clean square wave?

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
I think what it should be is a bit more like the thing below (try typing that into v-bulletin) which holds true of all repeating signals, not just square waves (they just hapen to have much larger percentages of the higher harmonics than some other signals like sine, or triangle waves).
 

Attachments

  • fourier equation.gif
    fourier equation.gif
    557 bytes · Views: 102
Who says Math cant be fun ?

Fourier Series of a Square wave



x(t) = ∑ (4V/ k* pi) sin (kwt) V = amplitude
k =1

Where k is odd


So basically you get the fundamental w (angular freq) and odd harmonics decreasing at a rate of 1/k

w = 4V / pi
3w = 4V / 3pi
5w = 4V / 5pi

and so forth until finity or you stop caring :)
 
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.