0

This question already has an answer here:

I am a total newbie to circuitikz. I want to draw these two circuits

enter image description here

enter image description here

I want to know how to do this. Thanks for all the help.

marked as duplicate by Ian Thompson, user31729, user13907, Svend Tveskæg, Masroor Jan 10 '15 at 12:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 7
    Posting a picture and asking users to reproduce it is not really the way to go in this site. As you have indeed tagged this question as circuitikz-related, you could start by reading the documentation of the package and looking at similar questions already posted on this site. Then, if you find trouble, please ask a specific question about what it is that's hindering you. – Pier Paolo Jan 9 '15 at 16:18
  • yes i am having trouble making it. that is why I asked it here. – shailesh mishra Jan 9 '15 at 16:28
  • 5
    All of this is shown in the manual. Please show some effort. We are volunteers trying to help, not to offer unpaid work. Even the easiest lines of code such as the documentclass are missing here and give us more stuff to type. Please extract the very problem you encounter (after trying some minutes) and put it in your post! Thanks. – LaRiFaRi Jan 9 '15 at 16:54
  • There are 8 answers in the duplicate link, but I failed to see any operational amplifiers or diodes were drawn there via circuitikz. How can a newbie find clues there? – Jesse Jan 10 '15 at 11:14
  • Thanks for this. Thanks also fro understanding the problems of newbies. how do I scale this circuit? Just adding the command \begin{circuitikz}[scale=0.5] in the beginning does not scale it properly – – shailesh mishra Jan 10 '15 at 13:42
6

The basic syntax is

\documentclass[standalone] % or article and other classes.
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (x1,y1) to[<circuit element like, R,L,C>, i=<value>,v=<value>,l=<label>,color=<color>]
      (x2,y2) to[same as above]
      (x3,y3) to[same as above]
      ...
      (xn,yn);
\end{circuitikz}
\end{document}

Please read the manual for more detail Circuitikz or tutorials One of many tutorial

enter image description here

Here is the code to achieve the circuit above

\documentclass[border=5mm,varwidth]{standalone}  
\usepackage[american,siunitx]{circuitikz}

\begin{document}
\begin{circuitikz}
\draw (2,2.5) node[op amp] (opamp1) {$A_1$}
(0.8,0) node [ground] {} to [sV] (0.8,1) |- (opamp1.+)
(opamp1.-) -- + (0,1) -| (opamp1.out);
\draw (6,2) node[op amp] (opamp2) {$A_2$}
(opamp1.out) to [R=$10K$]  (opamp2.-) 
(4.8,1) node [ground] {}to [short] (opamp2.+)
(opamp2.-) -- +(0,1.5) to[R,l=$1M$] +(2.3,1.5) -|
(opamp2.out) to [short,-o] (8, 2)node[right]{$V_o$};
\end{circuitikz}\\
\begin{circuitikz}
\draw (0,1) to[battery1,l=$10V$] (0,4) to[R=$1K$,i=$I$] (3,4) to[D] (3,1)-- (0,1);
\end{circuitikz}
\end{document}
  • Thanks for this. Thanks also fro understanding the problems of newbies. how do I scale this circuit? Just adding the command \begin{circuitikz}[scale=0.5] in the beginning does not scale it properly – shailesh mishra Jan 10 '15 at 13:42
  • Add [...] to the right of circuitikz environment as such \begin{circuitikz}[transform shape, scale=0.5] – Jesse Jan 10 '15 at 13:47
  • Thanks again. There is still another point. I would like to put both r and 10K in the 1st circuit togther. Else I would like to put r=10K in place of 10K. This seems difficult to do. How can we do it? – shailesh mishra Jan 10 '15 at 13:52
  • Change R=$10K$ into R,l=${r=10K}$. – Jesse Jan 10 '15 at 13:56
  • It seems to be working fine. Thanks again. Upvoted. – shailesh mishra Jan 10 '15 at 13:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.