Relay Modules a power relay module is an electrical switch that is operated by an electromagnet. The electromagnet is activated by a separate low-power signal from a micro controller. When activated, the electromagnet pulls to either open or close an electrical circuit. Relays are electrically operated switches that open and close the circuits by receiving electrical signals from outside sources. They receive an electrical signal and send the signal to other equipment by turning the switch on and off.
It consists of two parts: the relay itself and the control module. The relay contains the coil that creates the magnetic field, the armature that move to complete or disconnect a circuit, and contacts that open and close to operate the load switch. A relay is an electrically operated switch that can be turned on or off, letting the current go through or not, and can be controlled with low voltages, like the 5V provided by the Arduino pins. Controlling a relay module with the Arduino is as simple as controlling any other output as we’ll see later on.
Main Parts of a Relay There are two main circuits in the relay. The primary side and the secondary side. The Primary Circuit provides the control signal to operate the relay. This could be controlled by a manual switch, a thermostat or some type of sensor. The relay module function is mainly to switch electrical devices and systems on or off. It also serves to isolate the control circuit from the device or system being controlled.