The tx led of arduino uno is always on and the board can't be programmed(programmer not responding)

I've been using my Arduino UNO for a while. I uploaded several codes and made many simple projects using them. Recently I connected my Arduino to a 12V 2A dc adapter for my project. Everything worked fine for about an hour then it stopped running code. I tried to run the program again and reset the board but none of those work. Even the built-in led didn't blink thrice. When I tried to upload the code the following errors have been shown.

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00

The tx led of Arduino is always on now. I tried performing a loopback test using arduino and it failed. Is it a problem with bootloader(sorry I'm new to electronics and know little about these technical terms. The youtube videos advised me to burn the bootloader again and I am not much confident about it.)

This is what my circuit diagram looks like(sorry I'm not experienced in making circuit diagrams:)).

and here's my code

bool memmory = false;
uint8_t buzzer = 13;
uint8_t motor = 12;
uint8_t sensor = 11;
void setup()
{
  pinMode(buzzer,OUTPUT);
  pinMode(sensor,INPUT);
  pinMode(motor,OUTPUT);
  pinMode(10, INPUT);
  digitalWrite(10,1);
}
void loop(){
  if(!digitalRead(sensor)){
    if(memmory == false){
      digitalWrite(buzzer, HIGH);
      digitalWrite(motor,HIGH);
      delay(500);
      digitalWrite(buzzer, LOW);
      delay(500);
      digitalWrite(motor,LOW);
      memmory = true;
    }
  }else{
    if(memmory == true){
      memmory = false;
      delay(10);
    }
  }
}

I've tried to use the ATMEGA of the board with the issue with a new board and it doesn't work in that board too. I think the problem is with the processer. I've also done a loopback test which also failed.

Is there any way I can fix it.

Please provide a schematic of the circuit and the code that you were running at the time the issue occurred.

When a sketch does a lot of Serial output it can be very hard to upload a new sketch. The uploading program on the PC sends a command to the bootloader and reads a response. The USB input buffer is full of whatever the sketch was sending and that data does not match the expected response. The uploader tries the command a few more times before giving up.

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 (or you get a 'not in sync' error): release the reset button.

That RX blink is the first upload command being sent to the bootloader. Releasing the Reset button allows the bootloader to be ready for one of the retries of that command.

1 Like

I've added the code and circuit

So you put 12V unregulated to your 5V pin?

not directly through an l298 module. I thought it would regulate it to 5v.

Thanks for your reply :slight_smile: .I tried your method but it didn't work for me. I don't think my code has to deal with a lot of serial inputs.

Perhaps it would help if you removed all the external serial lines. Its not obvious why this needs to happen but its worth a try.
Also you might have to follow @johnwasser's instructions a few times for it to "take". At least I would consider this before giving up.

I tried it several times. But each time I release the reset button as said to do in the instructions it continues showing the same error.

Did you disconnect the external devices?

I just looked at your code and you don't have any serial functions.

Have you done anything since the last time you programmed this board?

Yes, I've disconnected all my connections. The project has to pump water through the motor. I think it was wet once but wiped quickly. Now the board is completely dry. I don't remember anything else I did wrong with my board. The only thing I did was replacing the ATMEGA of the board with the problem, with one with that of a new board. Then the board worked fine. It made me think that the problem is with the processor and not with the board. I had already lost an old model like this. But unlike the one mentioned, even the tx led is not blinking with that. But the board power on led is turning on.

Or is there any way to know whether the processor is responding or not?

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