Skip to content

Latest commit

 

History

History
444 lines (338 loc) · 13.8 KB

File metadata and controls

444 lines (338 loc) · 13.8 KB

% Circuit Signals % Diego Trapero

#Circuit Signals

Circuit signal A circuit signal, $s(t)$, is a function of time that represents the values that an electrical magnitude in a circuit takes over time.

##Periodic signals

Periodic signal A periodic signal is a signal $s(t)$ that satisfies $s(t) = s(t + T)$ for all $t$

  • Note Constant signals are periodic signals because they fulfill the condition.

Periodic signal parameters

  • The period is the smallest value of T satisfying $u(t + T) = u(t)$ for all t
  • Frecuency, $f = 1/T$ $[Hz]$ $[s^{-1}]$
  • Angular frecuency, $\omega = 2 \pi f$ $[rad]$
  • Amplitudes
    • Peak-to-peak amplitude
    • Peak amplitude, commonly referred as just amplitude

###Average value of a periodic signal

The average value $S_{avg}$ or $\bar{s(t)}$ of a periodic signal $S(t)$ is

$$S_{avg} = \bar{s(t)} = \frac{1}{T} \int_{t}^{t+T} s(t) dt$$

  • $S_{avg}$ can be negative, positive or zero

Average power Average power in a component is a case of the average value of a periodic signal. The average power $P$ or $\bar{p(t)}$ dissipated in a component is

$$ P = \bar{p(t)} = \frac{1}{T} \int_{t_0}^{t_0+T} p(t) dt = \frac{1}{T} \int_{t_0}^{t_0+T} v(t)i(t) dt$$

###Root Mean Square of a periodic signal

The Root Mean Square $S_{RMS}$ of a periodic signal $s(t)$ is

$$ S_{RMS} = \sqrt { {1 \over T} \int_{t_0}^{t_0 + T} {s(t)^2 dt} }$$

Motivation for RMS value RMS value of a voltage or current signal (constant or non-constant) has the property that is the value of an equivalent DC voltage or current signal that would dissipate the same power through a resistance.

Average power has the expression $P = \bar{p(t)} = \frac{1}{T} \int_{t_0}^{t_0+T} v(t)i(t) dt$ and using the RMS value of the signals we want to express it in a similar way to DC, where power is the product of two constants: $P = VI$.

a) RMS value of current

a.1) Using Ohm Law derivate the power expression in DC: $P = VI = RI^2$.

a.2) Calculate the expression for $I_{RMS}$, that satisfies $P = RI_{RMS}^2$.

$$ P = RI_{RMS}^2 = \frac{1}{T} \int_{t_0}^{t_0+T} v(t)i(t) \,dt $$
$$ RI_{RMS}^2 = \frac{1}{T} \int_{t_0}^{t_0+T} Ri^2(t) \,dt $$
$$ \cancel{R} I_{RMS}^2 = \cancel{R} \frac{1}{T} \int_{t_0}^{t_0+T} i^2(t) \,dt $$
$$ I_{RMS} = \sqrt{ \frac{1}{T} \int_{t_0}^{t_0+T} i^2(t) \,dt } $$

b) RMS value of voltage

b.1) Using Ohm Law derivate the power expression in DC: $P = VI = \frac{V^2}{R}$.

b.2) Calculate the expression for $I_{RMS}$, that satisfies $P = VI = \frac{V_{RMS}^2}{R}$.

$$ P = \frac{V_{RMS}^2}{R} = \frac{1}{T} \int_{t_0}^{t_0+T} v(t)i(t) \,dt $$
$$ \frac{V_{RMS}^2}{R} = \frac{1}{T} \int_{t_0}^{t_0+T} \frac{1}{R} v^2(t) \,dt $$
$$ \cancel{ \frac{1}{R} } V_{RMS}^2 = \cancel{ \frac{1}{R} } \frac{1}{T} \int_{t_0}^{t_0+T} v^2(t) \,dt $$
$$ V_{RMS} = \sqrt{ \frac{1}{T} \int_{t_0}^{t_0+T} v^2(t) \,dt } $$

c) Check results with the $P = VI$ formula. I don't know how to prove it yet, or even if it is true

$$P = VI = \sqrt{ \frac{1}{T} \int_{t_0}^{t_0+T} v^2(t) \,dt } \sqrt{ \frac{1}{T} \int_{t_0}^{t_0+T} i^2(t) \,dt } $$

$$P = \frac{1}{T} \sqrt{ \int_{t_0}^{t_0+T} v^2(t) \,dt \cdot \int_{t_0}^{t_0+T} i^2(t) \,dt } $$

Properties of RMS value

  • The RMS value of a function is the same as the RMS value of the absolute value of the function $$RMS[ f(t) ] = RMS[ |f(t)| ]$$

###Signal Examples

####Sinusoidal signal

