Take the 2-minute tour ×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

NOTE: Using the Arduino Uno

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:

  1. Changing the COM port
  2. Disabling all the other devices CONNECTED to COM
  3. Tightening the CONNECTIONS
  4. Re installing all the drivers and the IDE
  5. Rebooting the system
  6. 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 ?

HELP NEEDED URGENTLY

share|improve this question
    
Have you tried this on another computer? –  Annonomus Penguin Apr 11 at 13:23
    
@AnnonomusPenguin yes –  Mohit Bhasi Apr 11 at 13:26
    
@AnnonomusPenguin I get the same error –  Mohit Bhasi Apr 11 at 13:26
1  
Well, either your board is fried or you keep making the same mistake when installing the drivers on all of the computers. Have you tried reinstalling the Arduino bootloader, also? –  Annonomus Penguin Apr 11 at 13:28

3 Answers 3

  1. Remove all device connect to uno, and upload code to uno. Because, your device like motor will confuse uno.
  2. Check you usb to serial device.
  3. Check your uno
share|improve this answer
    
All the connections are removed . Still does not work –  Mohit Bhasi Apr 11 at 9:27
    
How do I check if the uno is spoilt –  Mohit Bhasi Apr 11 at 9:27
    
Maybe change a uno? I meet the same stage when I try to connect a motor to micro pro. I fixed that by change a micro pro. –  SivaCoHan Apr 11 at 9:30
    
So basically I need to buy a new one? –  Mohit Bhasi Apr 11 at 9:31
    
yeah, I think so. –  SivaCoHan Apr 11 at 9:31

Have you tried changing the Microprocessor in the Arduino Uno? An AtMega320P is much cheaper than new Arduino, and usually only the microprocessor gets spoilt, rest of the board remains intact.

share|improve this answer

Check the device that the IDE says you're connected to.

http://forum.arduino.cc/index.php?topic=51489.0

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.