Cant upload sketch...

So here is my message when i try to upload an example sketch:

avrdude: ser_open(): can't open device "\.\COM3": Access is denied.

avrdude: ser_drain(): read error: The handle is invalid.

Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

i have tried com3, 4 and 5 wich are my usb ports on my laptop.

PLEASE HELP :slight_smile:

Ah and i have arduino mega 2560 and it's not a original :slight_smile:

Does the loopback test work? Do you have the right driver for the USB/Serial adapter chip on your board? Do you know which chip you have?
Do a little checking next.

AliPirx:
Ah and i have arduino mega 2560 and it's not a original :slight_smile:

Do you have selected the MEGA2560 board in the Tools menu?

If yes, check the serial port of your board:

  • disconnect USB cable
  • check "Tools - Serial Port" about COM Ports available
  • connect USB cable to Arduino board and wait a few seconds
  • check "Tools - Serial Port" about COM Ports available
  • the newly created COM is the one you should select, it is your board then!

If no new COM port appears in the list after connecting the board, you most likely have no correctly installed Serial driver for your board.