Electronic – arduino – Led strip dimming

12varduinoled stripmosfet

I have a problem with my led strip starting to flicker/flash when I send a low pwm signal from my arduino (analogWrite 1-79). Here's a video:
https://www.youtube.com/watch?v=X8wHzEQ4Wvw

I'm using a 12v 2A external power supply and a logic level mosfet to regulate the led brightness. I really have no idea why it's starting to flash like that.

I've tried with multiple different led strips with varied length, but with no different results. I have also tried using resistors in different places with lots of different resistance, this can remove the flicker, but the brightness of the led's is greatly reduced.

Here's my current schematics (might not be 100% accurate, dimming etc. works):
enter image description here

Best Answer

I had a flickering issue with LED strips and I solved it by adding a 1000uf capacitor between positive and negative as close to the LEDs as I could, in your case you want it close to the transistor. This may not be your issue, but it is a good practice anyway. Not all power supplies respond to changes in current draw quickly and the capacitor acts as a buffer.

I would put the negative side of the capacitor where the transistor is connected to ground and the positive side where the LED is connected to positive. Make sure the capacitor is rated for the voltage you are using.

In the diagram above placing it on the two power rails next to the LED should be good.

These capacitors are polarized, make sure the negative side goes to negative and not the other way around.