transistor

the building block of everything electronic. switches, amplifiers, logic gates - all transistors underneath.

what they do

transistors are voltage-controlled switches. small voltage at base/gate controls big current through collector/drain.

two main types:

bjt basics

three pins: base, collector, emitter

common ones i use: 2N2222 (npn), 2N2907 (pnp), BC547 (npn)

fet basics

three pins: gate, drain, source

mosfets are the most common fets. i use them for switching loads. common ones: 2N7000 (n-channel), IRF540 (high power n-channel)

practical uses

my design patterns

for switching: mosfet with gate resistor and pulldown for amplification: bjt in common emitter configuration for level shifting: bjt voltage divider or mosfet buffer

gotchas i learned

understanding transistors helps me design better circuits and debug problems. they're everywhere once you know how to spot them.