オペアンプをノードに揃える、ノードをオペアンプの出力に揃える

オペアンプをノードに揃える、ノードをオペアンプの出力に揃える

ノードをオペアンプの出力に合わせる方法についてたくさん見つけました。しかし、tikzpicture にノードがあると仮定して、オペアンプを配置し、その入力がノードに合うようにしたいと思います。

どうすればいいでしょうか?

たとえば、C1 をオペアンプの正入力に接続します。

\documentclass[]{article}

%opening
\title{}
\author{}


\usepackage{tikz}
\usetikzlibrary{shapes,arrows,positioning}
\usepackage[siunitx]{circuitikz} % Loading circuitikz with siunitx option

\begin{document}

\maketitle

\begin{abstract}

\end{abstract}

\section{}

\begin{figure}[!htbp]
    \centering
    \ctikzset{voltage/distance from node=.2}% defines arrow's distance from nodes
    \ctikzset{voltage/distance from line=.02}% defines arrow's distance from wires
    \ctikzset{voltage/bump b/.initial=.1}% defines arrow's curvature

    \begin{tikzpicture}

    \draw
    node[op amp,yscale=-1] (opamp) {}

    node[ocirc, left=3cm of opamp.+] (B) {}
    node[ocirc, below=5cm of B] (A) {}

    %node[op amp,yscale=-1] (opamp1) {}
    coordinate[right=0.5cm of opamp.out] (tmpout1)
    node[circ, below=2cm of tmpout1] (div1) {}
    (tmpout1 |- A) coordinate (tmpgndout1)
    coordinate[left=0.5cm of opamp.-] (opamp1-)

    (B) -- (opamp.+)
    (A) -- (tmpgndout1)
    (opamp.-) -- (opamp1-) -- (opamp1- |- div1) -- (div1)
    (opamp.out) -- (tmpout1) to[R, l=$R_1$] (div1) 
    (div1) to[R, l=$R_2$] (tmpgndout1)

    node[circ, right=2cm of tmpout1] (stage2in) {}
    (tmpout1) to[C,l=C$_1$] (stage2in)
    (stage2in) to[R,l=$R_3$] (stage2in |- A) -- (tmpgndout1)

    node[op amp,right=1cm of stage2in,yscale=-1] (opamp) {}

    ;
    \end{tikzpicture}
    \caption{Active Envelope Detector Circuit}
    \label{fig:detector_circuit_active}
\end{figure}

\end{document}

例

答え1

とにかく、自分で解決策を見つけたので、あなたの回路について次の(私の意見ではより一貫性のある)コードを確認することをお勧めします。

\documentclass[margin=3mm]{standalone}
\usepackage{siunitx}
\usepackage[siunitx]{circuitikz} % Loading circuitikz with siunitx option

\begin{document}
    \begin{tikzpicture}
\node [op amp, yscale=-1] (oa1) {};
\draw   (oa1.+)     to[short,-o] ++ (-1,0)      coordinate (in)
        (oa1.out)   to [R=$R_1$,*-*] ++ (0,-2)  coordinate (aux1) 
                    to [R=$R_2$,-*] ++ (0,-2)      
        (oa1.out)   to [C=$C_1$,-*] ++ (2,0)    coordinate (aux2)
                    to [R=$R_3$,-*] ++ (0,-4)   coordinate (aux3)
                    to [short,-o] (in |- aux3)
        (aux1)      -|  (oa1.-)
        (aux2)      to[short]   ++ (1,0)
            node[op amp, yscale=-1,anchor=+] (oa2) {}
        (oa2.out) to [short,-o] ++ (1,0)        coordinate (out)
        (aux3)      to[short,-o]    (aux3 -| out);
    \end{tikzpicture}
\end{document}

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

私の MWE では画像のみに焦点を当てているため、standaloneドキュメント クラスを使用します。回路に関する情報を提供する限り、Scheme は完了です。回路の描画に役立つ可能性があります。

答え2

答えは見つかりました。これで大丈夫だと思います。

    node[op amp, right= 2cm of stage2in, anchor=+, yscale=-1] (opamp2) {}

関連情報