Electronic – How to calculate the amplitudes of this signal’s harmonics

filterfouriersignalsignal processingvoltage

How can I calculate the amplitude's of the harmonics? This signal is the voltage of a capacitor bank. There is a few amperes of current on the capacitors in form of PWM. On the signal the 200mV Jumps are the voltage drops on the ESR. The jump occurs when the PWM changes from Ton to Toff or vica versa.enter image description here
enter image description here

On the second picture I approximated the 200mV jumps with an instantaneous jump.
How should I derive the Fourier transformation on this signal?

Best Answer

You can find the harmonics of a signal by computing the Fourier series of the signal, given that the signal is periodic.

You have a non-periodic signal here . However, you can still calculate Fourier series between the full finite interval \$T\$ of the signal, assuming that the signal is 'periodic' with \$T\$, ie., assuming that the signal repeats over and over like that afterwards.

How should I derive the Fourier transform on this signal?

You can calculate the Fourier transform of the signal using integration by parts. For eg: enter image description here

$$F{\{v(t)\}} = \int_{-\infty}^\infty v(t)e^{-j\omega t}dt$$ $$=\int_{0}^T v(t)e^{-j\omega t}dt$$ $$=\int_{0}^{t_0} v(t)e^{-j\omega t}dt+\int_{t_0}^{t_1} v(t)e^{-j\omega t}dt+\int_{t_1}^{t_2} v(t)e^{-j\omega t}dt+\int_{t_2}^{T} v(t)e^{-j\omega t}dt$$

Each of the four terms are simple linear equations for line on the respective intervals, which you can derive if you know the values of \$a, b, c, t0, t1, t2, T \$