如何繪製與其他電阻串聯的並聯電阻?

如何繪製與其他電阻串聯的並聯電阻?

我目前有

\begin{figure}[H]
    \centering
     \begin{circuitikz}
      \draw (0,0)
      to[V,v=$5V$] (0,4) % The voltage source
      to[R=$3.9$\si{\ohm}] (4,4)
      to[R=$19\si{\ohm}$] (4,0) % The resistor
      to[short] (3,0)
      to[short] (3,.5) 
      to [R=$33$\si{\ohm} (1,.5)
      to [short] (1,.5)
      to[short] (1,0) 
      to [short] (1,-.5)
      to [R=$69$\si{\ohm}] (3,-.5)
      to [short] (3,-0.5)
      to[short] (3,0)
   \end{circuitikz}
\end{figure}

我不知道如何完成電路,感謝任何幫助,謝謝!

答案1

歡迎來到 TeX.SE!

siunitx你幾乎完成了......我只使用加載包時的選項來糾正電阻器值的語法circuitikz,將並聯電阻器的值推到相反的兩側並添加缺少的行以關閉電路環路:

\documentclass[margin=3mm]{standalone}
\usepackage{siunitx}
\usepackage[siunitx]{circuitikz}

\begin{document}
    \begin{circuitikz}
\draw (0,0) to[V=5<V>]    (0,4) % The voltage source
            to[R=3.9<\ohm>] (4,4)
            to[R=19<\ohm>]  (4,0) % The resistor
            to[short]       (3,0)
            to[short]       (3,.5)
            to [R,a=33<\ohm>] (1,.5)  |-  (0,0) % <---
      (3,0) to[short]       (3,-.5)
            to [R=69<\ohm>] (1,-.5)             % <----
            to [short]      (1,0);
    \end{circuitikz}
\end{document}

在此輸入影像描述

答案2

這個答案顯示如何siunitx使用單位來排版數字(如果未使用siunitx選項,或在 之外,因為語法已由circuitikzcicruitikzcircuitikz@扎科)以及使用coordinates 來簡化定位事物的過程(加上使用++語法的相對定位)。

雙極子的標籤可以透過使用l_=<label>來切換到另一側,因此對於電阻器使用R, l_=<label>代替R=<label>。我還使用v<=<label>代替 來翻轉電壓方向v=<label>,並使用 來放置結點-*

\documentclass[border=3.14]{standalone}

\usepackage{siunitx}
\usepackage{circuitikz}

\begin{document}
\begin{circuitikz}
  \draw (0,0) coordinate (start)
    to[V,v<=\SI{5}{\volt}] ++(0,4) % The voltage source
    to[R=\SI{3.9}{\ohm}] ++(4,0) coordinate (topright)
    to[R=\SI{19}{\ohm}] (start-|topright) % The resistor
    to[short,-*] ++(-1,0) coordinate (pright)
    to[short] ++(0,.5)
    to[R,l_=\SI{33}{\ohm}] ++(-2,0) coordinate (tmp)
    to[short,-*] (start-|tmp) coordinate (pleft)
    (pright)
    to[short] ++(0,-.5) coordinate (tmp)
    to[R=\SI{69}{\ohm}] (tmp-|pleft)
    to[short] (pleft)
    to[short, -.] (start) % the `-.` ensures there is no gap here
    ;
\end{circuitikz}
\end{document}

在此輸入影像描述

相關內容