I have been searching for nights about how to erase all sketches from an arduino mega board.
I found this old thread http://forum.arduino.cc/index.php?topic=72323.0
but I tried to upload empty sketch and it is not working. I also tried the un-plug/plug USB and reset button and no luck at all.
In summary, my problem is that I have been uploading many sketches for my little project which runs a number of continuous servos. see my thread here http://forum.arduino.cc/index.php?topic=384766.0. But every time I upload an updated sketch, the servos keeps rotating in random, as if they are receiving left over of previous signals.
I am thinking may be if I create a new sketch with instructions to flush the serial data totally then it may re-fresh the program. Does anyone have link to such example code?
I stumbled in this and going crazy -
Thank you for the help in advance.