LED on pin 13 always on

Hello

I am very new to arduino and programming , I just finished Blink . It worked for a while but now every time I plug my arduino into my PC ,LED 13 stays on and I get a message saying:

Binary sketch size: 3,064 bytes (of a 14,336 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00

I have checked the COM and its the right one and I have tried plugging and unplugging and also reseting the arduino .

I have a Arduino with a ATMEGA 168 .

Thank you.

It sounds like something got stuck in the code, in the last code you uploaded.

I had a similar error in my Nano this week, here you can see how I fixed it. Hope this helps you.

http://arduino.alt245.com.ar/how-i-dealt-with-this-error/

Hello and thank you for your reply . I don't have much time now but I will check this out A.S.A.P.
This is the last code I used . I just wanted to try something out . What happened to the old ZXQ website? | ZXQ

// Led VU Meter Example
// Version 1.0
// Written by James Newbould

int led[10] = { 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; // Assign the pins for the leds
int leftChannel = 0; // left channel input
int left, i;

void setup()
{
for (i = 0; i < 10; i++) // Tell the arduino that the leds are digital outputs
pinMode(led*, OUTPUT);*
// Serial.begin(9600); // Uncomment to enable troubleshooting over serial.
}
void loop()
{
left = analogRead(leftChannel); // read the left channel
// Serial.println(left); // uncomment to check the raw input.
*left = left / 50; // adjusts the sensitivity *
// Serial.println(left); // uncomment to check the modified input.
// left = 1500; // uncomment to test all leds light.
// left = 0; // uncomment to check the leds are not lit when the input is 0.

  • if (left == 0) // if the volume is 0 then turn off all leds*
  • {*
  • for(i = 0; i < 10; i++)*
  • {*
    _ digitalWrite(led*, LOW);_
    _
    }_
    _
    }*_

* else*
* {*
* for (i = 0; i < left; i++) // turn on the leds up to the volume level*
* {*
_ digitalWrite(led*, HIGH);
}*_

* for(i = i; i < 10; i++) // turn off the leds above the voltage level*
* {*
_ digitalWrite(led*, LOW);
}
}
}*

I don't see anything wrong with the code though I am not an expert at all :wink: .
Thank you._

I think the code looks ok.

What did you connected to the input called leftChannel?

Honestly it might be a melted atmega168. Are the TX/RX lights stuck on?

as i see the code looks ok too what is the problem than.

How to use this forum

Code tags.