Not able to update code on COM3

Hello,

I am trying to use Arduino nano to read the value of the tilt sensor. The program is working perfectly well. The issue is, as I want to change the code or try to update part of it to see changes in my code, as i upload it again, it says

"avrdude: ser_open(): can't open device "\.\COM3": Access is denied.
Failed uploading: uploading error: exit status 1"

I have tried to restart the IDE, plug and unplug the USB port and tried whatever is on the internet but not able to remove this error. possoble for someone to help me?

Open the IDE. Go to Tools, Serial port. Note what ports show up. Plug in the Arduino to the USB. Go to Tools, Serial port, What ports show up now? The new one is the port to which your Arduino is connected. With the clone Arduinos it may not be the same port every time.

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