Can this damage my led?

Hi,

I have a simple setup of 2 IR leds like this:
They're both LD271, so 1.3V forward voltage and 130mA forward current. The last led's - goes to one of my digital ports so I can control it (using IRremote.) And the resistor is a 33ohm one, according to my calculations the minimum is 22, but 33 is the smallest I have.
So now I'm worried that maybe one of the leds might get damaged, because it's linked directly to the 5 volts. Is this true?

Note: I'm very new to Arduino and electrionics. I can do the programming, though the wiring is still very alien to me.

130 forward current.

130 what?

AWOL:
130 what?

130mA, I'll edit the main post too. The calculator I used wants it in mA, so I didn't think to add it here.

So now are you buffering this?

AWOL:
So now are you buffering this?

I'm pretty new to Arduino and electrics and don't really know what you mean. Though I'm going to say no.
I described my exact setup in the first post, there's nothing I left out to make the description shorter. So, 5v -> +first led -> -first led to +second -> -second to 33ohm 5V resistor -> Digital3

It isn't your LED you should be worrying about damaging.
An Arduino pin can source or sink an absolute maximum of 40mA.

AWOL:
It isn't your LED you should be worrying about damaging.
An Arduino pin can source or sink an absolute maximum of 40mA.

So this could be damaging my Arduino? :o
According to the calculation it's draining 130 mA, how much does the Arduino give (when using the 5V)? And how could I fix so it doesn't kill my Arduino?

Thanks!

Edit: Perhaps I should specify. Not sure it has anything to do with it, but I'm using an Arduino Uno.

how much does the Arduino give

See reply #5

AWOL:

how much does the Arduino give

See reply #5

Ok :stuck_out_tongue: So basecly no I'm not damaging my leds, nor my Arduino. Though since my setup wants 130mA it's getting less than a third of what it wants.
Reply #5 did suggest there was something else I was damaging. What is it? Or did I read that wrong?

Also, could you help optimize my setup? What should I add so the leds get what they want (without damaging anything) and their range is as long as possible? Or is there a better place to ask this?

Thanks a lot for the help already!

Ignoring for the moment that you shouldn't be "pulling" 130mA from the Arduino...

So now I'm worried that maybe one of the leds might get damaged, because it's linked directly to the 5 volts. Is this true?

That's no problem! In a series circuit, the voltage gets divided among the components (and the same current flows through all of them). If your calculations are correct and the LED is operating narmally, the LED will have 1.3V across it. If you measure the voltage across the LED with a multimeter, you should get 1.3V. That's the only voltage the LED "sees"... It doesn't "know anything" about 5V.

If you measure the voltage on the other side of the LED referenced to ground, you should measure 3.7V. But again, the LED doesn't "know" anything about 5V or 3.7V... It just has 1.3V across it.

:smiley: Here's another of my bad analogies - It's like you are standing on a ladder... You don't really care about how high you are above sea level, you only care about how high the ladder is.

Ok So basecly no I'm not damaging my leds, nor my Arduino.

Yes, you are potentially damaging your Arduino!

With 1.3V across each LED, that leaves 2.4V across the 33 Ohm resistor = 73mA out of the Arduino and through all 3 series components.

DVDdoug:

Ok So basecly no I'm not damaging my leds, nor my Arduino.

Yes, you are potentially damaging your Arduino!

With 1.3V across each LED, that leaves 2.4V across the 33 Ohm resistor = 73mA out of the Arduino and through all 3 series components.

So the Arduino DOES put out more than 40mA? (AWOL made me think otherwise :P)
So there's 2.4V going back into the Arduino through the digital port? And this is too much? How much can it handle?
And the led actually wants 130mA, so it's getting too little?

The_Oddler:
So the Arduino DOES put out more than 40mA? (AWOL made me think otherwise :P)

It will put out more than 40 mA. But you SHOULDN'T do it. The longer you keep that LED lit, the more damage you are doing to the Arduino pin. Eventually, that pin WILL stop working or even the whole Arduino. It could last for an hour or a few days.

What you should be doing:

Arduino LED Transistor Ckt.jpg

40ma is the most you can draw for a short period.

eg, take a car rev counter, the car can reach high.. but what happens if you don't reduce? bang... same for a transistor, it can and will, but it would be like sticking the car in 1 gear and wondering why the engine blows when you put your foot down

codlink:
It will put out more than 40 mA. But you SHOULDN'T do it. The longer you keep that LED lit, the more damage you are doing to the Arduino pin. Eventually, that pin WILL stop working or even the whole Arduino. It could last for an hour or a few days.

What you should be doing:
--image--

Thanks, this helps a lot.
I now know what a transistor is (just read some more about it.) Though I'm still a little fuzzy on the exact values needed (or how I could calculate them.) Could you help with that too a little?

Thanks a lot! And to everyone here, really, thanks! I'm learning a lot here :smiley:

Edit: Also, the pin I'm damaging is my digital pin, not the 5v one. Right?

Yes the digital pin.

Step 1. The easiest way to do it is look at the datasheet of the transistor you have, find out what the transistor is.

Step 2. Find the collector, base, emitter pins, careful which way round the transistor is (Generally, Base is middle)
Step 3. place a wire from arduino digital pin 2 to the breadboard, connect a 1k-10k resistor, then in series through that resistor and into the base pin.
Step 4 & 5, depending on if it's an NPN or PNP, you have to take different steps, refer to Step 1. then get back to us.

cjdelphi:
Yes the digital pin.

Step 1. The easiest way to do it is look at the datasheet of the transistor you have, find out what the transistor is.

Step 2. Find the collector, base, emitter pins, careful which way round the transistor is (Generally, Base is middle)
Step 3. place a wire from arduino digital pin 2 to the breadboard, connect a 1k-10k resistor, then in series through that resistor and into the base pin.
Step 4 & 5, depending on if it's an NPN or PNP, you have to take different steps, refer to Step 1. then get back to us.

Thank a lot for this. Though I currently don't have any transistors. I'm going to the store in a minute, so what kind should I get? (I'm not sure what they'll have, but generally they have quite a lot.)

get one of each or a couple cheapest one will handle 200-300ma npn is more useful in my opinion. but get both and play... npn/pnp

2n2222
2n3904
BCxxx

Should be the common ones. Pretty sure someone else will list some others.

The_Oddler:

AWOL:

how much does the Arduino give

See reply #5

Ok :stuck_out_tongue: So basecly no I'm not damaging my leds, nor my Arduino. Though since my setup wants 130mA it's getting less than a third of what it wants.

No, 40mA is the point where Atmel says damage will start happening but the chip has no built-in limiting.

It will give you 130mA ... right up until the pin burns out.