# TikZ electronics and signal examples

> Electronics and signal figures in TikZ with code: a MOSFET cross-section, CMOS NOR gate and SRAM cell, amplitude and frequency modulation and sampling.

URL: https://www.labcanvas.com/tikz/examples/electronics-and-signals

Seven figures: a MOSFET cross-section, a CMOS NOR gate and a CMOS SRAM cell, then amplitude modulation, frequency modulation, signal sampling and IQ sampling. The three circuit figures are drawn with plain TikZ lines and shapes, transistor by transistor; the four signal figures plot their waveforms with pgfplots.

For circuit diagrams with standard symbols (resistors, capacitors, sources, transistors, logic gates), the circuitikz package is quicker: see the [circuitikz guide](https://www.labcanvas.com/tikz/circuitikz).

## Circuits

- **MOSFET cross-section** (Circuits): MIT licence, © Janosh Riebesell and contributors. Source: https://github.com/janosh/diagrams/blob/7a79b3114e201fad9b6785e936eab859d1bc8c12/assets/mosfet/mosfet.tex. Code: https://www.labcanvas.com/tikz-library/code/mosfet-cross-section.tex
- **CMOS NOR gate** (Circuits): MIT licence, © Martin Thoma. Source: https://github.com/MartinThoma/LaTeX-examples/blob/f9236c5fe5d47f19822fcb11097df27355562314/tikz/cmos-nor/cmos-nor.tex. Code: https://www.labcanvas.com/tikz-library/code/cmos-nor-gate.tex
- **CMOS SRAM cell** (Circuits): MIT licence, © Martin Thoma. Source: https://github.com/MartinThoma/LaTeX-examples/blob/f9236c5fe5d47f19822fcb11097df27355562314/tikz/cmos-sram-cell/cmos-sram-cell.tex. Code: https://www.labcanvas.com/tikz-library/code/cmos-sram-cell.tex

## Signals & modulation

- **Amplitude modulation** (Signals & modulation): MIT licence, © Petar Veličković. Source: https://github.com/PetarV-/TikZ/blob/86aee049f5355d77c598b936399e42caf8941e60/Amplitude%20modulation/amplitude_modulation.tex. Code: https://www.labcanvas.com/tikz-library/code/amplitude-modulation.tex
- **Frequency modulation** (Signals & modulation): MIT licence, © Petar Veličković. Source: https://github.com/PetarV-/TikZ/blob/86aee049f5355d77c598b936399e42caf8941e60/Frequency%20modulation/frequency_modulation.tex. Code: https://www.labcanvas.com/tikz-library/code/frequency-modulation.tex
- **Signal sampling** (Signals & modulation): MIT licence, © Petar Veličković. Source: https://github.com/PetarV-/TikZ/blob/86aee049f5355d77c598b936399e42caf8941e60/Sampling/sampling.tex. Code: https://www.labcanvas.com/tikz-library/code/signal-sampling.tex
- **IQ sampling** (Signals & modulation): MIT licence, © Petar Veličković. Source: https://github.com/PetarV-/TikZ/blob/86aee049f5355d77c598b936399e42caf8941e60/IQ%20sampling/iq_sampling.tex. Code: https://www.labcanvas.com/tikz-library/code/iq-sampling.tex

## Using these figures

Every figure keeps its own licence: MIT or CC0 1.0, both of which allow use, change and sharing, commercial use included. The MIT licence asks that its copyright and permission notice go with copies of the code, so each figure’s code starts with its source, author and licence; keep those lines when you reuse it. The full licence texts are on the [sources and licences page](https://www.labcanvas.com/tikz-library/credits.html).

“Open in the TikZ editor” loads the figure’s complete document into the free TikZ editor, where it is typeset with TeX Live 2026 and you can change it and download a PNG. To compile it on your own computer, save the code as a.tex file and run pdfLaTeX (or the engine the tile names) on it; LabCanvas changed the files only where needed to make each one compile on its own, as its first lines say.

Licence texts: https://www.labcanvas.com/tikz-library/credits.html
