I'm trying to supply 0-5V to a mosfet which controls a 100W LED. I have my power and my control function from arduino mega working.
Right now, I'm using PWM but my concern is when I dim the light I can see the dim and it is steppy.
I connected a potentiometer directly and tried to supply 0-5V to mosfet, it dims perfectly fine.
So, I have done my research and I added a Low pass filter to the PWM signal, but I still didn't get a good dim and its still steppy.
If anyone could help me build the right circuit so I can supply PWM and get analog output.
Using an arduino MEGA, Pin 5, changed frequency to 62.5KHz.
I have tried a number of resistors and capacitors, none of them worked.
I ordered a DAC from adafruit, which I think is my final option if I don't get a good output from filter.