我画了一个误差放大器,但我想反转端子。
以及如何在中绘制比较器circuitikz
。附有屏幕截图。
\begin{figure}[h]
\begin{center}
\begin{circuitikz}
\draw (-3,4) to[battery1] node[ground]{} (-3,0);
\draw (-3.5,2) node[left]{$V_\mathrm{in}$};
\draw (-3,4) to[short] (2,4);
\draw (2.5,4) node[nigfete, rotate=90] (fet) {} (fet.S) to[L,l=$L$] (7,4);
\draw (6.5,4) to[C,l=$C$,*-](6.5,0);
\draw (6.5,4) to[short] (8.5,4) to[R,l=$R_1$](8.5,2) to[R,l=$R_2$] node[ground]{} (8.5,0);
\draw (4,2) node[nigfete](fet){}
(fet.D) to[short,-*] (4,4)
(fet.S) to[short,-*](4,0);
\draw (4,0) node[ground]{}to[short] (6.5,0);
\draw (4,-2) node[op amp, rotate=180](opamp){};
\draw (opamp.+) to[battery1,l=$V_{ref}$] node[ground]{}(6.2,-1.5);
\draw (opamp.-) to[short] (7.5,-2.5)to[short](7.5,2) to[short,-*](8.5,2);
\draw (1,-2) node[op amp, rotate=180](comp){};
\end{circuitikz}
\end{center}
\end{figure}
答案1
对于双极子,您可以使用,但对于[mirror]
节点,您可以使用。[xscale=-1]
[rotate=180]
\documentclass{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (-3,4) to[battery1] node[ground]{} (-3,0);
\draw (-3.5,2) node[left]{$V_\mathrm{in}$};
\draw (-3,4) to[short] (2,4);
\draw (2.5,4) node[nigfete, rotate=90] (fet) {} (fet.S) to[L,l=$L$] (7,4);
\draw (6.5,4) to[C,l=$C$,*-](6.5,0);
\draw (6.5,4) to[short] (8.5,4) to[R,l=$R_1$](8.5,2) to[R,l=$R_2$] node[ground]{} (8.5,0);
\draw (4,2) node[nigfete](fet){}
(fet.D) to[short,-*] (4,4)
(fet.S) to[short,-*](4,0);
\draw (4,0) node[ground]{}to[short] (6.5,0);
\draw (4,-2) node[op amp, xscale=-1](opamp){};
\draw (opamp.+) to[battery1,l=$V_{ref}$] ++(1.2,0) node[ground]{};
\draw (opamp.-) -| (7.5,2) to[short,-*](8.5,2);
\draw (1,-2) node[op amp, xscale=-1](comp){};
\end{circuitikz}
\end{document}