Electronic – Making MOSFET switch faster

mosfet

I have a project with LEDs which are switched on/off with MOSFETs. But there is this "off mode" slowly reducing voltage period which takes 12ms to go truly to 0 V. I have this Vishay Intertech SI4477DY-T1-GE3 P-Channel MOSFET. Is it possible to reduce this off period to go down faster? Is this MOSFET too slow to do that?
This is my shematic, and the processor is an Arduino Nano.graph showing voltage decay period

schematic

simulate this circuit – Schematic created using CircuitLab

Best Answer

Ignoring the poor attempt at a circuit, you are actually switching off current when you turn your MOSFET off but, because the LED will go high impedance you are left with a circuit node with parasitic capacitance that is charged to nearly the same voltage at which the LED operated at.

Without any "load" resistance this voltage will dwindle away quite slowly. The parasitic capacitance will be several hundred pF and is due to the MOSFET drain-source capacitance and the LED parasitic capacitance.