How to read the code FROM the arduino

This seems simple but I dont know how to do it.
I have the a chip with some code I like. I lost the original file.
I must be able to get the code off the chip and onto my computer.

If you know please let me know and Ill do it!
Be specific though, if I was smart enough to figure it out I would have done it allready. Thanks
R

I must be able to get the code off the chip and onto my computer.

Sorry, but you can’t recover the source code of a sketch from the compiled code in the Arduino. You can only recover the binary object code, which can then be programmed into another AVR chip and/or Arduino.

I do not know of any way to do this.

But to prevent it: Take backups. Go easy on the ‘delete’ button [specially shift+delete]

Rescue: Rewrite the code, and benefit from having a good idea how to implement the solution to your problem. The first and initial way to solve a problem is not always the best.

:slight_smile:

the binary code would be okay- I could just clone it then which would be okay. is it a nightmare?
R