演示中的电路

演示中的电路

我正在做演示文稿,我搜索了绘制电路的最佳方法,发现它位于LaTeX。我做了一点工作LaTeX,但不足以绘制这些,所以如果有人能帮助我,我将不胜感激。顺便说一句,我需要重新创建这些电路:

第二 第一的

答案1

在此处输入图片描述

这是第一个电路,我将把第二个电路留给读者作为练习:)。

\documentclass[border=20, tikz]{standalone}
\usepackage{circuitikz}
\usetikzlibrary{calc}
\begin{document}
    \begin{tikzpicture}
        \draw (0, 0) to[L, l=\(L_1\)] (0, 4);
        \draw (2, 0) to[C, l=\(C_1\), *-*] (2, 4);
        \draw (2, 4) to[R, l=\(R_1\), *-*] (4, 4);
        \draw (4, 0) to[C, l=\(C_2\), *-*] (4, 4);
        \draw (6, 0) to[R, l=\(R_2\), *-] (6, 2);
        \draw[fill=black] (6, 2) to[diode, l=\(D_1\), -*] (6, 4);
        \draw (8, 0) to[R, l=\(R_3\), *-] (8, 2);
        \draw[fill=black] (8, 4) to[diode, l=\(D_2\), *-] (8, 2);
        \node[op amp, xscale=-1, yscale=-1] (opamp) at (14, 2) {};
        \draw ($(opamp.out) + (-1, 0)$) to[short, *-] (opamp.out);
        \draw ($(opamp.out) + (-1, 0)$) -- ($(opamp.out) + (-1, 1.5)$);
        \draw ($(opamp.out) + (-1, 0)$) -- ($(opamp.out) + (-1, -1.5)$);
        \coordinate (opamp plus) at (opamp.+);
        \coordinate (opamp minus) at (opamp.-);  %  - sign in opamp.- causes errors with the |- notation
        \draw (opamp plus) -- (opamp plus|-(0, 3.5));
        \draw ($(opamp.out) + (-1, 1.5)$) to[R, n=R4, -*] (opamp plus|-(0, 3.5));
        \node[below] at (R4.s) {\(R_4\)};  % want name to appear below below
        \draw (opamp minus) -- (opamp minus|-(0, 0.5));
        \draw ($(opamp.out) + (-1, -1.5)$) to[R, l=\(R_5\), -*] (opamp minus|-(0, 0.5));
        \draw (0, 4) -- (2, 4);
        \draw (4, 4) -- (opamp plus|-(0, 4));
        \draw (15.2, 4) -- (opamp plus);
        \draw (0, 0) -- (8, 0);
        \draw (8, 0) to[R, l=\(R_6\)] (opamp minus|-(0, 0));
        \draw (15.2, 0) -- (opamp minus);
        \node[ground] at (8, 0);
    \end{tikzpicture}
\end{document}

相关内容