Hi there all, a new one here,
I am busy with this project to have multiple RGBW leds in series, controlled via an LM2596. Set to an constant current of 650mA (yet they are on 200mA while testing).
Now the next step was dimming/fading these leds, preferable with an variable resistor (potmeter) via PWM.
I found several different code’s. I tried some of them and modified them but I can’t get the right ‘frequency’ of pwm.
First i connected it to pin 13 of my nano and it was more a kind of stroboscope, only the very end was useable, but the frequency hearts the eyes and makes you fatigue. Then I connected it to 9, but still not the desired effect. Later on I changed the frequency to 33Khz with some help of google. But that still doesn’t work >:( .
Has anyone suggestions, maybe different code or other wiring? I will post the code when I am behind my desktop.
perhaps the pull-up resistor is too low, I thought it was 1K, I could try one 10K or two 10K parallel.
I use this scheme to shortcut the leds, with IRFZ44N mosfets:
I also found this post: http://forum.arduino.cc/index.php?topic=104268.msg1436767#msg1436767
But then I don’t know how to write the code. How do I know what for potentiometer is on the LM2596, though it seems very logic…
With this option I could as well solder the old potmeter loose, connect a new one and move it to the ‘control panel’…