The relay is driven using an NPN transistor (BC547), which allows a small control signal to safely switch a relay. This makes it possible to control electrical devices such as lamps, motors, or ...