Help with uploading to uno

Hi, I have created a sketch and when I try to upload it to my uno my computer says: programmer is not responding :frowning: I am only 12 years old and my Dad tried everything to get the program to upload to the uno. I need help! When I'm uploading the sketch the LEDs blink so I think its connected to my computer properly. I tried everything to get it to work I even tried changing the serial port and it didn't work.

Here's the code I tried to upload when this happens incase it's causing this:

const int LED1 = 0; // Set the digital pin for the LEDs.
const int LED2 = 1;
const int LED3 = 2;
const int LED4 = 3;
const int LED5 = 4;
const int LED6 = 5;
const int LED7 = 6;
const int LED8 = 7;
const int LED9 = 8;
const int LED10 = 9;
const int LED11 = 10;
const int LED12 = 12;
const int LED13 = 13;

void setup() {

pinMode(LED1, OUTPUT); //Declare the pins that the LEDs are connected to
pinMode(LED2, OUTPUT); //as "OUTPUTS"
pinMode(LED3, OUTPUT);
pinMode(LED4, OUTPUT);
pinMode(LED5, OUTPUT);
pinMode(LED6, OUTPUT);
pinMode(LED7, OUTPUT);
pinMode(LED8, OUTPUT);
pinMode(LED9, OUTPUT);
pinMode(LED10, OUTPUT);
pinMode(LED11, OUTPUT);
pinMode(LED12, OUTPUT);
pinMode(LED13, OUTPUT);

}

void loop() {

digitalWrite(LED1, HIGH);
delay(500);
digitalWrite(LED1, LOW);
digitalWrite(LED2, HIGH);
delay(500);

}

Did you install the drivers?

Would you tell us the steps you follow to do the upload?

What kind of Arduino are you using?

I assume you use a 220 ohm resistor in series with your LED's anode (longest wire) and the cathode (short LED wire) to GND (0volts).

Yes. I had programs working on it yesterday.

LarryD:
Would you tell us the steps you follow to do the upload?

What kind of Arduino are you using?

I assume you use a 220 ohm resistor in series with your LED's anode (longest wire) and the cathode (short LED wire) to GND (0volts).

It's Arduino Uno 1.0.3. For steps, I verify and then hit the upload button. The LED's start to blink and then I get the error message. I have the ground connected to the negative leg on the LED's and each LED has a digital OUTPUT port connected to it. There are 13 LED's.

Do you have "Arduino UNO" selected for the Board under Tools?

Yes

It may not be your problem but you absolutely need resistors between the positive legs on the LED and the arduino pins. Not only can you burn out the LEDs without the resistors but you can also burn your Arduino up as well. As said above, 220ohm will suffice.

Try this:
unplug the UNO
restarted your computer
plug the UNO back in the computer wait 20 seconds
you should hear the new hardware sound
start up the IDE rev 1.03 program
bring in the file
check that the correct serial port is selected
upload the sketch again.

LED's start to blink

Which LEDs?

then I get the error message

What error message?

Surprised no one has asked this.

codlink:

then I get the error message

What error message?

Surprised no one has asked this.

He stated it in the first post.

Ok I guess that's bad I hope I didn't hurt my uno. But I can't put any programs on it.

Robotbuilder9999:
Yes. I had programs working on it yesterday.

You uploaded programs yesterday, so your drivers are OK, right?

Do you or do you not have any resistors in series with the LEDs? If not, you may have damaged both them and the board. Please remove all the LEDs and try uploading without them.

I don't have any resistors in series with the LEDs.

Right. Well, remove the LEDs. In future put something like a 220 ohm resistor in series with each one.

Read this:

http://thebox.myzen.co.uk/Tutorial/LEDs.html

If your controller has been damaged, I suggest you purchase 3 or 4 with bootloaders from the WEB.
When you first start out learning, you may need some replacements!
Lots available, example:
http://store.arduino.cc/ww/index.php?main_page=product_info&cPath=11_12&products_id=80

Try without the LEDs connected. If that doesn’t work you may have burnt out an input pin, and it won’t be programmable. You can replace the chip itself (assuming you have a socketed one) for about $6, eg.

It works now! And my arduino is not broken! I just changed the serial port to /dev/cu.modem411 thats all! Thanks for your help! :slight_smile: