Pages: [1]   Go Down
Author Topic: arduino mega 2560 will not upload from computer to board  (Read 1199 times)
0 Members and 1 Guest are viewing this topic.
mid west ND.
Offline Offline
Newbie
*
Karma: 0
Posts: 34
sprocive@gmail.com
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Evey sketch i have wrote will not upload times out every time i try
dos any one have any suggestions on what i can do to fix this little problem.
 
i am using windows seven. my computer sees the board. i did down load
arduino 0023 and 0022 and they did not help.

if there is any more info that is needed to help with this pleas let me know.
Logged

Sprocive

WV
Offline Offline
Full Member
***
Karma: 0
Posts: 160
Arduino, Helps With the ADD
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You Said
Quote
Evey sketch i have wrote will not upload
Can you load any of the Examples ?
Logged

Tucson, AZ
Offline Offline
Sr. Member
****
Karma: 8
Posts: 314
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How about telling us the error messages that you are getting?  Show us the sketches that you are trying to load.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Check to see in the device manager to see if your board has a device driver. If not when you right click on Arduino Mega in the device manager select properties - you want to tell it you want to browse your computer for the driver and not look on the internet.  It should be in a place like this:C:\Users\Drake411(me)\Downloads\arduino-1.0-windows\arduino-1.0\drivers  And probably Arduino MEGA 2560 maybe you have a rev3.

I just got my XINDA mega 2560 today and was a little miffed it didn't work. Seems to like this driver for uploading sketches. Hope you find my guess useful.
Logged

mid west ND.
Offline Offline
Newbie
*
Karma: 0
Posts: 34
sprocive@gmail.com
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

this is what i am working on.


// constants won't change. They're used here to
// set pin numbers:
const int buttonPin = 2;     // the number of the pushbutton pin
const int ledPin =  13;      // the number of the LED pin

// Variables will change:
int ledState = HIGH;         // the current state of the output pin
int buttonState;             // the current reading from the input pin
int lastButtonState = LOW;   // the previous reading from the input pin

// the following variables are long's because the time, measured in miliseconds,
// will quickly become a bigger number than can be stored in an int.
long lastDebounceTime = 0;  // the last time the output pin was toggled
long debounceDelay = 50;    // the debounce time; increase if the output flickers

void setup() {
  pinMode(buttonPin, INPUT);
  pinMode(ledPin, OUTPUT);
}

void loop() {
  // read the state of the switch into a local variable:
  int reading = digitalRead(buttonPin);

  // check to see if you just pressed the button
  // (i.e. the input went from LOW to HIGH),  and you've waited
  // long enough since the last press to ignore any noise: 

  // If the switch changed, due to noise or pressing:
  if (reading != lastButtonState) {
    // reset the debouncing timer
    lastDebounceTime = millis();
  }
 
  if ((millis() - lastDebounceTime) > debounceDelay) {
    // whatever the reading is at, it's been there for longer
    // than the debounce delay, so take it as the actual current state:
    buttonState = reading;
  }
 
  // set the LED using the state of the button:
  digitalWrite(ledPin, buttonState);

  // save the reading.  Next time through the loop,
  // it'll be the lastButtonState:
  lastButtonState = reading;
}

this comes up when i try to up load.
avrdude: stk5002_getsync() : timeout communicating with programmer
avrdude: stk500_2_receivemessage() : timeout

let me know if this helps
i do not see my arduino board in my device menu i know i am using
comport1 and my computer is telling me all drivers are updated and working.

let me know what u think.
Logged

Sprocive

Oz
Offline Offline
God Member
*****
Karma: 4
Posts: 732
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi and welcome to the world of pain!   smiley-wink

What I think the other replies were meaning were to check that the computer is talking to the Arduino with the right port.

The software uses a pseudo COM port to send data to the card.

If this is set wrong, it won't work.

I am not a windows 7 person, but if I could work it out with XP, it can't be that difficult.

Load the program - the compiler and go to tools/serial port

Check what that says and report back.

Logged

mid west ND.
Offline Offline
Newbie
*
Karma: 0
Posts: 34
sprocive@gmail.com
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

it shows com1. windows 7 is new to me on this computer. i have set up a duel boot on my computer to run xp and windows 7. i will also try
and set up arduino program on my other hard drive and see what happens. thank you for your help. let me know what u think.
i am wondering what problems u had with xp that might help on my other hard drive.
Logged

Sprocive

mid west ND.
Offline Offline
Newbie
*
Karma: 0
Posts: 34
sprocive@gmail.com
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thank u all for the help i had the wrong com port i need com3 witch took the arduino drivers. i am now uploading my sketch with out the delay. what i did was i went into my device manager and plugged my mega 2560 into the computer to see witch port was coming up with question mark then upload the drivers from there. THANK U FOR THE HELP.
Logged

Sprocive

Pages: [1]   Go Up
Jump to: