Futterama
Member
Adding the schottky diode between the horn terminals (and not parallel with the MOSFET body diode) and adding a ceramic 100nF capacitor to the PIC supply seems to have cured the problem. At least I can make the horn work with either polarity on the horn terminals without resetting the PIC.
If I remove the schottky, the problem persists even with the ceramic 100nF in place, but it's no problem adding both to my circuit. The 100nF should have been there in the first place anyway :-/
If I remove the schottky, the problem persists even with the ceramic 100nF in place, but it's no problem adding both to my circuit. The 100nF should have been there in the first place anyway :-/