My Arduino got damaged by a short circuit so I tried my board with a simple code it gives me wrong results, so is there any way to reset or format it?

  • 3
    What simple code did you upload? Typically you first need to check what is damaged on the board. Sometimes it is just a simple component sometimes you have to throw the board away. Then if the AVR seems to behave incorrectly you can try to check if this is the whole chip or only some I/O pins. – jfpoilpret Sep 12 '14 at 18:58
  • @jfpoilpret the simple code is controlling some LEDs , they are powered correctly but not in the order i coded it – Abdelrahman Elshafiey Sep 12 '14 at 20:31
  • @jfpoilpret how can i check for the faulty part > – Abdelrahman Elshafiey Sep 12 '14 at 20:32
  • 1
    Would you mind edit your question and post the program you uploaded and describe how it behaves? That could help diqgnose the state of your board. – jfpoilpret Sep 12 '14 at 21:28
  • 1
    First ensure that upload works (it seems so) simply by checking the IDE does not report any error. Then upload a program that just uses Serial to exchange data with the serial monitor. Then upload a program to check one pin at a time. Do this for output then input. If all tthat works then your Arduino is probably in a quite good shape. – jfpoilpret Sep 12 '14 at 21:28

From: https://stackoverflow.com/a/6089103/9392580

Try the following:

  1. Prepare the basic empty program (empty setup, loop, etc.)
  2. Compile it.
  3. Reset the Arduino using the hardware button on the chip
  4. Press Ctrl + U to upload your code.
  5. If unsuccessful - got to 3.

There is a delay before the boot loader starts the programs, just work on your timing. It worked for me when a bug in my Arduino's code was executing a soft reset every 500 ms.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.