I believe understand the concept of a flyback diode, I was wondering how I could use it in this particular situation.
I have a circuit board with a NPN transistor connected to the low side of a bosch 12v relay via a copper wire and the high side of the relay inductor is connected to 12v. I'd like to put a flyback diode on the pcb to protect the transistor against a voltage spike.
I tried using a 1n4001 and I thought connecting the anode to the transistor collector and connecting the cathode to Vcc was the correct way to do this (as pictured below, without the 1n4001 in place) but looking at it and testing it on the scope I'm still seeing ~100% increase in voltage when the mechanical connection is broken spiking inductance. Can anyone tell me what I'm doing incorrect?
I have a circuit board with a NPN transistor connected to the low side of a bosch 12v relay via a copper wire and the high side of the relay inductor is connected to 12v. I'd like to put a flyback diode on the pcb to protect the transistor against a voltage spike.
I tried using a 1n4001 and I thought connecting the anode to the transistor collector and connecting the cathode to Vcc was the correct way to do this (as pictured below, without the 1n4001 in place) but looking at it and testing it on the scope I'm still seeing ~100% increase in voltage when the mechanical connection is broken spiking inductance. Can anyone tell me what I'm doing incorrect?