Learning Rooms/○ Level 3 · Innovator/Computing and algorithms
How a transistor works
Ben Eater · Length: see YouTube · captions on YouTube · nothing loads until you press play
By the end you can…
- Build NOT, AND and OR from NAND gates only, using De Morgan's law.
- Build XOR from four NAND gates and verify it on every row.
- Explain why a single universal gate type is useful in manufacturing.
Watch it all: no segment has been checked by hand for this video yet.
1.Predict before you press play
What does a NAND gate do if you connect both of its inputs to the same signal A?
Pick one before you press play. A wrong guess is fine: it is what makes the video stick.
2.See the idea first
Play with this diagram for a minute (borrowed from the lesson “From safety rules to Boolean expressions”, on the same idea). It gives you something to hang the video on.
Loading the interactive…
Can't use the diagram? Read a description instead
The explorer takes a typed Boolean expression and shows three views: input switches with a live output, a gate diagram drawn from inputs on the left to the output on the right, and a full truth table with the current row marked. For the interlock A · B · ¬C, Y = 1 only on row 110: guard closed, operator present, no fault.
3.Watch, actively
Follows doped silicon into a transistor, the switch that every logic gate is built from.
Length: see YouTube · captions on YouTube · source
Nothing loads from YouTube until you press play.
Watch for…
- → Watch for how a transistor acts as a voltage-controlled switch. That switch is all a NAND gate needs.
Pause whenever you like. Rewatching a hard minute is a good habit, not a failure.
Can't stream it? Read the idea instead
A transistor is a switch with no moving parts. Silicon is doped to make regions with spare electrons or spare holes, and a small current or voltage at one terminal opens or closes a path between the other two. Connect a few and you get logic gates.
What the video covers (our own note, written when we verified it): Follows doped silicon into a transistor, the switch that every logic gate is built from.
Written by Tactiverge in our own words, not a transcript. The full lesson below explains the idea without the video.
Read it instead
- Lesson: Everything from NAND · The full lesson explains the idea in text, worked examples and diagrams, with no video needed.
- Engineering Atlas: Logic gates and Boolean algebra · A safety interlock that lets a robot cell run only when the door is closed AND the emergency stop is released is a logic gate in action.
- Field Guide: Comparisons and Boolean expressions · A short reference entry on the same idea.
Jot down one thing that surprised you and one question you still have.
4.Practise what you just saw
These come from the lesson that use this video and are checked on the server. Wrong answers get a hint and another try.
Practice 1
How many NAND gates does the classic XOR construction use?
Practice 2
In the four-NAND XOR, with A = 1 and B = 1, what is g1 = NAND(A, B)?
Practice 3 · a fresh version every time
With A = 0, B = 0 and C = 0, what is Y = ¬(A + (B + ¬A))? Answer 0 or 1.
Practice 4
Why can't AND and OR gates alone build every logic function?
6.Where engineers use it
Some flash memory is called 'NAND flash' after the way its memory cells are strung together like transistors in a NAND gate. In CMOS chips, NAND and NOR are among the smallest gates to make.
From the applied view in the lesson Everything from NAND. Checked by automated tests only.
7.Build something with it
Follow-up project
In BUILD 008 Level 2, complete all three circuits within the gate limits. Then, on paper, design AND from NOR gates only and check it with a truth table.
Where this video lives
- Everything from NAND · Level 2, week 16
In the course catalogue: ARCH-220 Digital logic and binary arithmetic
The video is by Ben Eater, embedded from YouTube with privacy-enhanced mode and never autoplayed. The room around it (prompts, notes, practice, projects) is Tactiverge's, written with AI assistance and checked by automated tests only.