Old Sketch Serial Logging

I wrote a line in the loop to Serial.println("Hello World") to test the console. I have since loaded a new sketch multiple times, however, after opening the Serial Monitor, "Hello World" is still being printed as if the code was still within my loop function. :o

OSEPP Uno R3 Plus

When a sketch floods the Serial output it can be very hard to upload a new sketch. Are you sure your new sketch is being successfully uploaded?

To upload over a sketch that floods the Serial output:

  1. Hold down the reset button on the Arduino.
  2. Unplug the USB cable. This causes the PC to flush the USB receive buffers.
  3. Re-connect the USB cable. (by continuing to hold the reset button we prevent new flooding)
  4. Begin the new sketch upload.
  5. WHEN THE RX LED ON THE ARDUINO BLINKS: release the reset button.