Power over USB issue !PLEASE HELP!

Hello, I have an issue where I have multiple Arduino's, all of which only run for half a second or so when powered over USB from my pc. I have an Arduino UNO and two Arduino Megas, and they have all done this since I purchased them. When I connect the USB and upload ANY code, it will run for maybe 500ms, and then shut off. When I press the reset button, it will continue to do the same thing again. The RX light will flash twice after the code has run for a short period of time before stopping. When I power with the power adapters, they will run, but the issue is that I'm not able to troubleshoot or run a serial monitor when connected to my pc. I have made sure all drivers are updated, they all have individual COM ports assigned. Occasionally when uploading the code, it will give a random upload error, stating it cannot connect to the board, but when I upload one or two more times it will work. This seems to be a transmission of data issue, but I cannot find any other information on this.

Also, I have tried two different PCs and both have the same issue. I have also purchased a USB hub that is powered, assuming the PCs arent providing enough power over USB and it still doesn't work.

Just before we start - Do you have genuine, Arduino branded boards, or clones/copies? Have you replaced the USB lead with a known,tested lead? Are you sure the USB lead is FULLY inserted into the USB socket on the boards?

I have a genuine Arduino UNO, and two Elegoo Megas. They all do the same thing. Iv swapped all the USB cables between the boards and tried them all, along with buying a new one. So iv tried 4 cables in total. Also, I've made sure it is completely inserted into the board as well as the PC.

Does the loopback test work on any of them? Connect D0 to D1, Reset to Gnd, and type data in the serial monitor, see if if echoes back successfully.

Upload the blink example in the IDE, does the board still stop flashing the LED after 500mS?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.