Loading...
Pages: [1] 2   Go Down
Author Topic: Help with uploading to uno  (Read 343 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I have created a sketch and when I try to upload it to my uno my computer says: programmer is not responding  smiley-sad  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);

}
Logged

NE PA
Offline Offline
Full Member
***
Karma: 5
Posts: 149
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you install the drivers?
http://arduino.cc/en/Guide/HomePage
Logged


Offline Offline
Sr. Member
****
Karma: 12
Posts: 327
The last thing you did is where you should start looking.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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).
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes.  I had programs working on it yesterday.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Sr. Member
****
Karma: 12
Posts: 327
The last thing you did is where you should start looking.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes
Logged

NE PA
Offline Offline
Full Member
***
Karma: 5
Posts: 149
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged


Offline Offline
Sr. Member
****
Karma: 12
Posts: 327
The last thing you did is where you should start looking.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Quote
LED's start to blink
Which LEDs?
Logged

USA, FL
Offline Offline
God Member
*****
Karma: 11
Posts: 584
A life? Where can I download one of those?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
then I get the error message

What error message?

Surprised no one has asked this.
Logged

//LiNK

NE PA
Offline Offline
Full Member
***
Karma: 5
Posts: 149
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
then I get the error message

What error message?

Surprised no one has asked this.

He stated it in the first post.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 218
Posts: 13896
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
Melbourne, Australia
Offline Offline
Shannon Member
*****
Karma: 218
Posts: 13896
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Logged


Pages: [1] 2   Go Up
Print
 
Jump to: