Skip to content

Electronic components: Diodes

We talked about Light-Emitting Diodes, diodes that emit a light when the current and tension applied is enough to turn them on. Let’s now talk about diodes in general.

A diode is a tiny component that has one job: make the current flow only in one direction.

This is the symbol for a diode:

Diodes have a direction. Look at the stripe on those diodes picture above. That’s the cathode. It matches the | vertical line in the diode symbol and it indicates the direction the current will flow.

The other side is called anode. Current flows from the anode to the cathode.

If you add the diode in the correct direction to a simple LED light circuit, the LED will turn on because the circuit is correctly closed:

But if you invert the direction, the diode works as an insulator, interrupts the circuit, so the LED does not turn on:

In digital logic, a diode is often used because of this characteristic of being a closed circuit with the correct tension applied, and an open circuit with the inverted tension. We can build AND and OR logic gates using diodes.

A diode is also very useful to the limit current flow, and enables applications like AC to DC converters, protect components from reversed voltage, protect from voltage spikes and much more.

The diodes in the picture are 1N4007 diodes, and they can handle a forward current of 1A and a reverse tension up to 1000V.

Different kinds of diodes can manage different amount of current and can resist to different amounts of reversed voltage.


→ I wrote 17 books to help you become a better developer:

  • C Handbook
  • Command Line Handbook
  • CSS Handbook
  • Express Handbook
  • Git Cheat Sheet
  • Go Handbook
  • HTML Handbook
  • JS Handbook
  • Laravel Handbook
  • Next.js Handbook
  • Node.js Handbook
  • PHP Handbook
  • Python Handbook
  • React Handbook
  • SQL Handbook
  • Svelte Handbook
  • Swift Handbook
...download them all now!

Also, JOIN MY CODING BOOTCAMP, an amazing cohort course that will be a huge step up in your coding career - covering React, Next.js - next edition February 2025

Bootcamp 2025

Join the waiting list