我想知道我是否可以让 R1 的空间稍微宽一点(每边大约多 5 毫米),我是否可以以某种方式让 R6 直接位于 R5 下方(也就是说让 R4 和 R5 的部分稍微小一点)。我的代码如下。
\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.-);
\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\)};
\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);
\draw (8,0) node [ocirc, ground, scale=1.5]{};
\end{tikzpicture}
答案1
鉴于电路是用绝对坐标制作的,因此您必须更改很多坐标。\draw (2, 4) to[R, l=\(R_1\), *-*] (4, 4);
最后用 (5,4) 更改即可。然后相应地移动其余坐标。