The relay is simply an electrically operated switch i.e. relay has two states and state of the relay depends upon the presence of electrical signal. The relay is usually cuboid shaped and has 5 pins.
WHERE TO USE: The relay is used as a switch between two independent circuits. I.e. one circuit can be used to control the working of another circuit. . We generally use a small current circuit to switch on large current circuits via relay. For example we can use a small battery to switch on an AC 220V supply and this battery circuit is isolated from the AC supply. So we can use relay to switch on any circuit.
HOW TO USE: We first discuss different pins of relay;
The front view of the relay is as follow:
Pin1 and Pin 2: The activating electrical signal is supplied across these pins.
Pin 3: This pin represents the stable state of relay. We can also call this a Normally Closed position i.e. this is the state of the relay when there is no signal.
Pin 4: This pin represents the excited state of the relay. We can also call this a Normally Open position i.e. this is the state of the relay when there is an electrical signal present.
Pin 5: is the Common Pin. This actually is the moving part of the switch.
Suppose we have to use a relay to switch on a bulb on 220V AC using the signal from a small voltage signal. So we connect the different pins of relay as: