This project demonstrates the use of a transistor as a switch.
Switching using Transistor
Power Control: Introduction to Transistors
An Arduino pin can only output 5 Volts at 40 milliamps. That’s enough to light an LED, but if you connect a motor, a bright light strip, or a heater, you will destroy the microprocessor. The Transistor is the solution.
NPN Bipolar Junction Transistors (BJT)
Think of a transistor like a water valve.
- The Base: The handle of the valve. The Arduino connects here.
- The Collector: The high-pressure water source (e.g., a 12V battery and a motor).
- The Emitter: The drain (Ground).
- The Logic: When the Arduino sends a tiny 5V signal to the Base, it "opens the valve," allowing massive amounts of 12V current to flow from the Collector to the Emitter, powering the motor safely.
Power MOSFETs
For truly massive loads (like a 10-amp heated bed on a 3D printer), you must upgrade from a BJT to a Logic-Level MOSFET (like the IRLZ44N). They generate far less heat and can handle extreme currents.
Hardware List
- Arduino Uno: The brain.
- TIP120 (BJT) or IRLZ44N (MOSFET).
- 1k-ohm Resistor: Placed between the Arduino and the Base/Gate.
- High Power Load: A 12V DC Motor or LED Strip.
- 1N4007 Diode: A flyback diode across the motor to protect against voltage spikes.