What is the purpose of a flyback diode in a circuit with an inductive load?
A flyback diode in a circuit with an inductive load is used to protect other components from voltage spikes caused by the collapsing magnetic field when the current to the inductor is switched off. The diode does this by providing a safe path for the inductive kickback current.