Arduino pin high only 2,68v ???

Hi there i have led connected to pin 11 i tested this small blink example :

void setup() {

pinMode(11, OUTPUT);
}

void loop() {
digitalWrite(11, HIGH); // set the LED on
delay(10000); // wait for a second
digitalWrite(11, LOW); // set the LED off
delay(1000); // wait for a second
}

when the pin is high i only get 2,68v measured with multimeter ...
Is this normal ? should be 5v ? right ??

my arduino is connected to 12v power supply (no usb)...

What value resistor are you using with the LED?

no resistor
led+ direct to pin11 ground direct to ground..

no resistor
led+ direct to pin11 ground direct to ground..

That is your problem. There must be a current limiting resistor wired in series with the LED, 1k ohm will work or calculate the needed resistance to run the led at it's recommend current level.

The way you are doing it will or has damaged the output pin and shorten the life of the led.

maybe you are right and the pin 11 is damaged :cry: i tested with pin5 and it gives 4.94v when high...
Why would the led direct to pin be a problem ? (dummy question)

i have here som 390k resistor is this enough ?

thanks

LEDs (diodes) are nearly short-circuits when enough voltage is dropped across them. A current limiting resistor sets that voltage and limits the amount of current that runs through them.

http://www.cmiyc.com/blog/2010/09/19/led-basics/

Keep using LEDs without limiting resistors and you'll keep blowing I/O pins.

i have here som 390k resistor is this enough ?

Much too high a value, it would only allow like 10 microamps to flow, not enough to cause the led to light. You must master ohm's law calculations or use a automated program to calculate it for you. You must know what current the LED is rated for continous operation, most want around 10-20ma of current flow.

By the way you can buy replacement processor chips for around $6 as if you continue to burn out output pins it will become faily useless.

LED resistor calculator:

Lefty

thanks, so far only one pin seems broken 11, where i have led connected for some time now... so this board will be like this ..
In this one no need for resistor any more will stay like it is..

Question: Does this affect the behaviour of the processor, or this is isolate fault of the pin will only affect this pin voltage ?

thanks

Does this affect the behaviour of the processor, or this is isolate fault of the pin will only affect this pin voltage ?

There is no way to tell. Most likely only that pin will be affected. Take retrofly's suggestion and buy a new ATmega328 chip. Use this one until your new one arrives.

(I also suggest ordering more than one, because you never know...)