0

Good Day, I want to create a Tripole that basically shows the signal from a signal generator. something similar like in the image below, there is a square called "PWM" that shows a square signal, how would I do such a thing in circuitikz? like this

2
  • 1
    You have several options --- there is no such a symbol, but it is easy enough to create it in TikZ.
    – Rmano
    Commented Dec 10, 2020 at 8:41
  • @Rmano can you show me a short example, maybe I can follow from there.
    – Rainb
    Commented Dec 10, 2020 at 8:45

1 Answer 1

1

Sources are basically round in circuitikz, so the "standard" solution would be something like:

\documentclass[border=10pt]{standalone}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
    \node[nfet, rotate=90](N){};
    \draw (N.G) -- ++(0,-1) to[sqV, l=PWM] ++(0,-1) node[ground]{};
\end{circuitikz}
\end{document}

enter image description here

If you want the square thing, you can draw it with plain TikZ command (remember, a circuitikz is just a tikzpicture):

\documentclass[border=10pt]{standalone}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
    \node[nfet, rotate=90](N){};
    \node[draw, thick, minimum width=1cm, minimum height=1cm](B) at ([yshift=-2cm]N.G) {};
    \draw (B.north) -- (N.G);
    \node [below] at (B.north) {PWM};
    \draw (B.south west) ++(0.1,0.1) -| ++(0.2,0.4) -| ++(0.2,-0.4) -| ++(0.2,0.4) -| ++(0.2,-0.4);
\end{circuitikz}
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .