problem uploading

hello, I tried making a l293d 4wd Arduino Uno obstacle avoider,
it worked the first time but when I decided to switch the motor connections then my 16v battery accidentaly touched one of the motor connection terminals then it suddenly stopped working!
nothing is moving. I tried uploading again but it didn’t work it takes a long time to upload then gives me this error message:

Arduino: 1.8.13 (Windows 10), Board: “Arduino Uno”

Sketch uses 5314 bytes (16%) of program storage space. Maximum is 32256 bytes.

Global variables use 124 bytes (6%) of dynamic memory, leaving 1924 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=0xe0

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xe0

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xe0

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xe0

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xe0

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xe0

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xe0

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xe0

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xe0

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xe0

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.

I got all the wiring details and code from here:

Untitled.png

Hello Mosab,

Thank you for sharing your issue with the Arduino community.

I would recommend to test if the board is working properly with any of the examples such as 'Blink'.

If you are unable to upload a sketch try to reprogram the board following these instructions: https://www.arduino.cc/en/tutorial/arduinoISP

If your problem persists contact support.

I hope this helps!

so the problem is from the Arduino's bootloader? or the built-in programmer?

did the mcu on-board get hot or something ? please make sure that the mcu didnt get burnt, sometimes the l293d may have got burnt check that too

You will need to start by taking the Uno out of the circuit and test it.

1) Is it still recognised in Windows device manager as Arduino or serial port? 2) If the answer to above is yes, try the upload. If the answer is no, buy another one. 3) If the upload fails, you can try to reload the boot loader. If the Uno has the DIL version of the 328P, you can replace it with one that has the boot loader (optiboot) pre-programmed.

ok so I had to buy a new UNO then I switched their chips and tested them, it looks like I've burned the UNO ic