The TRANSISTOR: a tiny current switches a BIG one
A tiny base current (4.3 mA from an Arduino pin) switches a big collector current (100 mA, 12 V lamp) — C/B/E legs, N-P-N inside, always a base resistor + shared GND.
A tiny current switches a BIG one ⚡ This is the TRANSISTOR (the lesson we promised!)
1️⃣ 3 LEGS: Collector (big current comes in), Base (the control), Emitter (current goes out to GND).
2️⃣ THE SWITCH: Arduino pin D9 → 1 kΩ → base of a 2N2222. A 12 V lamp sits on the collector.
D9 LOW: no base current, lamp OFF.
D9 HIGH: (5 V − 0.7 V) ÷ 1 kΩ = 4.3 mA into the base → 100 mA flows through the lamp. About 23× bigger, and the pin stays safe (limit 20 mA).
3️⃣ INSIDE: N | P | N. The middle P layer is very thin. A small base current opens this "gate" and electrons flood from the emitter to the collector.
4️⃣ ALWAYS: put a resistor on the base and join the GNDs (Arduino GND + 12 V battery −).
Pinouts differ between parts (CBE / EBC), so check the datasheet. The middle leg is the base on most small transistors.
Related lessons
Get new lessons + early access to the full course
One email when new lessons drop. No spam, unsubscribe any time.
✓ You're on the list. Check your inbox to confirm.
By joining you agree to the privacy policy.




