# Bridge rectifier

> Four diodes that turn an alternating input into a direct voltage across the load. A circuitikz example with its LaTeX source.

A circuitikz example in the TeXeR TikZ library: https://texer.org/library/circuitikz/bridge-rectifier

Package: [circuitikz](https://texer.org/library/circuitikz.md), on CTAN at https://ctan.org/pkg/circuitikz.

Tags: rectifier, diodes, power supply

## Source

```latex
\usepackage{circuitikz}

\begin{circuitikz}
  \draw (3,4) to[D*, -*] (5,2);
  \draw (3,0) to[D*, -*] (5,2);
  \draw (1,2) to[D*, *-*] (3,4);
  \draw (1,2) to[D*, -*] (3,0);
  \draw (3,4) -- (3,4.8) -- (-1,4.8) to[sV, l_=$v_{in}$] (-1,-0.8) -- (3,-0.8) -- (3,0);
  \draw (5,2) -- (7,2) to[R, l_=$R_L$, v^>=$v_{out}$] (7,-1.6) -- (1,-1.6) -- (1,2);
\end{circuitikz}
```

## As a complete document

The same example in a document that compiles on its own with pdfLaTeX:

```latex
\documentclass[margin=3mm]{standalone}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{circuitikz}

\begin{document}

\begin{circuitikz}
  \draw (3,4) to[D*, -*] (5,2);
  \draw (3,0) to[D*, -*] (5,2);
  \draw (1,2) to[D*, *-*] (3,4);
  \draw (1,2) to[D*, -*] (3,0);
  \draw (3,4) -- (3,4.8) -- (-1,4.8) to[sV, l_=$v_{in}$] (-1,-0.8) -- (3,-0.8) -- (3,0);
  \draw (5,2) -- (7,2) to[R, l_=$R_L$, v^>=$v_{out}$] (7,-1.6) -- (1,-1.6) -- (1,2);
\end{circuitikz}
\end{document}
```
