Excuse the simpleton schematic, but I don't understand how I should use/wire a P or N channel MOSFET to disconnect a load.
During daytime, a PV solar panel shall charge a battery (works). During nighttime, the battery shall power an LED driver (works). I assumed I can use a P channel MOSFET as shown to automatically disconnect the LED driver during daytime and only be powered at nighttime. What would I have to do to do it right?
Edit: No matter what the insolation (0-7V output by the solar panel - covered, indoor, in full sun), the LED remains off at all times (the driver receives near zero voltage). I checked the MOSFET and tried it with another of the same type.