Works fine powered from USB works bad powered externally

Power the unit off.

Disconnect power.

Set your Ohm meter to detect continuity.

Put the black lead on the USB connector cover on the CPU. Use the red lead to trace out all the ground connections, keeping the black lead on the USB connector cover.