I am working on a project that I have to submit in a few days. My arduino was all set up and was working fine.
Project:Arduino controls a 9v motor depending on the command given. As the arduino only provides 5v , i added a 9v battery to it through a transistor
I decided to add new code into the arduino but when I tried it failed. I have uploaded code thousands of times before (successfully) all of a sudden the IDE keeps giving the following message
avrdude: ser_open(): can't open device "\.\COM3": Access is denied.
I have looked up for a lot of solutions on this forum and elsewhere. Here are the things I have tried so far:
Changing the COM port
Disabling all the other devices connected to COM
Tightening the connections
Re installing all the drivers and the IDE
Rebooting the system
Using another laptop to upload code
All the above have given me the same output for some reason. The built in LED light and the power LED switch on when the board is connected to a power source (my laptop). Could the board have been damaged by any chance ? How can I check if the board is spoilt ? Should I buy a new board ?
i have the same problem.. it worked fine day b4 yesterday..
now i cant upload my program to the board..
done all of the step above also.. plus loopback test..
Arduino: 1.6.3 (Windows 8.1), Board: "Arduino Duemilanove or Diecimila, ATmega328"
Sketch uses 2,490 bytes (8%) of program storage space. Maximum is 30,720 bytes.
Global variables use 38 bytes (1%) of dynamic memory, leaving 2,010 bytes for local variables. Maximum is 2,048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x09
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x09
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x09
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x09
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x09
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x09
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x09
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x09
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x09
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x09
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
It would seem as if your port is being occupied at all times by something on the board itself. Try uploading the code while everything is disconnected from the arduino as anyhting connected to pins 1 and 2 can interfere with the upload process. If that does not work I would recommend you try reloading the bootloader.
It would seem to me that you have somehow corrupted/erased your bootloader. To be certain you can try resetting your board, if the built-in led (L led) connected to pin 13 blinks rapidly 3 times your bootloader is okay and you are probably having serial issues. You can also try a loop-back test and let me know the outcome, the instructions for that are at the top of this sub-forum.