Just says Uploading...no errors

This is my first time using Arduino. I have a Windows 7 OS, and I just downloaded Arduino today. My sketch verifies and compiles without errors. I've picked the right board (Arduino/Genuine UNO), and I've picked the only com port available. I'm not getting any errors, but it just says uploading for hours.

I've tried restarting everything, computer, unplugging the USB, etc. It still just says Uploading. It also says this in the:

Sketch uses 3,304 bytes (10%) of program storage space. Maximum is 32,256 bytes.
Global variables use 41 bytes (2%) of dynamic memory, leaving 2,007 bytes for local variables. Maximum is 2,048 bytes.

But that doesn't look like an error to me.

Thoughts?

Try doing File > Preferences > Verbose output during > Upload(check). This won't solve the problem but should give you more information on what is happening.

Thanks @pert. That did tell me something...access denied on my port. Not sure why, though.

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

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

Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: ser_open(): can't open device "\.\COM3": Access is denied.

Which version of the Arduino IDE are you using?

1.6.8

I think it's this problem: Arduino 1.6.8 constantly polling serial, resetting Arduino board, Access Denied - Installation & Troubleshooting - Arduino Forum. This is a known issue with 1.6.8 and the developers are working on a fix. If you want to help out with development you can test the fix, the downloads are at Rework serial ports handling by facchinm · Pull Request #4792 · arduino/Arduino · GitHub and please post your results. Since this issue is isolated to Arduino IDE 1.6.8 you should also be able to fix the problem by using 1.6.7 or previous versions. Let me know how it goes. Per

I tried the new build but no luck. So I uninstalled and tried to install 1.6.7, but it didn't install correctly. 1.6.6 did, so I'm using that.

How long does it take to upload, though? I'm not getting errors, but it's been like 10 minutes.

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

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

Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 115200

Code:

/* Creation Crate Mood Lamp
This lamp smoothly cycles through a colour spectrum.
It only turns on when its surroundings are dark.
Colour equations (we’ll be using these later):
Red = sin(x)
Green = sin(x + PI/3)
Blue = sin(x + 2PI/3)
These equations are how the program will calculate the brightness of
the LEDs.

Step 1: Input User Defined Variables
Think of variables like containers - they’re used to store information. */

int pulseSpeed = 5;
// This value controls how fast the mood lamp runs. You can replace this with any whole number.
int ldrPin = 0; // LDR in Analog Input 0 to read the surrounding light.
int redLed = 11; // red LED in Digital Pin 11.
int greenLed = 10; // green LED in Digital Pin 10.
int blueLed = 9; // blue LED in DIgital Pin 9.
// These are the pins we are using with the UNO R3 (Arduino-compatible). You can see the numbers on the board itself.
int ambientLight;
// This variable stores the value of the light in the room.
int power = 150;
// This variable controls the brightness of the lamp (2-255).
float RGB[3];
// This is an ‘array’. It can hold 3 values: RGB[0], RGB[1], and RGB[2].We’ll use this to store the values of the Red, Blue, and Green LEDs.
float CommonMathVariable = 180/PI;
/* We will be using the value of 180/PI a lot in the main loop, so to
save time, we will calculate it once here in the setup and store it
in CommonMathVariable. Note: it is PI, not P1 */

/* Step 2: Create Setup Loop
This ‘loop’ is not really a loop. It runs once in the beginning to create
the default values for our LEDs. */

void setup () {

pinMode (redLed,OUTPUT);
pinMode (greenLed,OUTPUT);
pinMode (blueLed,OUTPUT);
// This tells the UNO R3 to send data out to the LEDs.

digitalWrite (redLed,LOW);
digitalWrite (greenLed,LOW);
digitalWrite (blueLed,LOW);
// This sets all the outputs (LEDs) to low (as in off), so that they do not turn on during startup.

} // Opening brackets must be accompanied by closing brackets.

/* Step 3: Create Main Loop
The previous sections are where we set up the variables. This section is
where we put them to work! This part of the program is a ‘loop’. It
repeats itself over and over again, making a small change in the
brightness of the LEDs each time - this creates a smooth transition in
colour. */

void loop () {

for (float x = 0; x < PI; x = x + 0.00001) {
RGB[0] = power * abs(sin(x * (CommonMathVariable))); // Red LED.
RGB[1] = power * abs(sin((x + PI/3) * (CommonMathVariable))); // Green LED.
RGB[2] = power * abs(sin((x + (2 * PI) / 3) * (CommonMathVariable))); // Blue LED.
ambientLight = analogRead(ldrPin);
// This reads the light in the room and stores it as a number.

if (ambientLight > 600) {
// This ‘if statement’ will make the lamp turn on only if it is dark. The darker it is, the higher the number.
analogWrite (redLed,RGB[0]);
analogWrite (greenLed,RGB[1]);
analogWrite (blueLed,RGB[2]);
// These ‘analogWrite’ statements will send the values calculated above to the LEDs.
} // Don’t forget to close this ‘if statement’ with a bracket!

else {
digitalWrite (redLed,LOW);
digitalWrite (greenLed,LOW);
digitalWrite (blueLed,LOW);
}
// This ‘else statement’ will only activate if the ‘if statement’ above does not (ie. If it is too bright in the room). The LEDs will turn off.

for (int i = 0; i < 3; i++) {
// This loop calculates the delay for each colour depending on its current brightness. Brighter LEDs will change colour slower and vice versa.

if (RGB < 1) {
delay (20 * pulseSpeed);
}

else if (RGB < 5) {
delay (10 * pulseSpeed);
}
else if (RGB < 10) {
delay (2 * pulseSpeed);
}
else if (RGB < 100) {
delay (1 * pulseSpeed);
}
*// ’else if’ means only one of these conditions can activate at a time. *
else {}
// This blank ‘else statement’ is a fail-safe mechanism. It instructs the program to do nothing if the conditions above do not activate. This prevents the program from generating errors when calculating delays.
}
delay(1);
// This delay gives the light dependent resistor time to settle and give accurate readings.
}
} // Don’t forget to close with these brackets!

Sorry to hear that didn't help your problem. Upload time depends on the size of the program. For an Uno I would say 1.5 minutes at the very most including compile time. If you unplug your Uno and then check Tools > Port does COM3 disappear(or is the Port option grayed out)?

No, it doesn't disappear or gray out. It's still there and checked.

Also, I was able to upgrade to 1.6.7 successfully, but now I'm getting that same error. Com3 access denied.

That makes me think that the Uno isn't on COM3. That may be another device on your computer. So it's possible that the Uno hasn't installed for some reason, maybe drivers. Have a look through Please check the troubleshooting guide before posting here. - Installation & Troubleshooting - Arduino Forum and see if that will help you out.