Electronic – 30N06L N-channel mosfet switching heavy load interfering with micro-controller circuit

microcontrollermosfetmosfet-driver

I have a microcontroller that I want to use to switch on/off a heavy load (a car horn) with a 30N06L N-channel mosfet. Everything works when running a load of 4Kohms (with the car battery at 12v), but when I move to the heavy load of the horn, then things go awry. I can hear an initial honk, but then the horn stops. I am guessing that the high current powering the horn is causing interference with the rest of the circuit somehow. Does anyone have experience with this?

Also, the reason I am going with this particular mosfet is because it is what I had laying around. If it makes more sense to go to a similar P-Channel mosfet, I can order a few.

schematic

simulate this circuit – Schematic created using CircuitLab

Best Answer

Your testing suggests that the larger current of the horn is causing problems - perhaps involving the microcontroller. The circuit might benefit by adding a flyback diode across the horn (cathode to +12V).

Since MOSfet source pin is common with microcontroller ground pin, some grounding problems can occur here:modified (crude) schematic