To connect a transistor as a low-side switch for a DC load, you route your microcontroller’s control signal through a current-limiting resistor to the input terminal (Base or Gate), tie the output terminal (Emitter or Source) directly to circuit ground, and place your load between the positive power supply and the remaining terminal (Collector or Drain). For loads under 600mA, use a PN2222A NPN BJT; for loads above 600mA or high-frequency PWM applications, use an IRLZ44N logic-level N-channel MOSFET.
This guide walks through the exact schematic symbols, physical pinouts, and node-by-node wiring sequence to get your circuit working on the first try, eliminating the most common breadboard pitfalls.
Decoding the Transistor Symbol and Physical Pins
Before tracing the wires, you must translate the schematic symbol to the physical component in your hand. Schematics abstract the physical reality, which is where most beginners get stuck when figuring out how bipolar junction transistors (BJTs) operate versus MOSFETs.
• NPN BJT: Look for the circle with three lines. The line with the arrow pointing outward is the Emitter. The middle line is the Base. The remaining line is the Collector.
• N-Channel MOSFET: Look for the three parallel lines (Drain, Source, and the body diode connection) with a fourth line (Gate) separated by a small gap. The arrow on the middle line points inward for N-channel.
On the physical bench, you will likely be holding one of two packages:
- TO-92 (Plastic half-cylinder): Used for low-power BJTs like the PN2222A or 2N3904. Hold the flat side facing you with the leads pointing down. From left to right, the pins are Emitter, Base, Collector.
- TO-220 (Metal tab with a hole): Used for power MOSFETs like the IRLZ44N. Hold the metal tab facing away from you (reading the text on the front) with leads pointing down. From left to right, the pins are Gate, Drain, Source. The metal tab is internally connected to the Drain.
Node-by-Node Trace: Switching a 12V Load from a 5V Microcontroller
Let’s trace a complete low-side switching circuit. We are using an Arduino Uno (5V logic) to switch a 12V DC cooling fan drawing 250mA. Because the current is under 600mA, we will use a PN2222A NPN transistor. Follow this exact sequence to establish the correct polarity and ground paths.
- Establish Common Ground: Connect a jumper wire from the Arduino GND pin to the negative rail of your breadboard. Connect a second jumper from the 12V power supply’s negative terminal to the same breadboard negative rail. Without a shared ground reference, the 5V GPIO signal has no return path to trigger the transistor.
- Route the Control Signal: Connect a jumper from Arduino Digital Pin 9 to an empty breadboard row.
- Insert the Base Resistor: Place a 220Ω or 330Ω resistor between that jumper row and the Base (middle pin) of the PN2222A. This limits base current to roughly 15mA, protecting your microcontroller's GPIO pin from overcurrent.
- Ground the Emitter: Connect a jumper from the Emitter (left pin, flat side facing you) directly to the breadboard's negative (GND) rail.
- Connect the Load to the Collector: Connect the negative wire of your 12V DC fan to the Collector (right pin) of the transistor.
- Power the Load: Connect the positive wire of the 12V DC fan to the positive terminal of your 12V power supply.
- Install the Flyback Diode: Place a 1N4007 rectifier diode in parallel with the fan. The silver stripe (cathode) must point toward the 12V positive wire, and the anode must point toward the transistor's Collector. This safely dissipates inductive voltage spikes when the transistor switches off.
Terminal Mapping and Verification with a Multimeter
Never trust the pinout printed on a random forum post; always verify your specific component. Below is the reference mapping, followed by the exact procedure to verify the silicon junctions using a standard digital multimeter.
| Component | Package | Pin 1 (Left) | Pin 2 (Middle) | Pin 3 (Right) | Orientation |
|---|---|---|---|---|---|
| PN2222A (NPN BJT) | TO-92 | Emitter | Base | Collector | Flat side facing you, leads down |
| IRLZ44N (N-Ch MOSFET) | TO-220 | Gate | Drain | Source | Text facing you, tab away, leads down |
| 2N3904 (NPN BJT) | TO-92 | Emitter | Base | Collector | Flat side facing you, leads down |
How to Verify with a Multimeter
Turn your multimeter dial to the Diode Test mode (symbolized by an arrow pointing into a line). This mode outputs a small voltage and reads the forward voltage drop across a semiconductor junction.
Testing the PN2222A (BJT):
- Place the Red probe on the Base (Pin 2) and the Black probe on the Emitter (Pin 1). The meter should read between 0.600V and 0.750V. This confirms a healthy forward-biased silicon PN junction.
- Move the Black probe to the Collector (Pin 3). You should see a similar reading (0.600V - 0.750V).
- Swap the probes (Black on Base, Red on Emitter/Collector). The meter must read OL (Over Limit / Open). If it reads a voltage or near-zero ohms in both directions, the transistor is shorted and dead.
Testing the IRLZ44N (MOSFET Body Diode):
With the MOSFET out of circuit, place the Red probe on the Source (Pin 3) and the Black probe on the Drain (Pin 2). You are testing the intrinsic body diode. The meter should read a forward voltage drop of roughly 0.400V to 0.600V. Reversing the probes should yield OL. For deeper MOSFET switching theory, refer to standard semiconductor texts.
Decision Tree: BJT vs. Logic-Level MOSFET for Your Load
Choosing the wrong transistor is the leading cause of melted components and microcontroller resets. Use this decision matrix to select the exact part number for your project. Do not default to 'it depends'—match your load parameters to the table below and buy the recommended part.
| Load Current | Switching Type | Recommended Part Number | Component Type | Required Base/Gate Resistor |
|---|---|---|---|---|
| < 100mA | Simple On/Off | 2N3904 | NPN BJT (TO-92) | 1kΩ |
| 100mA - 600mA | Simple On/Off | PN2222A | NPN BJT (TO-92) | 220Ω - 330Ω |
| > 600mA up to 30A | PWM or On/Off | IRLZ44N | N-Ch MOSFET (TO-220) | 100Ω - 220Ω (Gate to GPIO) |
| > 30A | High Power DC | IRFB3207 | N-Ch MOSFET (TO-220) | 10Ω + Dedicated Gate Driver IC |
The Golden Rule: If your load exceeds 600mA, or if you are using an ESP32 (which operates at 3.3V logic), stop using BJTs. Switch to a logic-level N-channel MOSFET. BJTs require continuous base current to stay saturated, which wastes power and generates heat. MOSFETs are voltage-controlled and draw virtually zero steady-state current from your GPIO pin.
Common Wiring Mistakes and How to Avoid Them
Even with the correct schematic, physical implementation errors will destroy your circuit. Cross-reference your breadboard against these three critical failure modes.
1. The IRF520 Trap (Using Non-Logic-Level MOSFETs)
Many beginner kits include the IRF520 MOSFET. Do not use it with a 3.3V or 5V microcontroller. The IRF520 datasheet specifies a Gate-Source Threshold Voltage ($V_{GS(th)}$) of up to 4V, but it requires 10V on the gate to fully turn on and achieve its rated low $R_{DS(on)}$ resistance. At 5V, it only partially opens, acting like a high-value resistor. It will overheat and melt under moderate loads. Always look for the letter "L" in the part number (e.g., IRLZ44N), which designates a logic-level gate threshold optimized for 5V or 3.3V drive.
2. Omitting the Base/Gate Resistor
A BJT base behaves like a forward-biased diode. If you connect an Arduino 5V pin directly to the base of a PN2222A without a resistor, the base will pull as much current as the microcontroller can supply, instantly frying the GPIO pin's internal trace. Always use a minimum 220Ω resistor for BJTs. For MOSFETs, a 100Ω to 220Ω gate resistor is used not to limit steady current, but to dampen high-frequency ringing and protect the GPIO from the inrush current of charging the gate capacitance.
3. Missing the Flyback Diode on Inductive Loads
If your load is a motor, relay coil, or solenoid, it stores energy in a magnetic field. When the transistor switches off, the collapsing magnetic field induces a massive reverse voltage spike (inductive kickback) that can exceed 100V, instantly punching through the transistor's silicon junction. A standard 1N4007 diode wired in reverse-bias across the load provides a safe recirculation path for this current. If you are switching high-frequency PWM loads, upgrade to a Schottky diode like the 1N5819 for faster recovery times.






