Here is what I hope to be some good information to the developers:
I recently reinstalled Windows 8.1 then upgraded to Window 10.
- When in Windows 8.1, I installed Arduino 1.6.8. It worked well with the provided Blink sketch. I also added a Serial.begin(9600); and Serial.write("HIGH\n"); instructions in the setup() and loop() sections, respectively. It all uploaded and ran and worked with the Serial monitor when opened:
/*
聽 Blink
聽 Turns on an LED on for one second, then off for one second, repeatedly.
聽 Most Arduinos have an on-board LED you can control. On the Uno and
聽 Leonardo, it is attached to digital pin 13. If you're unsure what
聽 pin the on-board LED is connected to on your Arduino model, check
聽 the documentation at http://www.arduino.cc
聽 This example code is in the public domain.
聽 modified 8 May 2014
聽 by Scott Fitzgerald
*/
// the setup function runs once when you press reset or power the board
void setup() {
聽 // initialize digital pin 13 as an output.
聽 pinMode(13, OUTPUT);
聽 Serial.begin(9600);
}
// the loop function runs over and over again forever
void loop() {
聽 digitalWrite(13, HIGH);聽 // turn the LED on (HIGH is the voltage level)
聽 Serial.write("HIGH HIGH\n");
聽 delay(1000);聽 聽 聽 聽 聽 聽 聽 // wait for a second
聽 digitalWrite(13, LOW);聽 聽 // turn the LED off by making the voltage LOW
聽 Serial.write("LOW\n");
聽 delay(1000);聽 聽 聽 聽 聽 聽 聽 // wait for a second
}
-
I can change the program and still have it upload and work.
-
I installed Arduino 1.6.8 using the Windows installer on a Dell XPS 8300, Windows 10 machine which has an Intel i7 processor. The sketches all work well when using that system. However, that is not my PC. I just tested it there.
-
I updated to Windows 10, on my PC, and installed Arduino 1.6.8 using the Windows installer.
Here is the error message, between the asterisks:
Arduino: 1.6.8 (Windows 10), Board: "Arduino/Genuino Uno"
Sketch uses 2,370 bytes (7%) of program storage space. Maximum is 32,256 bytes.
Global variables use 198 bytes (9%) of dynamic memory, leaving 1,850 bytes for local variables. Maximum is 2,048 bytes.
avrdude: ser_open(): can't open device "\.\COM3": Access is denied.
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
-
Before I reinstalled the OS and was using Windows 10, I tried installing Arduino 1.6.7 with the Windows installer. I also downloaded a couple more versions back and unzipped those and tried them. They had the same problem as Arduino 1.6.8.
-
I went back a few more versions to Arduino 1.5.8. I unzipped that and used it and it worked. To be clear, that was before the reinstall and update.
-
Recap: Reinstall and update to Windows 10, install Arduino 1.6.8 with Windows installer, and get error message above. I unzipped Arduino 1.5.8, use it with regular Blink sketch and Blink sketch where I use Serial.write() to test the serial communications with the Serial monitor. It works.
The PC I am using is an HP Pavilion 15 with an AMD A10 processor. Arduino 1.6.8 seems to work well with the Intel processor and not with the AMD processor. I also use a Linux Ubuntu machine where Arduino 1.6.8 works very well.
- I am also learning C with AVR's using Make: AVR Programming, by Elliot Williams. Using his methods, I can program the AVR's on both Linux and Windows 10, no problems.
Linux toolchain:
From CLI:
sudo apt-get install avrdude avrdude-doc binutils-avr avr-libc gcc-avr gdb-avr
So whatever specifics that gives you, I am using that. I do not pretend to know all about it.
Windows toolchain:
Install WinAVR from SourceForge.
Using either system, I can flash an ATmega168 using an Arduino Duemilanove setup as an Arduino ISP, with a 10uF capacitor between Reset and Ground on the Arduino board. I have not tried any kind of serial monitor communications yet. Both a regular "blinking" program and a POV device work with this method.
With the ArduinoISP flashing an ATmega168, the author has setup the C code with a setup that specifies a bunch of information using the Make utility and Avrdude to flash the 168. You can download the ZIP file on the project website on Github:
Hopefully, for the Arduino folks, that is good information to help resolve this problem.
** For all the others whom have suggested things, I have tried uninstalling a bunch of programs that would have used serial COM ports in Windows with no good results. Do take note that with the reinstall of Windows 8.1 and upgrade to Windows 10, none of those programs are on the system now.