Not sure if this is the appropriate place for this question but, here goes.
I'm controlling 12V LEDs with an esp8266 using PWM and MOSFETs. It works as intended except when the lights are dim I get flicker. I tried adding an electrolytic capacitor which helped a little but still flickers, maybe a larger one?
How can I prevent the flickering?