Trigger mosfet and it4140 device using arduino

Hello

In my project I am using mosfet 2n7002 and it4140 device to turn on 24v buzzer.

Connections are as shown in the below diagram. But the problem is when I connect to power supply without giving any input to the gate pin of mosfet, I am getting output from the it4140 device.

Mosfet source pin is connected to gnd, drain pin is connected to PIN number 1 that is input to it4140, it4140 pins 4 and 2 are connected to 24v, it4140 pin 3 is connected to positive part of buzzer and mosfet gate pin is connected to arduino.

After I connect to power supply without giving any input to gate drain and source pins are connected each other if I remove power after few seconds it will disconnect.

Can someone please help me.

Thank you in advance

mosfet and it4140.pdf (45.9 KB)

Connections are as shown in the below diagram. But the problem is when I connect to power supply without giving any input to the gate pin of mosfet, I am getting output from the it4140 device.

You should pull the gate to ground by a resistor to not let it float. A floating gate may pick up any interference from the environment and as the MOSFET switches based on the voltage the 4140 is activated.