The circuit looks correct in principle. But you missed some details:
simulate this circuit – Schematic created using CircuitLab
Your thinking is: When there's no light the Vgs of the MOSFET is -3.7 (the gate voltage is zero and the source voltage is 3.7V) which is sufficiently lower than the threshold (-0.5 ~ -1.2V). When the phototransistor gets light it'll draw current from 3V7 (sourcing towards R18), so the gate voltage will increase and finally turn the MOSFET off.
However, since the threshold voltage can be as high as -0.5V, the gate voltage (the voltage across R18) should approach 3.0 ~ 3.3V (or above) to turn the MOSFET off. So the light current should be at least 0.6 mA.
If you check the datasheet, you'll see the light current information:
The light sensor seems to be colour-sensitive: The light current is relatively small for cool/daylight white light (0.25 mA for cool/daylight white, 1 mA for warm white).
6500K 1000 lux: If you can't imagine what 1000 lux of light intensity is, here's a reference: A T35 35W 6500K fluorescent tube's luminous flux is about 3000 lumens. About 1.7 metres of distance, you'll get ~1000 lux:
$$
I_V = \frac{\Phi_V}{d^2}=\frac{3000 \ \text{lm}}{2.89 \ \text{m}^2}\approx 1040 \ \text{lx}
$$
Now let's take 0.22 mA as a reference.
Under 1000 lux of light intensity from a 6500K source, the voltage drop across R18 will be around Vg = 5k9 x 0.22m = 1.3V, making the Vgs of the MOSFET Vgs = 1.3 - 3.7 = -2.4V which is still more than enough to keep the MOSFET on because it's way beyond the threshold. So the MOSFET will NOT turn off.
To get 0.6 mA to turn the MOSFET off the light intensity should be around 2000 lux. For the same light source (6500K T35 35W fluorescent tube), the distance between the tube and the sensor should be no longer than 1.2 metres to turn the MOSFET off.
3500K 1000 lux: If your light source's CCT (colour temperature) is about 3000K (warm white e.g. ordinary incandescent bulb) then the light current at 1000 lux of light intensity (60W incandescent bulb, ~1 metre distance) will be around 1 mA. This will be enough to turn the MOSFET off because the voltage across R18 will hit 3.7V.
The requirement was at least 0.6 mA. To get 0.6 mA under a 3000K light source, the light intensity should be ~700 lux. For the same bulb (~900 lumens), the distance between the bulb and the sensor should be no longer than 1.1 metres to turn the MOSFET off.
As you can see, using the phototransistor with the configuration in your question appears to be light-dependent. To decrease the light dependency:
- Increase R18. This is the simplest solution. Take the dark current (leakage) and your light threshold into account, and select a high resistance so the MOSFET remains on under the dark.
- Use a current amplifier to drive the MOSFET (This configuration can be useful for low-light environments and higher source-sensor light angles):
simulate this circuit
LED_PWR
will be 3.7 minus one diode drop. Flip Q3 vertically (i.e. pin-3/S should connect to 3.7V and pin-2/D should connect to LED_PWR). \$\endgroup\$Okay, but I think my question is, what happens when there IS a gate drive signal?
... I do not see those words in your post ... please update your post \$\endgroup\$