Circuit Diagrams in TikZ
Draw professional electronic circuit diagrams using CircuiTikZ.
Circuit diagrams use the CircuiTikZ package, which is built on TikZ. Load it with \usepackage{circuitikz}
circuits.logic.US vs CircuiTikZ flip-flops
These are different libraries. TikZ's circuits.logic.US library provides American-style AND, OR, NAND, NOR, XOR, XNOR, NOT, and buffer gates. The flipflop D node and its numbered pin anchors come from CircuiTikZ, not circuits.logic.US.
| Need | Load | Typical node |
|---|---|---|
| US-style logic gates | \usetikzlibrary{circuits.logic.US} | and gate US |
| D, JK, or T flip-flops | \usepackage{circuitikz} | flipflop D |
CircuiTikZ exposes lateral anchors pin 1 through pin 6, border variants such as bpin 1, and the top/bottom anchors up, down, bup, and bdown. Use the exact pin mapping shown by the flip-flop style you select.
Basic Setup
Basic Components
Simple RC Circuit
Voltage Divider
Op-Amp Circuits
Transistor Circuits
Logic Gates
Diode Circuits
Component Labels and Values
555 Timer Circuit
Common Component Symbols
R- ResistorC- CapacitorL- InductorD- DiodeV- Voltage sourceI- Current sourcenpn,pnp- Transistorsop amp- Operational amplifierand port,or port- Logic gates
Next Steps
Continue learning TikZ:
- TikZ Positioning Library - Place gates and components relative to named nodes
- TikZ Arrows - Connect logic blocks with modern arrow tips
- Block Diagrams - System-level diagrams
- PGFPlots - Plot data and graphs
- Flowcharts - Process diagrams
Circuit Diagrams in TikZ
Draw professional electronic circuit diagrams using CircuiTikZ.
Circuit diagrams use the CircuiTikZ package, which is built on TikZ. Load it with \usepackage{circuitikz}
circuits.logic.US vs CircuiTikZ flip-flops
These are different libraries. TikZ's circuits.logic.US library provides American-style AND, OR, NAND, NOR, XOR, XNOR, NOT, and buffer gates. The flipflop D node and its numbered pin anchors come from CircuiTikZ, not circuits.logic.US.
| Need | Load | Typical node |
|---|---|---|
| US-style logic gates | \usetikzlibrary{circuits.logic.US} | and gate US |
| D, JK, or T flip-flops | \usepackage{circuitikz} | flipflop D |
CircuiTikZ exposes lateral anchors pin 1 through pin 6, border variants such as bpin 1, and the top/bottom anchors up, down, bup, and bdown. Use the exact pin mapping shown by the flip-flop style you select.
Basic Setup
Basic Components
Simple RC Circuit
Voltage Divider
Op-Amp Circuits
Transistor Circuits
Logic Gates
Diode Circuits
Component Labels and Values
555 Timer Circuit
Common Component Symbols
R- ResistorC- CapacitorL- InductorD- DiodeV- Voltage sourceI- Current sourcenpn,pnp- Transistorsop amp- Operational amplifierand port,or port- Logic gates
Next Steps
Continue learning TikZ:
- TikZ Positioning Library - Place gates and components relative to named nodes
- TikZ Arrows - Connect logic blocks with modern arrow tips
- Block Diagrams - System-level diagrams
- PGFPlots - Plot data and graphs
- Flowcharts - Process diagrams
