Code won't upload to Arduino Uno

Hi, I'm new to using Arduino, and I'm currently using it in a school project. I was supplied an Arduino Uno by my school for my project, and I've written the code, but whenever I try and upload it to the Arduino, this is what I get:

Sketch uses 7502 bytes (23%) of program storage space. Maximum is 32256 bytes.
Global variables use 511 bytes (24%) of dynamic memory, leaving 1537 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=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x9c
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x9c
Failed uploading: uploading error: exit status 1

The problem isn't the USB or the laptop I'm using, as I've tested this out with two different USBs and laptops, and I also managed to upload the same code onto an Arduino Uno R3 that I have at home without any difficulties whatsoever.

I've also tried pressing the reset button, as I've seen suggested, which doesn't do anything at all.
I don't know if this Arduino is brand new or not - my teacher just handed one to me without telling me where he got it from or anything.

Is there anything I can do to fix it? My project is due in pretty soon, and this is literally the only thing that's stopping me from completing it right now.

Hi! Welcome to the Forum.

Does a port appear here?

image

One of the things you can check is what chip your Arduino uses to communicate with the USB. Arduino clones use to have a CH340 chip

image

instead of the original 16U2

image

If so, you might need to install the CH340 driver in order for your PC to recognize the board.

depende do que ele ta lendo

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.