Nothing appears on my serial monitor

I am running a test program to verify the operation of my Arduino, the program is very simple and just sends a message when a led on pin 13 turns on or off, the code is compiled and uploaded without problems, plus my port is also detected without problems, but nothing appears on the serial monitor, I have tried it with an Arduino UNO that I know it works and the program runs without problem. Do you know what it can be?
this is the code:

void setup() {
  Serial.begin(9600);
}

void loop() {
  digitalWrite(13, HIGH);
  Serial.println("lED on");
  delay(1000);
  digitalWrite(13, LOW);
  Serial.println("lED off");
  delay(1000);
}

Welcome to the forum

Your topic has been moved to the Programming category of the forum

Which board are you using that fails to print ?

Have you set the serial monitor baud rate correctly?

sorry, I forgot to mention it, also thanks for moving my category, I'm new around here, it's an arduino UNO as well

Is the LED turning on and off correctly ?

Yes, both the serial begin and serial monitor are at 9600 baud.

Nope, I also tried to put it on led 12 instead of 13 but it doesn't turn it on either way.

Hi @a142536162534r. Please try this:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. If it is not already, check the box next to Show verbose output during: compilation in the "Preferences" dialog.
  3. Check the box next to ☐ Verify code after upload.
  4. Click the "OK" button.
  5. Attempt an upload, as you did before.

Is the upload still successful when you do that?

Do you mean that you put an LED and current limiting resistor on pin 12 and that didn't work either ?

Does the Blink sketch work using the built in LED ?

yes to the first, no to the second

I did this and now I get this error:


Reading | ################################################## | 100% 0.26s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
         0xff != 0x0c
avrdude: verification error; content mismatch

avrdude done.  Thank you.

Failed uploading: uploading error: exit status 1

It is possible for a short or external circuitry connected to the Arduino board to interfere with the upload process, causing this type of upload error.

Make sure the board is not sitting on anything conductive that could short the contacts on the bottom of the board. Make sure there isn't any conductive debris (e.g., strands of wire or component leads) on the board or on the surface the board is sitting on.

If you have a shield or any external circuitry or components connected to your Arduino board, try this experiment:

  1. Disconnect the USB cable of the Arduino board from your computer.
  2. Disconnect any shields, modules, external circuitry, etc. from your board.
  3. Connect the Arduino board to your computer with a USB cable.

Now try uploading a sketch to the board again. Does the upload succeed?

This experiment will determine whether the upload error was caused by interference from your external circuitry. If so, you can then focus your attention on identifying the specific problem with the circuit and resolving it.

Okay, I did all that, the arduino is on a plastic table so conductivity shouldn't be a problem, also, now I'm loading just the blink program but it still doesn't work.
I also removed all external connections, so now it's just the arduino UNO connected to my computer via USB.

Maybe it is possible a defective or damaged USB cable could cause this error. If you have one available switch to a different USB cable and then try uploading again to see if the error still occurs.

Okay, I'll try it, but I used the same USB cable for the arduino UNO board where it works correctly.

I tried it but I got the same error

The problem is probably caused by the Arduino board having suffered permanent physical damage. I recommend you carefully review what you were doing with the board the last time it was in a working state. You may be able to identify the cause of the damage and in this way profit from the mishap by gaining knowledge that will allow you to avoid subjecting boards to the same conditions in the future.

Unless you have the right tools on hand and the skills to use those tools, repair of the board will not be feasible. I suggest you attach a note to the damaged board describing what is wrong with it and put it in your electronics salvage bin. Then purchase a replacement board.

You can support the work Arduino does to provide free open source software, documentation, and hardware designs to the community by purchasing official hardware. It is available from these sources:

1 Like

Yep, thanks for all your help, a member of my team is telling me just now that he put it unprotected inside an aluminum structure, maybe it suffered a short or some damage, again thanks for everything.

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.