Problem uploading to board.

Hello guys.

i’m unable to upload any code to my arduino uno since this morning .

i facing the the error : access denied to COM .

i have also changed several ports(different COMs) in my pc but nothing changed .

by the way i have an arduino mega 2560 too that the program uploads easily on it !

i have no idea why this is happening to uno !

An error occurred while uploading the sketch

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is “C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf”

Using Port : COM10
Using Programmer : arduino
Overriding Baud Rate : 115200
An error occurred while uploading the sketch

board is test without any connected component it .

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

i’m Facing above error this morning . :o >:(

still not able to program after several reboot !

You have a 'fake' Arduino, you have to install the CH340 drivers first before the IDE will 'recognise' it and work.

Maybe this will help.

akatchi:
You have a ‘fake’ Arduino, you have to install the CH340 drivers first before the IDE will ‘recognise’ it and work.

Maybe this will help.

Yes that’s a chinese one .
i totally removed arduino IDE and reinstalled it but uno isn’t being recognized by the IDE !
but it is known in Device manager . as you mentioned it isn’t recognized by software i have also checked
those Drivers too . they don’t work !

The problem is something else. This has been happening to me as well, and I am using Unos bought straight from Arduino website which show up as "Arduino Uno" in my device manager.

You dont need to go to youtube for the correct CH340 drivers.

THEY ARE HERE.

You may have to turn off "DRIVER ENFORCEMENT" or "INSTALL AS ADMINISTRATOR" depending on the security you have set up.

The site is in Chinese but it is safe and has been used by countless other Arduino users including myself and I run a pretty tight ship as far as security is concerned.

Ballscrewbob: You dont need to go to youtube for the correct CH340 drivers.

THEY ARE HERE.

You may have to turn off "DRIVER ENFORCEMENT" or "INSTALL AS ADMINISTRATOR" depending on the security you have set up.

The site is in Chinese but it is safe and has been used by countless other Arduino users including myself and I run a pretty tight ship as far as security is concerned.

it didn't work for me . i guess this app is for unrecognized port in device manager but my port is known and properly working there but not recognized by software . you can see that in first post .( CH340 isn't written after the port name )

For clones I have always seen CH340 written in the port name followed by the port number so long as the correct drivers were installed.

The CH340 are pretty durable compared to real Arduinos.

The only caveat with Arduinos is not to use them on USB 3.0 ports and if you use a USB hub ensure it is a 2.0 hub with its own adequate power supply.

USB cables are usually a known cause too so it is always worth using one known to work on another board.

Ballscrewbob: For clones I have always seen CH340 written in the port name followed by the port number so long as the correct drivers were installed.

The CH340 are pretty durable compared to real Arduinos.

The only caveat with Arduinos is not to use them on USB 3.0 ports and if you use a USB hub ensure it is a 2.0 hub with its own adequate power supply.

USB cables are usually a known cause too so it is always worth using one known to work on another board.

my old pc only has USB 2 ports :) . i have also checked one arduino mega 2560 with the same cable and the same pc it works like a day ! and i had no problem with that one . i also installed arduino IDE in another pc and i faced the problem there too (with UNO board) .

maybe it is something related to hardware ?!

last time i was working with 2 dynamixel servo motros (that 12v adaptor and usb cable, both were pluged to arduino) . but if arduino is damaged there why mega still works as i tested that circuit on both of them ?!

OK how were you powering the motors ?

A SCHEMATIC IS REQUIRED for this bit. If it was some form of SHIELD then please supply a working link to it.

Ballscrewbob: OK how were you powering the motors ?

A SCHEMATIC IS REQUIRED for this bit. If it was some form of SHIELD then please supply a working link to it.

these motors have 3 wire one ground one VDD and one data

that's so simple as this :

GND to arduiono GND VDD to VIN arduino board ( by the way there is no load on motors so vin has the capability of 1 amper current ) and data goes to TX ( pin 1) by powering 12v to arduino beside usb Vin pin will have somthing around 11.8v

That is not a schematic…
Will await one.

i have changed the above circuit :
instead of using a power supply ( it is in top left ) i used Vin and gnd of arduino .

black : -
RED : +
green : data changed to pin 1
my circuit is :

tell me if more clarification is needed .

by the way i'm using this in mega2560 but there not problem (uno did it too without any problem untill this uploading issue to board ).

The top picture is the preferred method for motors longer term.

The bottom pic is one I would only use for a very very short period with very small motors.

Also try keep the power jack on the boards below 12 volts ( around7 - 10 volts ) as it means the regulator has less work to do and will prolong its life.

Wherever possible always use a seperate power supply for any project with just a common ground back to the Arduinos.

My preference is for MOSFET control of motors below 24 volts and relays in some form for anything greater than 24 volts.

@Ballscrewbob you'r right .i took those motors for their feedback capability ( dynamixels can show load voltage temperature position etc ... ) .

it seems that i lost my uno and it gonna be a big problem for me :|

i've still no idea why this is happening to me .

i'm going to check ISP or Boot loader parts and their functionality to check if they are working right ... i checked arduino official site guideline too ...

if anybody have any idea that why this is happening pls let me know .... thanks.

I was going to suggest a loopback test but am unsure if that applies to clones.