Electronic – Using a MOSFET to turn on a car alarm siren

audiomosfet

I'm trying to control a 130dB siren with a pic microcontroller. I figured the best way to do this was with this MOSFET since the siren pulls about 1A. I had some problems when connecting this to the Pic, so I created a simple test circuit to troubleshoot it:

enter image description here

I couldn't find a voltage regulator in the schematics program, so please assume that the +5 source is a voltage regulator connected to the same 12V source. Anyway, the problem is that when I apply power to the circuit (without applying power to the gate), the siren sounds, but not as loud as it should be. When I connect +5V to the gate, the siren turns off and then even after opening the switch it stays off (i.e. it won't make any noise). My initial thought was that I had a bad MOSFET, so I tried a different one with the same effect.

FYI, when I connect the siren directly to 12V it works fine.

Any idea why I'm seeing this behavior?

Best Answer

The issue is the floating gate on the MOSFET.

Add a 10 kOhm to 100 kOhm resistor between gate and ground, and the issue should be resolved.