Arduino when connected to USB lights up and then dies (SOLVED)

I was using an arduino uno for a time now but yesterday I found that when I plugged it in the green light goes on for a while but then dies later(few seconds) along with the L -orange LED near pin 13.
What may be the issue?

Can you please elaborate, if you are using USB power from PC or from a wall wart? Could be brown-out detection causing it, guessing a slow decrease in brightness from your phrase "dies out" .
A little image or gif would be helpful, which visualise your problem.

Thank you for your helping hand. I realised a problem, I was actually accidentally shorting the circuit(output 5V and gnd of arduino) causing high current and arduino turned off due to heating and thermister fuse.

1 Like