I wrote a code and when I plug my arduino UNO to the computer it heats. (Doesn't even take 5 seconds). Can someone tell why it happens and how to stop it ?
You made a mistake
Seriously though, your post is lacking every possible detail that is needed.
- What is heating up?
- What is all connected to the Arduino? If anything, provide a complete wiring diagram that includes all power connections; a reasonably sized (300 kB or so) photo of a handdrawn diagram / schematic is OK.
- How is it powered?
- Your code, properly formatted using
<ctrl>Tin the IDE and posted using code tags in the reply box.