Almost every time I build an Arduino based project, I run into power supply issues.
Always my fault (lack of planning etc!)
Take my current project.
I have a Mega, with an RTC module and an mp3 module attached, running off the Mega's 5v supply. They seem to work OK.
12v from my bench supply comes in, and splits into two feeds. One directly feed the amplifiers (small 3w) and the other feeds the Mega.
At the incoming point (2.1mm jack), I have a board with a 1000uf, 100uf and 0.1uf cap.
Tried my best to avoid ground loops etc.
BUT... the issue is nearly always these ws2812B, 5v Leds. These draw a lump of power, and different wall PSU's give me different issues.
With all six sets of RGB's lit at full, the 12v supply draws about 2.8A.
I originally had each strip fed from it's own 7805 regulator, but they just could not handle the current of each strip. The data corrupted all the time.
Finally I got them working by using 4x buck regulator boards. These are adjusted to 5v, supplied directly at the incoming source and only feed the LED strips (some of the LED strips share a supply, as they are not that big).
This seems to work, but the whole setup is still very tempermental to the original incoming 12v supply. Bench supply works OK, but most wall adapters fail (corrupted data).
Just ordered a new 6A 12v PSU. See if that works.
All data lines to the RGB's have ferrite coils on. Quite literally anywhere I think I need it, I stick a capacitor or two nearby.
YET... I still suffer supply noise issues.
I also have an IR receiver on the project (resistor and capacitor attached next to it as the datasheet suggests), and this is reading corrupted data unless I strip out all the code for the RGB leds (Then it works fine).
Can someone point me in the direction of a decent power supply design that would allow me to build my projects without this constant supply noise issue.
My projects are nearly always 12v based.
I don't have a scope, so I can't narrow down noise that way.
The only thing I never use is inline inductors or coils. I don't have any and have no idea how to calculate what I would require (and whether they would make any difference).
Thanks