I did a bread-boarded arduino per the instructions on this page:
and it worked in uploading my first sketch which was:
int ledPin = 1; // LED connected to digital pin 13
void setup()
{
pinMode(ledPin, OUTPUT); // sets the digital pin as output
}
void loop()
{
digitalWrite(ledPin, HIGH); // sets the LED on
delay(1000); // waits for a second
digitalWrite(ledPin, LOW); // sets the LED off
delay(1000); // waits for a second
}
and I wired an LED from pin1 to GND,
first off, the sketch doesnt work (i think because i need to be using a resistor to ground)
and every time I try to upload a new sketch I get the following error:
avrdude: stk500_getsync(): not in sync: resp=0x00
I've tried all the usual troubleshooting tips, reboot comp, unplug everything etc. and obviously I took the LED out.
Does anyone know how to fix this issue?
after that every time I tried to upload a sketch I got a
Update: Turns out the program WORKS but what it does it runs pin 1 HIGH and LOW (obviously), and I have learned that PIN 1 is the TX pin! I'm an idiot, does anyone know how I can flash the program some other way? I'm guessing this is why upload isn't working.
First of all. Always use a resistor of atleast 100 ohms preferably more when connecting an LED.
Next, try manual reset.
Remove anything from the arduino.
Press the upload button and press the reset button immediately after seeing the "binary sketch size of ? bytes" message.