I believe the problem is that you're using an outdated version of the Arduino IDE, from before sketch names starting with a number were supported. Please update to Arduino IDE 1.8.8 and try again. You can download it here:
its how the file came i think it written ok but i will check.
pert:
I believe the problem is that you're using an outdated version of the Arduino IDE, from before sketch names starting with a number were supported. Please update to Arduino IDE 1.8.8 and try again. You can download it here: http://www.arduino.cc/en/Main/Software
im downloading now hope that this will fix the issue. but this file should be very old, i guess it worked in the past.
//////////////////FIX THIS////////////// #ifndefAVR_ATmega1280 #ifndefAVR_ATmega2560 #error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu. #endif #endif
so i do not understand why it didn't choose the correct pins.
You need to understand the difference between warnings and errors. A warning is the compiler telling you there is something in the code that could possibly cause a problem but doesn't cause the compilation to fail. An error is a problem with the code that causes compilation to fail. In this case you have posted a warning not an error.
From the code, it seems very clear that this warning doesn't represent a bug. The author of the code could have easily written it so that this warning wouldn't have been produced but unfortunately they weren't that considerate.
In file included from C:\Users\shmulik\Documents\Arduino\250mm_ball_spindle\250mm_ball_spindle.ino:152:0:
sketch\Configuration.h:20:0: note: this is the location of the previous definition
#define MOTHERBOARD 33
^
Sketch uses 46316 bytes (18%) of program storage space. Maximum is 253952 bytes.
Global variables use 3499 bytes (42%) of dynamic memory, leaving 4693 bytes for local variables. Maximum is 8192 bytes.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
An error occurred while uploading the sketch
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
so i fought maybe this warning are showing what is wrong in the upload.
shmuel_mauda:
i knew its a warning and not an error
If you know it's not an error, then don't call it an error:
shmuel_mauda:
i get this error massage:
shmuel_mauda:
but when trying to upload it i get this timeouts:
The warning has absolutely nothing to do with the timeout.
Make sure you have selected the port of your Arduino board from the Tools > Port menu. Sometimes the port will be labeled with the board name in the menu. Other times it will not. If you don’t know which port is your Arduino, you can find it like this:
Unplug your Arduino board from the computer.
Tools > Port
Note the ports, if any, listed in the menu.
Close the Tools menu
Plug your Arduino board into the computer.
Tools > Port - The new port listed in the menu is your Arduino board.
If the Tools > Port menu is grayed or the port of your Arduino does not appear on the menu:
Make sure your USB cable is fully inserted into the Arduino board and the computer.
You may need to install the driver for the USB-serial chip on your Arduino.
You may be using a charge-only or defective USB cable. Try a different cable or test your cable on another device to confirm that it works for data.
Using a USB 3.0 port on your computer may cause problems. Try a USB 2.0 port.
Remove any connections to pins 0 and 1. These pins are used for communication with your computer, including uploads. Connecting anything to these pins can interfere with uploads.