Hi I have been having strange problems with using Arduino's with Windows 10 (along with many others, I think)
The problem has involved the IDE switching COM ports for different Arduinos and sometimes working, sometimes not. Today, after reinstalling it all again I decided to carefully check with just one Arduino and using the same USB lead.
I loaded the 'sweep' program sketch - which was one I was having trouble with - everything appeared to load OK (using COM 5) but nothing ran, the servo did not move.
Then I loaded the blink program - same COM port, same Arduino, same USB cable. That loaded OK and the Arduino began to blink as it should.
Then I loaded the sweep program again - nothing.
Now, I moved the same Arduino, USB lead and servo to my Windows 7 laptop.
Loaded the sweep program (using COM 5) and it worked immediately.
Loaded blink and that worked OK.
Loaded sweep and that worked again OK.
And before anyone says - I have run the Arduino IDE as Windows 7 on my Windows 10 computer but it still does not work.
Also the problem is not current drawn by the sweep program as I have the same results using battery power or USB power.
Also I have been using the verbose output when compiling and it says that everything is OK.
So my conclusion is that the Arduino IDE is not operating correctly with Windows 10. Or maybe it is the type of motherboard used with W10 computers?
Hope the next update of Arduino IDE will fix this somehow, Alan
Sorry - should have said that I am using Arduino UNO and IDE 1.8.5