Transistors for Model Railroad Projects
Transistors are semiconductor devices that act as electronic switches or amplifiers. They're essential for many model railroad projects.
How Transistors Work
Think of a transistor as an electrically-controlled switch:
- A small current at the BASE controls a larger current between COLLECTOR and EMITTER
- NPN transistors switch positive voltage
- PNP transistors switch negative voltage (less common)
Common Applications
LED Drivers
When you need to control many LEDs from a single Arduino pin, transistors provide the necessary current:
- Arduino pins: max 20-40mA
- With transistor: can switch 500mA+ easily
Motor Control
Small DC motors for turntables, crossing gates, or animations can be controlled with transistors.
Occupancy Detection
Transistors amplify the tiny current drawn by a locomotive to create reliable block detection.
Popular Transistors for Model Railroading
- **2N2222:** General purpose NPN, good for LED switching
- **TIP120:** Darlington NPN, higher current capacity
- **2N3906:** General purpose PNP
- **IRF520:** MOSFET for higher power switching
Basic Switching Circuit
Connect a 1kΩ resistor between your control signal and the transistor base. The collector connects to your load (LED, motor), and emitter connects to ground.