pin 5 random flash

hi guys, new here... i was hoping someone could help me understand why when i try use several outputs simultaneously on my uno it does funny things on pin 5..... eg: if i configure pins 2,3,4,5,6,7,8,9 as digital outputs and then try to make them light up in array the output on pin 5 is not stable (high and low on what seems to be its own frequency) if i change the code to output on 5 only, but leave everything else plugged in on the board the problem persists, then if i disconnect everything and only connect 1 led direct to pin 5 and ground it works fine.

im very very new tp arduino, pg1 kind of stuff

any help would be appreciated

What do you have connected to pins 2 through 9?

Post your sketch. Please use
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags.

im just tarting out so iv been doing some examples as per (http://tinyurl.com/dkpxbn)

got eight led's connected to ground (each with a 1k resistor) then to pins 2,3,4,5,6,7,8,9

code runs the leds in different sequences, but led4 (pin 5, messes around) in not sure if it has something to do with my version of the uno (led to believe its the newest version)

My guess is that you have a loose or defective wire. Try different wires for the pin 5 LED.

Please copy and paste the actual code you are using. Inside code tags.

Thanks for the advice, I tried all kinds of things to get it right, its def not the wiring, I eventually gave up and tried some other projects. I'll post the code when I get home tonight. I found that even if I made a simple code to make pin 5 output high on its own (with all other circuitry still connected) the problem persisted, but if I simply disconnected all other circuitry and just left the led and resistor connected to pin five it worked fine..... Strange problem.... When its happening it looks like pin 5 is running its awn blink code in the backround