
Вот диаграмма над текстом. Это то, что я сделал до сих пор, но мне сложно это повторить.
\begin{circuitikz}
\draw
(0, 0) node[op amp] (opamp) {}
(opamp.-) to[R,l_=$R_1$,-o] (-2, 0.35) -- (-3, 0.35) to [V=$v_1$] (-3,-0.5) to (-3,-0.5) node[ground]{}
(opamp.-) to[short,*-] ++(0,0.5) coordinate (leftC)
to[R=$R_2$] (leftC -| opamp.out)
to[short,-*] (opamp.out) to [short,-o] (1.5,0) to (1.5,-0.5) node[ground]{}
(opamp.+) -- (-1,-0.35) to (-1,-0.5) node[ground]{}
;
\end{circuitikz}
решение1
Это очищенная версия MWE, с более полной приверженностью относительным координатам. Увы, это совершенно другая схема, чем нарисованная.
\documentclass {standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\draw
(0, 0) node[op amp] (opamp) {}
(opamp.-) to[R,l_=$R_1$,-o] ++(-2, 0) to [V=$v_1$] ++(0,-2) node[ground]{}
(opamp.-) to[short,*-] ++(0,1) coordinate (leftC)
to[R=$R_2$] (leftC -| opamp.out)
to[short,-*] (opamp.out) to [short,-o] (1.5,0) to (1.5,-0.5) node[ground]{}
(opamp.+) -- ++(0,-0.5) node[ground]{}
;
\end{circuitikz}
\end{document}
решение2
Используя siunitx
опцию записи величин, относительные координаты для позиционирования элементов схемы, определите входы и якоря операционного усилителя, а также americano
стиль управления:
\documentclass[border=3.131592]{standalone}
\usepackage[siunitx]{circuitikz}
\begin{document}
\begin{circuitikz}[american]
\draw (0,0) to[R,l=\qty{12}{\kilo\ohm}] ++(2,0) coordinate[label=$V_1$] (in+)
to[short,i=$i_1$, *-] ++(1,0)
node[op amp,
noinv input up,
anchor=+] (oa) {}
(in+ |- oa.-) coordinate[label=$V_2$] (in-)
to[short,i=$i_2$, *-] (oa.-)
(oa.out) to[short,*-o] ++(2, 0) coordinate (out+)
(oa.out) to[R,l=\qty{15}{\kilo\ohm},-*] ++(0,-2) coordinate (aux1)
to[R,l=\qty{15}{\kilo\ohm},-*] ++(0,-2)
to[short] ++(2, 0) coordinate (out-)
to[open, v=$V_o$, o-o] (out+)
(in-) |- (aux1)
(0,0) to[V,a=\qty{12}{\volt}] (0,0 |- out-)
-- (out-)
;
\end{circuitikz}
\end{document}