Protect the control output
The NPN transistor sinks the coil current; the 1 kΩ base resistor limits control current.
Build a basic Relay circuit with labeled pins, component values and connection guidance.
A 3.3 V control signal drives a 5 V relay through an NPN transistor.
Follow the component values and pin connections
The NPN transistor sinks the coil current; the 1 kΩ base resistor limits control current.
The diode is normally reverse-biased: cathode on +5 V, anode on the collector.
Energizing the coil connects COM-A 3 to NO-A 4 so the LED load receives power.