我正在尝试绘制高通滤波器,但电容输入很奇怪。这是为什么?
\begin{circuitikz}
\draw (0,0) node[op amp] (opamp) {}
(opamp.-) to [R=$R_1$] ($(opamp.-)-(2,0)$)
to[C=$C_1$, *-o] (-4,0)
(opamp.-) |- ($(opamp.-)+(0.2,1)$) to[R=$R_2$] ($(opamp.-)+(2.2,1)$) -|
(opamp.out) to[short,*-] ($(opamp.out)+(.5,0)$) node [right] {$V_{out}$} node [ocirc] {}
(opamp.+) to[short] ($(opamp.+)-(0,.5)$) node[ground] {}
;
\end{circuitikz}
生产
答案1
使用相对定位:
\documentclass[margin=3mm]{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) node[op amp] (opamp) {}
(opamp.-) to [R=$R_1$] ++ (-2,0)
to [C=$C_1$, *-o] ++(-2,0)
(opamp.-) to [short,*-] ++ (0,1) coordinate (aux)
to [R=$R_2$] (aux-|opamp.out)
-- (opamp.out)
(opamp.out) to [short,*-o] ++ (.5,0) node [right] {$V_{out}$}
(opamp.+) to [short] ++ (0,-.5) node[ground] {};
\end{circuitikz}
\end{document}