$$s(t) = A \cdot \sin{\omega t + \varphi}$$

Average value of the sinusoidal signal

$$ S_{AVG} = \frac{1}{T} \int_{t}^{t+T} A \cos{t} dt$$

$$ S_{AVG} = \frac{A}{T} \left[ \sin{t} \right]_{t}^{t+T} dt = 0 $$

RMS value of the sinusoidal signal

\begin{align*} S_{RMS} &= \sqrt { {1 \over T} \int_{t_0}^{t_0 + T} { [A \cos{t}]^2 dt} } \ &= \sqrt { {1 \over T} \int_{t_0}^{t_0 + T} { [A \cos{t}^2 dt} } \ &= \sqrt { {A^2 \over T} \int_{t_0}^{t_0 + T} { \frac{1 + \cos{2t} }{2} dt} } \ &= \sqrt { {A^2 \over T} [1/2(t + 1/2 \sin{2t} ) ]_{t}^{t+T} } \ &= \sqrt { {A^2 \over 2T} T } = \sqrt { {A^2 \over 2} } = \frac{A}{\sqrt{2}} \end{align*}

Normalized Average and RMS values table

  • Amplitudes are normalized with the peak value of the signal $$s_N = \frac{s_R}{S_{MAX}}$$
  • Frecuency of sinusoidal waves is normalized for the first period to be in the interval $[0, 2\pi]$ $$\theta = \omega t$$ $$t = \frac{\theta}{\omega}$$

\tabulinesep=2mm \begin{longtabu} to\linewidth{|X[1,m,c]|X[1,m,c]|X[1,m,c]|}

\hline
Signal & Average value & Root Mean Square Value \\
\hline

Constant
\begin{tikzpicture}[>=stealth, scale = 0.5, transform shape]
	\begin{axis}[
		xmin=0,xmax=4,
		ymin=0,ymax=2,
		axis x line=middle,
		axis y line=middle,
		axis line style=->,
		%xlabel={$t$},
		%ylabel={$y$},
		ymajorgrids,
		xmajorgrids,
		xtick={0,1,2,3,4},
		xticklabels={$0$, $1$, $2$, $3$, $4$},
		ytick={},
		yticklabels={}
		]
		\addplot[no marks,red,-] expression[domain=0:4,samples=100]{1};
	\end{axis}
\end{tikzpicture}
&
1
&
1
\\
\hline

Square Wave
\begin{tikzpicture}[>=stealth, scale = 0.5, transform shape]
	\begin{axis}[
		xmin=0,xmax=4,
		ymin=0,ymax=2,
		axis x line=middle,
		axis y line=middle,
		axis line style=->,
		%xlabel={$t$},
		%ylabel={$y$},
		ymajorgrids,
		xmajorgrids,
		xtick={0,1,2,3,4},
		xticklabels={$0$, $1$, $2$, $3$, $4$},
		ytick={},
		yticklabels={}
		]
		\addplot[no marks,red,-] expression[domain=0:1,samples=100]{1};
		\addplot[no marks,red,-] expression[domain=1:2,samples=100]{0};
		\addplot[no marks,red,-] expression[domain=2:3,samples=100]{1};
		\addplot[no marks,red,-] expression[domain=3:4,samples=100]{0};
	\end{axis}
\end{tikzpicture}
&
$$d$$
&
$$\sqrt{d}$$
\\
\hline

Sinusoidal Wave
\begin{tikzpicture}[>=stealth, scale = 0.5, transform shape]
	\begin{axis}[
		xmin=0,xmax=13,
		ymin=-1,ymax=1,
		axis x line=middle,
		axis y line=middle,
		axis line style=->,
		%xlabel={$t$},
		%ylabel={$y$},
		ymajorgrids,
		xmajorgrids,
		xtick={0,3.14,6.28,9.42, 12.56},
		xticklabels={0, $\pi$, $2\pi$, $3\pi$, $4\pi$},
		ytick={},
		yticklabels={}
		]
		\addplot[no marks,red,-] expression[domain=0:4*pi,samples=100]{sin(deg(x))};
	\end{axis}
\end{tikzpicture}
&
0
&
$$\frac{1}{ \sqrt{2} }$$
\\
\hline

Fully Rectified Sinusoidal Wave
\begin{tikzpicture}[>=stealth, scale = 0.5, transform shape]
	\begin{axis}[
		xmin=0,xmax=13,
		ymin=-1,ymax=1,
		axis x line=middle,
		axis y line=middle,
		axis line style=->,
		%xlabel={$t$},
		%ylabel={$y$},
		ymajorgrids,
		xmajorgrids,
		xtick={0,3.14,6.28,9.42, 12.56},
		xticklabels={0, $\pi$, $2\pi$, $3\pi$, $4\pi$},
		ytick={},
		yticklabels={}
		]
		\addplot[no marks,gray,-] expression[domain=0:4*pi,samples=100]{sin(deg(x))};
		\addplot[no marks,red,-] expression[domain=0:pi,samples=100]{sin(deg(x))};
		\addplot[no marks,red,-] expression[domain=pi:2*pi,samples=100]{-sin(deg(x))};
		\addplot[no marks,red,-] expression[domain=2*pi:3*pi,samples=100]{sin(deg(x))};
		\addplot[no marks,red,-] expression[domain=3*pi:4*pi,samples=100]{-sin(deg(x))};
	\end{axis}
\end{tikzpicture}
&
$$\frac{2}{\pi}$$
&
$$\frac{1}{ \sqrt{2} }$$
\\
\hline

Half Rectified Sinusoidal Wave
\begin{tikzpicture}[>=stealth, scale = 0.5, transform shape]
	\begin{axis}[
		xmin=0,xmax=13,
		ymin=-1,ymax=1,
		axis x line=middle,
		axis y line=middle,
		axis line style=->,
		%xlabel={$t$},
		%ylabel={$y$},
		ymajorgrids,
		xmajorgrids,
		xtick={0,3.14,6.28,9.42, 12.56},
		xticklabels={0, $\pi$, $2\pi$, $3\pi$, $4\pi$},
		ytick={},
		yticklabels={}
		]
		\addplot[no marks,gray,-] expression[domain=0:4*pi,samples=100]{sin(deg(x))};
		\addplot[no marks,gray,-] expression[domain=0:4*pi,samples=100]{-sin(deg(x))};
		\addplot[no marks,red,-] expression[domain=0:pi,samples=100]{sin(deg(x))};
		\addplot[no marks,red,-] expression[domain=pi:2*pi,samples=100]{0};
		\addplot[no marks,red,-] expression[domain=2*pi:3*pi,samples=100]{sin(deg(x))};
		\addplot[no marks,red,-] expression[domain=3*pi:4*pi,samples=100]{0};
	\end{axis}
\end{tikzpicture}
&
$$\frac{1}{\pi}$$
&
$$\frac{1}{2}$$
\\
\hline

\vspace{30mm}
&
\vspace{30mm}
&
\vspace{30mm}
\\
\hline

\vspace{30mm}
&
\vspace{30mm}
&
\vspace{30mm}
\\

\end{longtabu}

###Periodic signal decomposition in Fourier Series

Motivation The phasor method can be used to solve circuits with sinusoidal signals (AC circuits), avoiding the necessity of solving the time-domain differential equations. A circuit with other type of waveforms cannot be analysed with this method, unless it is decomposed into its sinusoidal components. The Fourier series allows us to decompose any waveform to a series of sine and cosine functions. Then, we can solve each circuit (an AC circuit for each sinusoidal component of the wave) separatedly and, apllying superposition, add up all the solutions to get the solution of the original circuit.

Fourier decomposition Any periodic signal can be decomposed in a sum of a constant value plus a (possibly infinite) series of sine and cosine functions. $$s(x) = S_{avg} + \sum_{n=1}^\infty A_n \cos{n \omega t} + \sum_{n=1}^\infty B_n \sin{n \omega t}$$

Fourier series table

\tabulinesep=1mm

\begin{longtabu} to\linewidth{|X[1,m,c]|X[3,m,c]|}

\hline
Function & Fourier Series \\
\hline


\begin{tikzpicture}[>=stealth, scale = 0.4, transform shape]
	\begin{axis}[
		xmin=0,xmax=4,
		ymin=-2,ymax=2,
		axis x line=middle,
		axis y line=middle,
		axis line style=->,
		%xlabel={$t$},
		%ylabel={$y$},
		ymajorgrids,
		xmajorgrids,
		xtick={0,1,2,3,4},
		xticklabels={$0$, $1$, $2$, $3$, $4$},
		ytick={},
		yticklabels={}
		]
		\addplot[no marks,red,-] expression[domain=0:1,samples=100]{1};
		\addplot[no marks,red,-] expression[domain=1:2,samples=100]{-1};
		\addplot[no marks,red,-] expression[domain=2:3,samples=100]{1};
		\addplot[no marks,red,-] expression[domain=3:4,samples=100]{-1};
	\end{axis}
\end{tikzpicture}
&
$$ \frac{4}{\pi} \left( \frac{\sin{t}}{1} + \frac{\sin{3t}}{3} + \frac{\sin{5t}}{5} + ... \right) $$
\\
\hline

\begin{tikzpicture}[>=stealth, scale = 0.4, transform shape]
	\begin{axis}[
		xmin=0,xmax=4,
		ymin=-2,ymax=2,
		axis x line=middle,
		axis y line=middle,
		axis line style=->,
		%xlabel={$t$},
		%ylabel={$y$},
		ymajorgrids,
		xmajorgrids,
		xtick={0,1,2,3,4},
		xticklabels={$0$, $1$, $2$, $3$, $4$},
		ytick={},
		yticklabels={}
		]
		\addplot[no marks,red,-] expression[domain=0.00:0.33,samples=100]{0};
		\addplot[no marks,red,-] expression[domain=0.33:0.66,samples=100]{1};
		\addplot[no marks,red,-] expression[domain=0.66:1.33,samples=100]{0};
		\addplot[no marks,red,-] expression[domain=1.33:1.66,samples=100]{-1};
		\addplot[no marks,red,-] expression[domain=1.66:2.33,samples=100]{0};
		\addplot[no marks,red,-] expression[domain=2.33:2.66,samples=100]{1};
		\addplot[no marks,red,-] expression[domain=2.66:3.33,samples=100]{0};
		\addplot[no marks,red,-] expression[domain=3.33:3.66,samples=100]{-1};
		\addplot[no marks,red,-] expression[domain=3.66:4.00,samples=100]{-1};
	\end{axis}
\end{tikzpicture}
&
$$\frac{4}{\pi} \left( \frac{\sin{t}\cos{\beta}}{1} + \frac{\sin{3t}\cos{3\beta}}{3} + \frac{\sin{5t}\cos{5\beta}}{5} + ... \right)$$
\\
\hline


\begin{tikzpicture}[>=stealth, scale = 0.4, transform shape]
	\begin{axis}[
		xmin=0,xmax=13,
		ymin=-1,ymax=1,
		axis x line=middle,
		axis y line=middle,
		axis line style=->,
		%xlabel={$t$},
		%ylabel={$y$},
		ymajorgrids,
		xmajorgrids,
		xtick={0,3.14,6.28,9.42, 12.56},
		xticklabels={0, $\pi$, $2\pi$, $3\pi$, $4\pi$},
		ytick={},
		yticklabels={}
		]
		\addplot[no marks,gray,-] expression[domain=0:4*pi,samples=100]{sin(deg(x))};
		\addplot[no marks,red,-] expression[domain=0:pi,samples=100]{sin(deg(x))};
		\addplot[no marks,red,-] expression[domain=pi:2*pi,samples=100]{-sin(deg(x))};
		\addplot[no marks,red,-] expression[domain=2*pi:3*pi,samples=100]{sin(deg(x))};
		\addplot[no marks,red,-] expression[domain=3*pi:4*pi,samples=100]{-sin(deg(x))};
	\end{axis}
\end{tikzpicture}
&
$$ \frac{2}{\pi} - \frac{4}{\pi} \left( \frac{\sin{t}}{1 \cdot 3} + \frac{\sin{2t}}{3 \cdot 5} + \frac{\sin{3t}}{5 \cdot 7} + ... \right) $$
\\
\hline

\end{longtabu}

Superposition theorem The superposition theorem for electrical circuits states that for a linear system the response (voltage or current) in any branch of a bilateral linear circuit having more than one independent source equals the algebraic sum of the responses caused by each independent source acting alone, while all other independent sources are cancelled.

Solving a circuit with a Fourier decomposed periodic signal From the superposition theorem, we know that the reponse of the circuit can be derived from the contribution of many different signals ...

Parseval formula The Parseval formula expresses the RMS value of a signal in terms of the RMS values of the harmonic components of the signal $$ S_{RMS}^2 = S_{avg}^2 + S_{1 RMS}^2 + S_{2 RMS}^2 + S_{3 RMS}^2 + ... $$

  • The squared RMS value of a signal is the sum of all the squared RMS values its sinusoidal components
  • The RMS value of a signal is the geometric mean of the RMS values of its sinusoidal components

Ripple RMS value In constant signals, ripple are the harmonics other than the signal average value. According to Parseval formula, the RMS value of the ripple is the geometric mean of the RMS values of its sinusoidal components: $$ S_{RMS ripple}^2 = S_{1 RMS}^2 + S_{2 RMS}^2 + S_{3 RMS}^2 + ... $$

We can derive the ripple RMS value from the DC signal's Parseval formula: $$ S_{RMS}^2 = S_{avg}^2 + S_{1 RMS}^2 + S_{2 RMS}^2 + S_{3 RMS}^2 + ... = S_{avg}^2 + S_{RMSripple}^2 $$ \begin{align*} S_{RMS ripple}^2 &= S_{RMS}^2 - S_{avg}^2 \ S_{RMS ripple} &= \sqrt{ S_{RMS}^2 - S_{avg}^2 } \end{align*}

Average power from harmonics

$$P = V_{avg} I_{avg} + V_{1 RMS} I_{1 RMS} \cos{\varphi_1} + V_{2 RMS} I_{2 RMS} \cos{\varphi_2} + ... $$

  • Only same frecuency harmonics produce power.