Go Down

Topic: Can this damage my led? (Read 1 time)previous topic - next topic

The_Oddler

May 02, 2013, 10:03 pmLast Edit: May 02, 2013, 10:28 pm by The_Oddler Reason: 1
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.

AWOL

#1
May 02, 2013, 10:07 pm
Quote
130 forward current.

130 what?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

The_Oddler

#2
May 02, 2013, 10:11 pm

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.

AWOL

#3
May 02, 2013, 10:18 pm
So now are you buffering this?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

The_Oddler

#4
May 02, 2013, 10:25 pm

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

AWOL

#5
May 02, 2013, 10:30 pm
An Arduino pin can source or sink an absolute maximum of 40mA.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

The_Oddler

#6
May 02, 2013, 10:34 pmLast Edit: May 02, 2013, 10:39 pm by The_Oddler Reason: 1

An Arduino pin can source or sink an absolute maximum of 40mA.

So this could be damaging my Arduino?
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.

AWOL

#7
May 02, 2013, 10:39 pm
Quote
how much does the Arduino give

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

The_Oddler

#8
May 02, 2013, 10:49 pm

Quote
how much does the Arduino give

Ok 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!

DVDdoug

#9
May 02, 2013, 10:53 pm
Ignoring for the moment that you shouldn't be "pulling" 130mA from the Arduino...

Quote
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.

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.

DVDdoug

#10
May 02, 2013, 10:59 pm
Quote
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.

The_Oddler

#11
May 02, 2013, 11:10 pmLast Edit: May 02, 2013, 11:27 pm by The_Oddler Reason: 1

Quote
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 )
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?

#12
May 03, 2013, 01:08 amLast Edit: May 03, 2013, 01:16 am by codlink Reason: 1

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

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:

cjdelphi

#13
May 03, 2013, 01:27 am
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

The_Oddler

#14
May 03, 2013, 11:17 amLast Edit: May 03, 2013, 11:29 am by The_Oddler Reason: 1

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

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

Go Up

Please enter a valid email to subscribe