Upload error message on Blink

Hi - Hoping someone can help me past this initial issue. Thinking it might be a driver issue, I have checked the control panel on Windows 10 and navigated to the COM drivers. After right clicking to look for drivers, the message said I had the most current driver. Thanks for any assistance. Below is the "Blink" code I'm running and near the bottom is the error message.- Ed

Code

/*

Example sketch 01

BLINKING A LED

Turn an LED on for one second, off for one second, and repeat forever.

Hardware connections:

Most Arduinos already have an LED and resistor connected to pin 13, so you may not need any additional circuitry.

But if you'd like to connect a second LED to pin 13, or use a different pin, follow these steps:

Connect the positive side of your LED (longer leg) to Arduino digital pin 13 (or another digital pin, don't forget to change the code to match).

Connect the negative side of your LED (shorter leg) to a 330 Ohm resistor (orange-orange-brown). Connect the other side of the resistor to ground.

pin 13 _____ + LED - _____ 330 Ohm _____ GND

(We always use resistors between the Arduino and and LEDs to keep the LEDs from burning out due to too much current.)

This sketch was written by SparkFun Electronics, with lots of help from the Arduino community. This code is completely free for any use. Visit http://www.arduino.cc to learn about the Arduino.

Version 2.0 6/2012 MDG */

// Welcome to Arduino!

// If you're brand-new to this, there will be some new things to // learn, but we'll jump right in and explain things as we go.

// The Arduino is a tiny computer that runs programs called // "sketches". These are text files written using instructions // the computer understances. You're reading a sketch right now.

// Sketches have computer code in them, but also (hopefully) // "comments" that explain what the code does. Comments and code // will have different colors in the editor so you can tell them // apart.

// This is a comment - anything on a line after "//" is ignored // by the computer.

/* This is also a comment - this one can be multi-line, but it must start and end with these characters */

// A "function" is a named block of code, that performs a specific, // well, function. Many useful functions are already built-in to // the Arduino; others you'll name and write yourself for your // own purposes.

// All Arduino sketches MUST have two specific functions, named // "setup()" and "loop()". The Arduino runs these functions // automatically when it starts up or if you press the reset // button. You'll typically fill these function "shells" with your // own code. Let's get started!

// The setup() function runs once when the sketch starts. // You'll use it for things you need to do first, or only once:

void setup() { // The Arduino has 13 digital input/output pins. These pins // can be configured as either inputs or outputs. We set this // up with a built-in function called pinMode().

// The pinMode() function takes two values, which you type in // the parenthesis after the function name. The first value is // a pin number, the second value is the word INPUT or OUTPUT.

// Here we'll set up pin 13 (the one connected to a LED) to be // an output. We're doing this because we need to send voltage // "out" of the Arduino to the LED.

pinMode(13, OUTPUT);

// By the way, the Arduino offers many useful built-in functions // like this one. You can find information on all of them at the // Arduino website: http://arduino.cc/en/Reference }

// After setup() finishes, the loop() function runs over and over // again, forever (or until you turn off or reset the Arduino). // This is usually where the bulk of your program lives:

void loop() { // The 13 digital pins on your Arduino are great at inputting // and outputting on/off, or "digital" signals. These signals // will always be either 5 Volts (which we call "HIGH"), or // 0 Volts (which we call "LOW").

// Because we have an LED connected to pin 13, if we make that // output HIGH, the LED will get voltage and light up. If we make // that output LOW, the LED will have no voltage and turn off.

// digitalWrite() is the built-in function we use to make an // output pin HIGH or LOW. It takes two values; a pin number, // followed by the word HIGH or LOW:

digitalWrite(13, HIGH); // Turn on the LED

// delay() is a function that pauses for a given amount of time. // It takes one value, the amount of time to wait, measured in // milliseconds. There are 1000 milliseconds in a second, so if // you delay(1000), it will pause for exactly one second:

delay(1000); // Wait for one second

digitalWrite(13, LOW); // Turn off the LED

delay(1000); // Wait for one second

// All together, the above code turns the LED on, waits one // second, turns it off, and waits another second.

// When the computer gets to the end of the loop() function, // it starts loop() over again. So this program will continue // blinking the LED on and off!

// Try changing the 1000 in the above delay() functions to // different numbers and see how it affects the timing. Smaller // values will make the loop run faster. (Why?) }

====================================================

Error message...

Arduino: 1.6.9 (Windows 10), Board: "Arduino/Genuino Uno"

Sketch uses 1,066 bytes (3%) of program storage space. Maximum is 32,256 bytes. Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes. avrdude: ser_open(): can't open device "\.\COM1": The system cannot find the file specified.

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.

What is the error? Does it say not in sync?

Ednewbie: avrdude: ser_open(): can't open device "\.\COM1": The system cannot find the file specified.

You need to select the COM port of your Arduino from the Tools > Port menu in the Arduino IDE. You can find it by:

  • With the Arduino board unplugged from the USB open Tools > Port and note the listed ports.
  • Close the Tools > Port menu.
  • Plug in the USB cable on the Arduino board
  • Wait a bit for the Arduino board to connect
  • Open Tools > Port, the new port on the list is your Arduino board. In some cases it will have the name of the board next to the port name but this doesn't happen with all boards.

Also, please use code tags(</> button on the toolbar) whenever you post code or error/warning output.

Hi Pert - Thank you. I thought I had initialized the com port to COM3 which is the port used by the Arduino board... but maybe it hadn't taken. Anyway, I reinitialized it and that solved the issue. Thank you very much. - Ed