Don't use a N-Fet like that.
The gate threshold is usually around 2.5-3V, that voltage Will be dropped bt the fet.
Then the led drops another 2-3 volts, so 5Vcc won't work.
Place the led at the drain!
Also lower power loses by replace the sensing resistor with 1ohm, and dividing the output of the RC filter by 10.