Documente Academic
Documente Profesional
Documente Cultură
1 Como Usar 3
3 Portas Lógicas 10
CIRCUITIKZ
1 Como Usar
\draw(x,y)to[nome do componente](x1,y1);
2
www.number.890m.com
\begin{tikzpicture}
% Nos do circuito
\fill(1,3)circle(.1cm);
\fill(2,3)circle(.1cm);
\fill(1,-1)circle(.1cm);
\fill(2,-1)circle(.1cm);
% Legenda
R1 R2 R3 \draw(-1,1)node{12V};
\draw(1,3.3)node{R1};
\draw(2,3.3)node{R2};
\draw(3,3.3)node{R3};
% Circuito
− \draw(0,-1)to[american voltage
12V + source](0,3)--(3,3)to[
european resistor](3,1)to[
full led](3,-1)--(0,-1);
% Segundo ramo
\draw(2,3)to[european resistor
](2,1)--(2,.5)to[full led
](2,-.5)--(2,-1);
% Terceiro ramo
\draw(1,3)to[european resistor
](1,1)--(1,.5)to[full led
](1,-.5)--(1,-1);
\end{tikzpicture}
2.1 Aparelhos
Amperímetro [ammeter]
\begin{tikzpicture}
A \draw(0,0)to[ammeter](3,0);
\end{tikzpicture}
Voltímetro [voltmeter]
\begin{tikzpicture}
V \draw(4,0)to[voltmeter](7,0);
\end{tikzpicture}
3
2.2 Lâmpada www.number.890m.com
2.2 Lâmpada
Lampada [lamp]
\begin{tikzpicture}
\draw(0,0)to[lamp](2,0);
\end{tikzpicture}
2.3 Resistores
Termo-resistor [thermistor]
\begin{tikzpicture}
\draw(0,0)to[thermistor](2,0);
\end{tikzpicture}
4
2.4 Memristores www.number.890m.com
2.4 Memristores
Memristor [memristor]
\begin{tikzpicture}
\draw(4,0)to[memristor](7,0);
\end{tikzpicture}
2.5 Potenciômetro
Potenciômetro Americano
\begin{tikzpicture}
\draw(0,0)to[american
potentiometer](2,0);
\end{tikzpicture}
2.6 Fontes
\begin{tikzpicture}
\draw(0,0)to[european current
source](2,0);
\end{tikzpicture}
Bateria [battery1]
\begin{tikzpicture}
\draw(0,0)to[battery1](2,0);
\end{tikzpicture}
Bateria [battery]
\begin{tikzpicture}
\draw(0,0)to[battery](2,0);
\end{tikzpicture}
5
2.7 Fusível www.number.890m.com
\begin{tikzpicture}
\draw(0,0)to[american voltage
+
−
source](2,0);
\end{tikzpicture}
\begin{tikzpicture}
Uq \draw(0,0)to[V,v=$U_q$](0,2);
\end{tikzpicture}
2.7 Fusível
Fusível [fuse]
\begin{tikzpicture}
\draw(0,0)to[fuse](2,0);
\end{tikzpicture}
2.8 Indutor
Indutor Europeu
\begin{tikzpicture}
\draw(0,0)to[inductor](3,0);
\end{tikzpicture}
Indutor Americano
\begin{tikzpicture}
\draw(4,0)to[american inductor
](7,0);
\end{tikzpicture}
6
2.9 Capacitores www.number.890m.com
Indutor Variável
\begin{tikzpicture}
\draw(0,0)to[variable cute
inductor](2,0);
\end{tikzpicture}
\begin{tikzpicture}
\draw(0,0)to[variable european
inductor](2,0);
\end{tikzpicture}
2.9 Capacitores
Capacitor comum
\begin{tikzpicture}
\draw(0,0)to[capacitor](2,0);
\end{tikzpicture}
Capacitor polar
\begin{tikzpicture}
\draw(0,0)to[polar capacitor
](2,0);
\end{tikzpicture}
Capacitor variável
\begin{tikzpicture}
\draw(0,0)to[variable
capacitor](2,0);
\end{tikzpicture}
2.10 Diodo
\begin{tikzpicture}
\draw(0,0)to[empty diode](2,0)
;
\end{tikzpicture}
7
2.11 Botão www.number.890m.com
\begin{tikzpicture}
\draw(0,0)to[empty tunnel
diode](2,0);
\end{tikzpicture}
Barra [barrier]
\begin{tikzpicture}
\draw(0,0)to[barrier](2,0);
\end{tikzpicture}
\begin{tikzpicture}
\draw(0,0)to[photodiode](2,0);
\end{tikzpicture}
2.11 Botão
\begin{tikzpicture}
\draw(0,0)to[push button](2,0)
;
\end{tikzpicture}
8
www.number.890m.com
3 Portas Lógicas
\begin{circuitikz}
\draw(0,2)node[and port](myand
){};
\end{circuitikz}
\begin{circuitikz}
\draw(0,2)node[and port](myand
){};
% Marcando o pino
\fill[blue](0,2)circle(0.08cm)
;
\end{circuitikz}
\begin{circuitikz}
\draw(0,2)node[and port](myand
){};
\draw(2,4)node[or port](myor)
{};
\end{circuitikz}
9
www.number.890m.com
\begin{circuitikz}
%porta and
\draw(0,2)node[and port](myand
){};
%fio
\draw(myand.out)--(myand.out)
-|(myor.in 2)--(myor.in 2)
;
%porta or
\draw(2,4)node[or port](myor)
{};
\end{circuitikz}
\begin{circuitikz}
\draw(0,2)node[not port](mynot
){};
\end{circuitikz}
10
www.number.890m.com
\begin{circuitikz}
\draw(0,2)node[nand port](
mynand){};
\end{circuitikz}
\begin{circuitikz}
\draw(0,2)node[nor port](mynor
){};
\end{circuitikz}
\begin{circuitikz}
\draw(0,2)node[xor port](myxor
){};
\end{circuitikz}
\begin{circuitikz}
\draw(0,2)node[xnor port](
myxnor){};
\end{circuitikz}
11
www.number.890m.com
\begin{circuitikz}
% Grade
\draw[step=.5cm, color=
lightgray](0,0)grid(3,3);
% Ponto de referencia
\coordinate(pRef)at(2,2);
\end{circuitikz}
\begin{circuitikz}
% Grade
\draw[step=.5cm, color=
lightgray](0,0)grid(3,3);
% Ponto de referencia
\coordinate(pRef)at(2,2);
% Corpo
\coordinate(p1)at(0.5,0);
\coordinate(p2)at(2,2.5);
\fill(p1)rectangle(p2);
\end{circuitikz}
12
www.number.890m.com
\begin{circuitikz}
% Grade
\draw[step=.5cm, color=
lightgray](0,0)grid(3,3);
% Ponto de referencia
\coordinate(pRef)at(2,2);
% Corpo
\coordinate[xshift=-1.5cm,
yshift=-2cm](p1)at(pRef);
\coordinate[yshift=.5cm](p2)at
(pRef);
\fill(p1)rectangle(p2);
\end{circuitikz}
13
www.number.890m.com
\begin{circuitikz}
% Ponto de referencia
\coordinate(pRef)at(2,2);
% Corpo
\coordinate[xshift=-1.5cm,
yshift=-2cm](p1)at(pRef);
\coordinate[yshift=.5cm](p2)at
(pRef);
\fill(p1)rectangle(p2);
% Pinos da esquerda
\coordinate[xshift=-1.5cm](p3)
at(pRef);
\coordinate[xshift=-1.5cm,
yshift=-.5cm](p4)at(pRef);
\coordinate[xshift=-1.5cm,
yshift=-1cm](p5)at(pRef);
\coordinate[xshift=-1.5cm,
yshift=-1.5cm](p6)at(pRef)
;
\draw(p3)circle(0.1cm);
\draw(p4)circle(0.1cm);
\draw(p5)circle(0.1cm);
\draw(p6)circle(0.1cm);
% Pinos da direita
\coordinate[yshift=-.5cm](p7)
at(pRef);
\coordinate[yshift=-1cm](p8)at
(pRef);
\coordinate[yshift=-1.5cm](p9)
at(pRef);
\draw(pRef)circle(0.1cm);
\draw(p7)circle(0.1cm);
\draw(p8)circle(0.1cm);
\draw(p9)circle(0.1cm);
\end{circuitikz}
14
www.number.890m.com
Arquivo logic.sty
Dentro do arquivo coloque o seguinte:
% Nome do pacote:demopack
\ProvidesPackage{logic}
\newcommand{\ci}{ % corpo }
\begin{circuitikz}
\coordinate(pRef)at(4,2);
\ci
\coordinate(pRef)at(7,2);
\ci
\end{circuitikz}
15
www.number.890m.com
nbbedego@gm.com
.nmber.890m.com
16