I have a Windows 10 operating system, and connected to Arduino Mega2560 R3 Which is Arduino Uno. Powered with regulated 9 volts DC that came with Uno.
The L light blinks on the Uno board, so it seems to be working. I uploaded the IDE without any problems.
Checked in tools and it shows I am connected to Port 4. Also checked on Device Manager and it shows Uno connected to Port 4. Checked with firewall and can't see anything blocked. I wondered about other stuff using ports like Bluetooth and Verizon. My sketch runs and uploads, but something is blocking upload to the Uno. Below is a print off from the Uno about the problem. I need help getting this working.
I am trying to get it to print Hello, world. Thanks for your help!
void setup()
{
Serial.begin(9600);
Serial.println("Hello, world!");
}
void loop()
{
//Nothing to do here
}Arduino: 1.8.9 (Windows 10), Board: "Arduino/Genuino Uno"
Sketch uses 1492 bytes (4%) of program storage space. Maximum is 32256 bytes.
Global variables use 202 bytes (9%) of dynamic memory, leaving 1846 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xf3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xf3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xf3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xf3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xf3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xf3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xf3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xf3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xf3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xf3
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Thanks for replaying AWOL. I am new to Arduino, so I assumed all Arduino Uno's were the same. I have a couple of books and they all talk about Arduino Uno, and do not say anything about there being different Uno's.
I got Starter Kit from this company www.elegoo.com. The kit is called "The Most Complete Starter Kit Mega 2560 Project" Sold on Amazon. You can see a picture of the kit and the Uno board in question.
On elegoo's web site, looking at a picture of the the Uno board I have---it list the board as;
ELEGOO Mega 2560 R3 Board Black ATmega 2560 ATMEGA 16U2+
I read the numbers on the big square processor on the board I have, and here is the numbers and letters on the processor ATMEGA 2560
16U-TW
355E 3F
1833AMS
I have a gut feeling that the board is working, and also feel my computer and the IDE is working. The computer is simply not getting the information to the Arduino Uno board. At lest that is what I think. Your help is appreciated.
You don't have an Uno. You have a clone of the Arduino Mega 2560. They are completely different things. You need to select Tools > Board > Arduino/Genuino Mega or Mega 2560 in the Arduino IDE.
Thanks Pert, I understand. I was thinking that Windows 10 was selecting some Generic Driver and not the need driver of the clone. I don't know if I got the clone IDE or the real Arduino IDE. I will let everyone know my progress, hope I don't have to go buy a real Arduino, and scrap the clone.
Arduino: 1.8.9 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
Sketch uses 1810 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 202 bytes (2%) of dynamic memory, leaving 7990 bytes for local variables. Maximum is 8192 bytes.
avrdude: ser_open(): can't open device "\.\COM4": The system cannot find the file specified.
avrdude: ser_drain(): read error: The handle is invalid.
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
I uninstalled the IDE then reinstalled the 1.8.9 exe IDE. Went to Tools>Board>Arduino/Genuino Mega or Mega 250, and right below that there was no port listed. So I doubt a port was selected from the IDE download. I ran it anyway and got this error message below. I need to figure out now how to connect a port, as I thought Windows 10 did that for you. I know in the old days you had to select a port. I need help.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.
avrdude: stk500v2_ReceiveMessage(): timeout
the selected serial port
does not exist or your board is not connected
avrdude: stk500v2_getsync(): timeout communicating with programmer
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Is COM4 the correct port? You can verify by checking what happens in device manager when you connect/disconnect the board. The COM port that shows there when connecting the board is the one that you should select in the IDE.
My mistake about the port---because I had the USB disconnected from the board. When I connected the USB in Tools it said connected to Port 4
It may be working now that I went to Tools and put in the correct board. The sketch downloaded without any problems popping up. But there was no "Hello world!" on the screen.
It may be that I don't know where to look for the answer. I used to work with Basic Stamp and the answer would pop up on the screen without doing anything. In doing the "Hello world!" thing, I looked in Tools, under Serial Monitor and there it was Hello world! Is that where I look for the results of the sketch code?
KeithHilton:
The sketch downloaded without any problems popping up.
Congratulations!
KeithHilton:
I looked in Tools, under Serial Monitor and there it was Hello world! Is that where I look for the results of the sketch code?
That's where serial communication with the computer over the virtual COM port (COM4 in your case) will be shown. Serial output is done in Arduino sketches via Serial.print() and Serial.println():