Agnikul tasks
Agnikul tasks
1. Relay Activation:
Current flows from the 5V power supply through the 100Ω resistor R1 and the relay coil,
energizing the relay.
Energizing the relay pulls the pole inside (as shown by the arrow in the diagram), connecting the
two relay contacts.
This completes the circuit on the right side of the relay, allowing current to flow through both LED
1 and LED 2, lighting them up.
The issue lies in the absence of a flyback diode across the relay coil.
When the relay is energized and then de-energized (i.e., when SW1 is released), the magnetic
field inside the relay coil collapses rapidly.
This collapse generates a large back EMF (electromotive force) or a voltage spike that can damage
components, especially if the coil is inductive (as relay coils usually are).
Over time, this could lead to excessive heat, damaging the circuit, or causing it to burn out.
Add a flyback diode (e.g., 1N4007 or any general-purpose diode) in parallel with the relay coil.
The anode of the diode should be connected to the side of the coil connected to ground.
The cathode of the diode should be connected to the side of the coil connected to the 5V power
supply.
How it works:
When the relay is de-energized, the diode provides a path for the current generated by the
collapsing magnetic field, dissipating the energy safely instead of creating a damaging voltage spike.
This modification will protect the circuit from burning out due to back EMF when the relay coil is
de-energized.
2.. i)
+5V
+3V3
R1 R2
IN OUT
Q1
547BBC
II)