Skip to content

Instantly share code, notes, and snippets.

@adrianparvino
Last active March 5, 2020 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianparvino/5559da9208afadc5095249cda92b1bcc to your computer and use it in GitHub Desktop.
Save adrianparvino/5559da9208afadc5095249cda92b1bcc to your computer and use it in GitHub Desktop.
\begin{circuitikz}[]
\draw (3,0) node[spdt,xscale=-1,yscale=-1] (SwR) {};
\draw (1,0) node[spdt] (SwL) {};
\draw (SwL.out 1) -- (SwR.out 2);
\draw (SwL.out 2) -- (SwR.out 1);
\draw (SwL.in)
-- (0,0) to[sV=220<\volt>] (0,3)
-- (1,3) to[lamp] (3,3) -| (SwR.in);
\end{circuitikz}
\begin{circuitikz}[
octagon/.style={shape=regular polygon, regular polygon sides=8, draw, minimum width=2cm, thick},
pvc/.style={double, double distance=0.5cm, thick},
wire/.style={thick}
]
\node (utility 1) at (4,0) [draw,thick,minimum width=4cm,minimum height=2cm] {};
\node (utility 2) at (4,-4) [draw,thick,minimum width=4cm,minimum height=2cm] {};
\node (junction) at (10,0) [octagon] {};
\draw[pvc] (0, 0) -- (utility 1);
\draw[pvc] (utility 1) -- (junction);
\draw[pvc,transform canvas={xshift = 1cm}] (utility 1) -- (utility 2);
\draw (utility 1) node[spdt, yshift=-0.1cm] (SwL) {};
\draw (utility 2) node[spdt] (SwR) {};
\coordinate (traveler) at ([xshift=1.75cm,yshift=-0.5cm]SwR.in);
\draw[wire] (0, -0.1) -- (SwL.in);
\draw[wire] (SwL.out 1) -- ++(0.25,0) |- (SwR.out 1);
\draw[wire] (SwL.out 2) -- ++(0.4,0) |- (SwR.out 2);
\draw[wire]
(SwR.in) |- (traveler) |- (junction.west|-SwL.in) to[connect with angle=-45]
([yshift=-0.6cm]junction.center) to[lamp] ++(0,1.2)
to[connect with angle=45] ([yshift=0.2cm]junction.west|-SwL.in) -- ([yshift=0.2cm]traveler|-SwL.in) |- ++(-2.5,0.5) |- (0,0.1);
\end{circuitikz}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment