このオペアンプの質問をどのように再現しますか?

このオペアンプの質問をどのように再現しますか?

ここに画像の説明を入力してくださいテキストの上の図はこれです。これは私がこれまで行ってきたことですが、これを再現するのに苦労しています。

\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}

ここに画像の説明を入力してください

関連情報