Arduino Mega 2560 disable USB power

mozqwe:
Hello is there a way to force power supply only from external source and use the usb connection only for programming purposes on a mega 2560 rev3? Thx

That is how the mega2560 board works already. If there is both USB and external DC power available to the board, the auto-voltage selection circuit uses the external DC power and isolates the USB power via a FET switch.

Lefty