The Mega is powered from its own power pins (barrel, Vin, USB, 5V pin, whatever you have chosen to use), not through your TIP120.
===
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project
See About the IDE 1.x category.