ground loop issue

We are concerned that you are driving a lot of outputs and the 12V power supply isn't providing enough current. I'm also concerned that you might be switching lots of LEDs without enough decoupling, but I'm guessing from some of the comments - I haven't seen the diagram of these output loads.

The USB supply provides 0.5A normally, what is the rating of the 12V supply you are using?