Hi Folks,
I’ve built some crown molding lights with 12v LED strip lights down a 25’ section of crown molding. The Arduino PWM’s a mosfet which switches the ground just like in examples here and on the adafruit site. For shorter stings up to about 10 or 15’ I’ve had no trouble, I use the exact same board for undercabinet lights without a problem. But I can’t get the big long strip of them to light up more than about an analog write level of around 100 out of the possible 255 before the board starts rebooting or hanging.
The power supply is a 15amp 12v supply and powers both the arduino and the strips and is about 4x the amps that I calculated the strips would use, but it’s what I had.
The problems only happen when the load is high so I’m suspecting power supply noise under load? Or some combination of noise and the PWM frequency is giving the arduino fits. There is, of course, an on board decoupling cap but it’s small. I can place a large cap just across the 12v input to the regulator, or the 5v output from the regulator to smooth out the power. I dont think the power supply can be sinking under load far enough to drop out the 5v regulator since the LED’s are nicely bright still. So it’s got to be noise or other interference?
Any thoughts on where to go next for debugging greatly appreciated. Thank you!