Transistor Logic Basics: Buffer, NOT, AND & NAND (Part 1 of 2)
In This Lesson
In this lesson, we explore how transistors can be used to create logic circuits.
We will cover:
- NPN transistor basics (2N2222)
- Buffer circuit
- Inverter (NOT gate)
- AND gate
- NAND gate
- Truth tables
- Basic resistor calculations
Watch Video:
π NPN Transistor Basics
We are using an NPN transistor (2N2222).
It has three terminals:
- Base (B)
- Collector (C)
- Emitter (E)
π A transistor acts like a switch:
- No base current β OFF
- Base current present β ON
β‘ Transistor as a Switch
There are three main operating regions:
- Cutoff β OFF
- Active β Partially ON
- Saturation β Fully ON (used for switching)
π For digital logic, we mainly use:
- OFF (cutoff)
- ON (saturation)
π Buffer Circuit
A buffer simply copies the input to the output.
Truth Table
| Input | Output |
|---|---|
| 0 | 0 |
| 1 | 1 |
π Output follows input exactly.
Β
π‘ LED Resistor Calculation
Using:
- Supply = 5V
- Transistor drop β 0.2V
- LED drop β 2V
Voltage across resistor:
5V β 0.2V β 2V = 2.8V
If desired current = 10mA:
R = V / I = 2.8V / 0.01A = 280Ξ©
π Practical value used:
- 470Ξ©
π‘ Base Resistor Calculation
- V_BE β 0.7V
- Voltage across resistor = 5V β 0.7V = 4.3V
Assume:
- I_C β 10mA
- Ξ² β 10 (safe estimate)
Then:
I_B = I_C / Ξ² = 10mA / 10 = 1mA
R = V / I = 4.3V / 1mA = 4.3kΞ©
π Practical value used:
- 4.7kΞ©
π Inverter (NOT Gate)
The inverter flips the input.
Truth Table
| Input | Output |
|---|---|
| 0 | 1 |
| 1 | 0 |
π If input is LOW β output is HIGH
π If input is HIGH β output is LOW
Β
Β
AND Gate (Using Transistors)
Two transistors are placed in series.
π Both must be ON for current to flow.
Truth Table
| A | B | Output |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
π Output is HIGH only when BOTH inputs are HIGH.
NAND Gate
NAND is the inverse of AND.
π Output is LOW only when BOTH inputs are HIGH.
Truth Table
| A | B | Output |
|---|---|---|
| 0 | 0 | 1 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
π NAND = NOT(AND)
π§ Key Takeaway
By combining transistors as switches, we can build:
- Basic logic functions
- Complex digital systems
π This is the foundation of digital electronics.
Video Notes:
Transistor-Logic-Part1-Video-Notes
π Closing Verse (KJV)
23Β TheΒ LordΒ is my shepherd; I shall not want.
2Β He maketh me to lie down in green pastures: he leadeth me beside the still waters.
3Β He restoreth my soul: he leadeth me in the paths of righteousness for his name’s sake.
4Β Yea, though I walk through the valley of the shadow of death, I will fear no evil: for thou art with me; thy rod and thy staff they comfort me.
5Β Thou preparest a table before me in the presence of mine enemies: thou anointest my head with oil; my cup runneth over.
6Β Surely goodness and mercy shall follow me all the days of my life: and I will dwell in the house of theΒ LordΒ for ever.
Prefer video?
Watch full lessons on the Build Circuits With Rich YouTube Channel.
Back To: Videos



