I want to make a LED strip driver, using an atmega328 on a custom PCB.
I was able to get it to work perfectly using an arduino UNO, with the mosfets connected on a breadboard. However, when I just had the atmega328 chip on the breadboard (with crystal and capacitors) it was unable to drive the LEDs.
I had uploaded a sketch to use PWM to fade the LEDs on and off, which works perfectly on the full arduino UNO board, but when using the standalone atmega328 the PWM worked sometimes but then seemed to reset the arduino, and was just generally unstable.
How can I resolve this?
Thanks for your help