I would like to know how to stop my robot with Arduino. Thanks for your answer. Bye.
Turn off the power.
Stick an old Arduino board (preferably one that already released its magic smoke) and stick it in the drive train. Let it crunch to a stop.
Build the ardruino based “Death Ray” gun and use that to stop all the evil robots.
In case it's not clear from the previous answers, you might want to elaborate on what you exactly want to achieve.
You mention "clear memory".
If you want to wipe the currently loaded program, just upload blink sjetch or the bare minimum sketch.
You mention "stop my robot"
What does that mean?
48 hours - I call it dead thread.
I'm late to the party, but I think it is important to point out that while this solution probably will work to cause the robot to stop, it won't necessarily clear the memory, as per the title of the post.
stick it in the drive train. Let it crunch to a stop.