feat: Diagram the first-order high-pass filter

This commit is contained in:
Martin Kennedy 2025-05-04 18:31:18 -04:00
parent f1f0017ea6
commit 0b1361af32

View File

@ -76,36 +76,20 @@ This document is a model and instructions for \LaTeX.
Please observe the conference page limits.
\begin{figure}[h]
\caption{test}
\caption{A first-order high-pass filter}
\begin{circuitikz}[american voltages]
\node (origin) at (0,0) {$.$};
\node (in_p) at (-0.5,2.75) {};
\node (ground_in_p) at (-0.75,0) {};
\node (high_in_p) at (-0.75,2.75) {};
\node[flowarrow, above=0.2cm] at (high_in_p) {$i_p$};
\draw (high_in_p) to[open, v=$v_p$] (ground_in_p);
\node (in_n) at (0,1) {};
\node (ground_in_n) at (0,0) {};
\node (high_in_n) at (0,1) {};
\node[flowarrow, above=0.5cm] at (high_in_n) {$i_n$};
\draw (high_in_n) to[open, v=$v_n$] (ground_in_n);
\node (opamp) [plain amp,yscale=-1.5,xscale=2] at (2,2) {};
\draw (high_in_p) to (opamp.+);
\node (opamp_in_p) at (0.75,2.75) {};
\node (opamp_in_n) at (0.75,1.25) {};
% TODO \draw [color=red] (opamp.b+) -- ++(0.5,0.5); switch to
\draw (opamp.-) to[short, -*] (opamp_in_n);
\node [below=0.05] at (opamp_in_n) {$-$};
\draw (opamp.+) to[short, -*] (opamp_in_p);
\node [above=0.05] at (opamp_in_p) {$+$};
\draw (opamp_in_p) [R=$R_i$] to (opamp_in_n);
\draw
(0,2) node[above=0.2cm]{$v_{in}$} to [short, o-] [R, l_=$R_1$] (1.5,2) coordinate (IN)
(3,3) to [R, l_=$R_2$] (5.375,3) coordinate (FB)
(3,2)
node[op amp, noinv input down, anchor=-](OA) {}
(OA.-) to [short, *-] ++(0, 1)
(OA.-) to [C=$\frac{1}{sC}$] (IN)
(OA.+) to ++(0,-0.5) node[ground]{}
(OA.out) to ++(0, 0) coordinate (OUT) to (FB)
(OUT) to [short, *-o] ++(1,0) node [right=0.2cm]{$v_{out}$}
;
\end{circuitikz}
\end{figure}