I was given a magnifying glass LED lamp that had stopped working. It appears that the 6 pin MCU in the controller has failed. I reverse engineered the controller and made a schematic.
The lamp has two rings of LEDs, one with "warm" and one with "cool" colour temperature, each driven by a separate MOSFET using PWM from MCU pins. What I find odd is that the pulldown resistor on the MOSFET gate is different for each. Otherwise, the circuits are identical. From measurements, the LED rings are also identical other than different phosphor colours in the LEDs.
One pulldown resistor (R13) is 150K and the other (R14) is 10K. I'm wondering why the difference?
I'm thinking it's a mistake, with one having the wrong value installed for some reason. If that's the case, what would be the proper intended value?
My feeling is that 150K would be sufficient. I think it's only to make sure the MOSFET is off during the time the MCU is powered up and the pins have defaulted to inputs, before the firmware configures them as PWM outputs.
The schematic is attached.