I have designed an MCU-based PWM dimmer for LED strips.
My circuit works fine but there is a problem: The MOSFET is unexpectedly hot (i.e. 65°C). So I scoped the drain voltage using an oscilloscope and I saw that the drain voltage was about 0.130V (as expected) when the MOSFET is on, but it is 9V --it should be 16V-- when the MOSFET is off. So I'm not sure but I think that this causes the MOSFET to heat up.
simulate this circuit – Schematic created using CircuitLab
Where is my fault? How can I solve this problem?
EDIT: Here are the waveform of VDS: