notesonly.in

One notebook for every subject — open it anywhere.

Log in

Diodes and Transistors Basics: Complete Beginner's Guide

A diode is the simplest semiconductor device: a two-terminal component made from a p-n junction that lets electric current flow in only one direction. Think of it as a one-way valve for electricity. A transistor is a three-terminal device that can amplify a weak signal or act as an electronic switch, and it is the building block of every modern chip, from a calculator to a supercomputer.

These two devices matter because every electronic circuit you own depends on them. Diodes convert the AC from your wall socket into the DC your phone charger needs, and transistors switch billions of times per second inside processors. Understanding them is the first real step into electronics.

Key Concepts

  • P-n junction: the boundary where p-type silicon (many holes) meets n-type silicon (many electrons). Current flows easily from p to n, but is blocked from n to p.
  • Forward bias: positive voltage on the p side. Current flows once the voltage crosses the knee voltage: about 0.7 V for silicon, 0.3 V for germanium.
  • Reverse bias: positive voltage on the n side. Only a tiny leakage current flows, until the breakdown voltage is reached and the diode is damaged (except Zener diodes, which are designed to work there).
  • BJT (Bipolar Junction Transistor): three layers (NPN or PNP) with terminals called emitter, base, and collector. A small base current controls a much larger collector current.
  • MOSFET: a transistor controlled by voltage at its gate instead of current. Used in nearly all digital chips because it draws almost no gate current.

Formulas

  • BJT current gain: IC = β × IB, where IC = collector current (A), IB = base current (A), β (beta) typically 50–300 for small transistors in the active region.
  • LED series resistor: R = (Vs − Vf) / I, where Vs = supply voltage (V), Vf = LED forward voltage (V), I = desired current (A).

Worked Example

You want to power a red LED (forward voltage 2 V, rated current 20 mA) from a 9 V battery. Choose the series resistor, step by step.

  1. Convert current: 20 mA = 0.020 A.
  2. Voltage the resistor must drop: 9 V − 2 V = 7 V.
  3. R = 7 / 0.020 = 350 ohm. The nearest standard value is 330 ohm.
  4. Check power: P = 7 × 0.020 = 0.14 W, so a standard 0.25 W resistor is safe. Without this resistor, the LED would draw huge current and burn out in seconds.

Common Misconceptions

  • "A diode blocks current in both directions." No. It conducts in forward bias (above ~0.7 V for silicon) and blocks only in reverse bias. An LED lighting up is a diode conducting.
  • "A transistor creates extra current out of nothing." It does not. The large collector current comes from the power supply; the small base current only controls it, like a tap controls water flow from a tank.

Real-World Applications

  • Rectifiers: four diodes in a bridge turn AC into DC inside every phone charger and laptop adapter.
  • LEDs: lighting, displays, indicator lamps — a diode that glows when forward biased.
  • Digital switching: billions of MOSFETs inside a CPU switch on and off to run your apps and games.

A diode is a one-way valve for current, conducting above about 0.7 V in forward bias, while a transistor is a controlled valve where a small base current (or gate voltage) switches a large current. Master the LED resistor formula and IC = β × IB, and you can design working circuits instead of guessing.