Diodes close diodeAn electrical device that allows current to flow in one direction only. are electronic components that can be used to regulate the voltage in circuits and to make logic gates.
When an electric current passes through a metal wire, a magnetic field forms around that wire (see diagram at right). Likewise, a wire passing through a magnetic field creates an electric current ...