I am trying to modify a work light (1S3P 18650 3,6V) that is controlled by an 8 pin PADUK type micro.
An output from the micro goes through a 100 Ohm resistor straight to the MOSFET gate.
It has the usual 100%, 50%, SOS modes. One drawback is that at the 100% setting, after 2 min, it throttles down to 16% PWM, in order to meet the battery life claim on the box. LED heatsinking is to a massive block of aluminum and not a problem.
As in the picture, I would like to add a switch so I can feed the gate directly with battery voltage so I can get a mode with 100% light with no throttling.
In the setup I propose, will there be a problem with me backfeeding the micro output with battery voltage, while it is either off/0V or doing a 16% PWM duty cycle at 3,6V?
I thought that such outputs are protected by a diode/FET so that this wouldn't be a problem, am I correct?
(I connected the circuit as in the picture for a few seconds and no magic smoke. Also I measure no big voltage drop BAT+ to MCU gate, certainly not a 0.6V/0.3V (Shottky) diode drop, so if there were protection it would be a low Rdson FET not a diode.)
Is my solution reliable in the long term?
I considered putting in an SPDT switch so I could choose what 'source' powers the gate and could avoid any backfeed (gate connection on COM, either MCU pin or battery on the other two switch contacts) but due to size constraints of a smaller switch (only available as a SPST) I'd prefer to use the 'backfed' option if it is safe to use.