Hi I am going to use this circuit for my GPS tracker auto power off after 24 hours to save my battery.
So I plan to use 9540N P channel mosfet to cut off the power.
Connection
Gate pin pull up 10K and connected BC817 optocoupler, BC817 collector pin connect with mosfet gate pin and emmiter pin connect with gnd.
Source pin connect with 12v. And drain pin connect with load positive line and another load pin connect with gnd.
But I didn't get any voltage for my load. When I measure between drain and gnd pin I get only 0.33 volts.(When I on the optocoupler)
I tried with 470 ohm resistor between collector and gate pin. But no improvement.
I noticed accidentally I touched the mosfet top metal part suddenly the voltage got increased to 9 volts. Why. Is getting gnd from my body and connection established ?
Yes. The voltage you measure between the MOSFET gate and GND. Measure that in to see what the optocoupler is doing (if anything). So measure it first with no signal applied to the input of the optocoupler, then apply 3.3V to the optocoupler input and measure the gate voltage again. What values do you get?
Alternatively, start by trying to light a LED using your optocoupler. Once you've figured that out, replace the LED with the MOSFET circuit.