Transistors
Check transistor pinouts and ratings, then choose a suitable bipolar transistor or MOSFET for amplification or switching.

2N3904 NPN transistor
Small-signal bipolar NPN transistor for switching and amplification.
A microcontroller can drive the base through a resistor when voltage and current requirements fit.

2N3906 PNP transistor
PNP bipolar transistor for general-purpose switching and amplification.
Use a base resistor and appropriate level interface. Check the actual package drawing.

BC547 NPN transistor
Through-hole NPN transistor for small-signal gain and switching.
Verify the collector/base/emitter order before replacing a 2N3904 or similar transistor.

BD139 NPN power transistor
Medium-power NPN transistor in a tabbed through-hole package.
A controller may need a separate driver to supply sufficient base current.

IRFZ44N N-channel power MOSFET
N-channel power MOSFET with through-hole mounting.
Use a driver that meets the resistance test conditions. A 3.3 V GPIO is not a reliable direct gate drive for this part.