Power Supply mega to nodeMcu

Rule #1 a power supply the Arduino is Not. Seperate power supplies is the best.