Author Topic: Questions about infrared LEDs for remotes  (Read 4039 times)

0 Members and 1 Guest are viewing this topic.

Offline PeabodyTopic starter

  • Super Contributor
  • ***
  • Posts: 2245
  • Country: us
Questions about infrared LEDs for remotes
« on: September 16, 2019, 03:04:14 am »
I've built my own Android version of the IR remote for Roku devices, but with a bit different functionality.  It's working, but the IR seems a bit more flaky than a real Roku remote, and the Roku remote is brighter on my phone's camera.

I borrowed the LED from an old universal remote, so I want to assume it's 940nM but don't know for sure.  My Arduino is currently powered  by a regulated 3.3V,  A GPIO pin drives an NPN transistor, which in turn provides collector current from the 3.3V supply through a 33R resistor to the LED, with the emitter at ground.  The base resistor is 2.2K.  The voltage drop of the LED is 1.2V, and it's kinda blue.  The Roku remote is powered by two AAAs.

So I'm getting more than 60ma through my remote's LED, which if the relative brightness thing is meaningful, makes me wonder how much more current the Roku remote LED could be getting.  But specifically I have these questions:

1.  Is there any reason to believe that the Roku IR system uses anything other than 940nM or anything other than 38K?  Rokus seem to work fine with universal learning remotes, which I would think all use 940nM LEDs.

2.  Is there any reasonable way to determine whether an LED is 940nM or 850nM?

3.  Do IR LEDs come in high-efficiency super-bright versions like red LEDs do?  What spec would tell you that an IR LED is one of those?  Does anybody have a favorite that's very "bright" on very few milliamps?

In case it matters, and it might, the Arduino is 3.3V, 8MHz, and the IRremote library is driving the LED,  I think this library was originally written for 16MHz, and I'm not completely sure the shift to 8MHz, which it appears to do ok, is actually being done correctly.  When the battery holder for it arrives, I plan to run this on a single 18650 with no regulator.

Thanks for any words of wisdom.
 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1472
  • Country: us
  • Very dangerous - may attack at any time
Re: Questions about infrared LEDs for remotes
« Reply #1 on: September 16, 2019, 03:44:48 am »
Roku is 38 kHz. Your LED current is lower than what is usually used in remotes. Use the unregulated supply and current of 500 mA to 1A. A darlington config will be required. IR LEDs do vary in efficiency and also beam width. Vishay makes some excellent IR LEDs in the TSAL6000 and TSAL7000 series. 940/950 nm is the right wavelength for consumer IR.
 

Offline PeabodyTopic starter

  • Super Contributor
  • ***
  • Posts: 2245
  • Country: us
Re: Questions about infrared LEDs for remotes
« Reply #2 on: September 16, 2019, 02:31:20 pm »
Roku is 38 kHz. Your LED current is lower than what is usually used in remotes. Use the unregulated supply and current of 500 mA to 1A. A darlington config will be required. IR LEDs do vary in efficiency and also beam width. Vishay makes some excellent IR LEDs in the TSAL6000 and TSAL7000 series. 940/950 nm is the right wavelength for consumer IR.

Thanks very much for the information.  But I'm confused about the current needed.  The Roku remote and all the others I've seen are powered by two alkaline cells, so, essentially 3V.  To get 1A of current through an LED with a voltage drop of 1.2V, the resistor would be 1.8R.  Or even at 500mA, it would be 3.6R.  Is that right?  Or do the designers rely on internal battery resistance and not even bother to use a resistor for the LED?

Anyway, I will look at the Vishay LEDs. Thanks very much for that lead.

 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1472
  • Country: us
  • Very dangerous - may attack at any time
Re: Questions about infrared LEDs for remotes
« Reply #3 on: September 16, 2019, 05:19:35 pm »
A typical remote will have a resistor of a few ohms. Sometimes less than an ohm. I usually just rely on the internal resistance of AA batteries and the PN2222A to limit current to about 1A.

 

Offline PeabodyTopic starter

  • Super Contributor
  • ***
  • Posts: 2245
  • Country: us
Re: Questions about infrared LEDs for remotes
« Reply #4 on: September 16, 2019, 05:32:10 pm »
Ok, this makes sense now.

I looked at the Vishay LEDs, and the intensity rating for the TSAL6100 is twice that of the 6200, which in turn is twice that of the 6400, all at 100mA, and all at the same price.  Is there a reason why I wouldn't pick the 6100?  It seems you simply get more IR output per mA, and it's hard to see how that could be bad.  Is there a tradeoff I'm missing here?

I'll be using an 18650 to power this.  So I think I will include a resistor.  Also because these TSALs are rated at 100mA, 200ma peak.

I found an old MPSA13 Darlington in the junque box.  Rated at 500mA, wich would work with the Vishay LEDs, but not if I really need 1A.

A question about your circuit.  If you put the LED in the path from Vcc to both PN2222s, instead of in the path to only the second one. would that also work, and eliminate the need for the 47R resistor.  If I use the MPSA13, it would have to be done that way.

« Last Edit: September 16, 2019, 05:36:29 pm by Peabody »
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: Questions about infrared LEDs for remotes
« Reply #5 on: September 16, 2019, 05:35:11 pm »
I haven't looked at the datasheets but check the beam angle. Often really high intensity LEDs have a very narrow beam.
 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1472
  • Country: us
  • Very dangerous - may attack at any time
Re: Questions about infrared LEDs for remotes
« Reply #6 on: September 16, 2019, 05:50:02 pm »
A proper darlington configuration will have higher Vce than the circuit I posted. Not a problem when using a 18650 that will provide a solid 3 volts or more. You will need a current limiting resistor because an 18650 has very low internal resistance. Figure 3 in the TSAL datasheet shows max current you can use for pulsed applications like remote control. James is correct about the beam angle.
 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1472
  • Country: us
  • Very dangerous - may attack at any time
Re: Questions about infrared LEDs for remotes
« Reply #7 on: September 16, 2019, 05:51:28 pm »
Pulled apart a random remote and found a 1 ohm resistor. Was surprised to see the high current switching transistor integrated in to the chip.
 

Offline PeabodyTopic starter

  • Super Contributor
  • ***
  • Posts: 2245
  • Country: us
Re: Questions about infrared LEDs for remotes
« Reply #8 on: September 16, 2019, 06:02:37 pm »
A proper darlington configuration will have higher Vce than the circuit I posted. Not a problem when using a 18650 that will provide a solid 3 volts or more. You will need a current limiting resistor because an 18650 has very low internal resistance. Figure 3 in the TSAL datasheet shows max current you can use for pulsed applications like remote control. James is correct about the beam angle.

Yes, the 6100 beam angle is 20 degrees, whereas the 6200 is 34 degrees.  So both produce the same output, but one is more spread out than the other.  But the question is what beam angle do I need?  Is 20 degrees enough?  Seems like it would be.  What's normally used in remotes?

I see that your circuit would continue to work even as two alkalines get very low.  On the other hand, any current flowing through that 47R resistor is "wasted" in that it doesn't flow through the LED.  I'm not sure which effect wins in terms of battery life.
 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1472
  • Country: us
  • Very dangerous - may attack at any time
Re: Questions about infrared LEDs for remotes
« Reply #9 on: September 18, 2019, 03:36:06 am »
Remotes typically have a narrow beam. Probably 20 to 30 degrees.

Without the 47 ohm resistor all of the voltage drop would be Vce of the first transistor. The resistor was placed there rather then in the base circuit to allow for more LEDs to be driven by more PN2222A.
 

Offline PeabodyTopic starter

  • Super Contributor
  • ***
  • Posts: 2245
  • Country: us
Re: Questions about infrared LEDs for remotes
« Reply #10 on: September 22, 2019, 07:22:25 pm »
My completed remote works, kinda, but the IR isn't getting through as well as it should, and some commands are missed at the receiver.  And when I look at the transmitting remote in my camera's live view, I barely see anything, whereas the original Roku remote LED is plainly visible.  So I'm not putting out enough IR.  Attached is the circuit I'm using, which includes a Darlington.  The LED itself is a mystery because I took it from an old remote, which worked fine in its day.

The 22Ω resistor may still be way too high, but I have a question about the use of a Darlington here.  It seems to me that while current needed from the I/O port to drive the LED is smaller with a Darlington than with a regular NPN, the total current actually flowing through the LED is less with the Darlingto than with the NPN, provided the NPN's gain is enough to fully saturate it from base current provided by the port.  The reason is that the Darlington has a saturation voltage of one junction drop - call it 0.6V, and the NPN is close to zero volts.

If the power supply is 4.2V, and the LED voltage drop is 1.2V, then I should get 109mA through the LED with the Darlington, but 136 mA with the NPN - something like a 2N2222A. with good gain.  I have more base current than with the Darlington, but still well within the output of the port pin, and I don't dissipate power in the Darlington.

So in cases where the I/O current is sufficient to drive an NPN, wouldn't the NPN be the better choice?  If I/O current isn't enough, maybe something like oPossum's Darlington-like configuration of two NPNs would still be better than a Darlington.  I don't know.  Maybe if you reduce the value of the resistor to get the same current, you've just moved some resistance from the resistor into the Darlingon's effective resistance, and you're no worse off other than some of the heat is generated in the Darlington instead of in the resistor.

oPossum's circuit:

https://www.eevblog.com/forum/projects/questions-about-infrared-leds-for-remotes/?action=dlattach;attach=836991;image
 
« Last Edit: September 22, 2019, 07:24:51 pm by Peabody »
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 6420
  • Country: de
Re: Questions about infrared LEDs for remotes
« Reply #11 on: September 22, 2019, 07:59:45 pm »
Do it like this. Simple and reliable and with constant current drive for the IR LED. Use two standard small-signal diodes like 1N4148. It even works with different supply voltages or varying battery voltage.

« Last Edit: September 22, 2019, 08:03:24 pm by Benta »
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 15152
  • Country: de
Re: Questions about infrared LEDs for remotes
« Reply #12 on: September 22, 2019, 08:23:03 pm »
It is not the very best way to set the current via the base current, but this is still better than a small series resistor at the collector side with a varying supply. For up to 500 mA-1 A one can get away with a normal transistor (e.g. BC635, BD139 or similar) and set the base current accordingly. So the base resistor may have to go down to some 330 Ohms or the like. The right values depends on the transistor gain and can vary a little.

The way with the resistor at the emitter is a valid option, but it looses extra voltage and the supply might be tight:
some 1.5 V for the LED (at 1 A), 1-1.5 V from at a Darlington and only some 3.2 V for an rather empty cell. With weak batteries or thin cables the buffer cap should be reasonably low ESR. IT may take way more then 220 µF.

For good efficiency the PWM ratio in the 38 kHz modulation should be less than 50%, more like 20-35%. The last bit around 50% has near zero efficiency. If nothing else help, one can consider 2 IR LEDs.

Some remotes have quite small opening angles and one may have to really point well to the sensor. With large TVs this means knowing where the sensor actually is.
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 6420
  • Country: de
Re: Questions about infrared LEDs for remotes
« Reply #13 on: September 22, 2019, 08:46:12 pm »
Kleinstein, it's unclear to me what you are replying to. If it's this:

"Do it like this. Simple and reliable and with constant current drive for the IR LED. Use two standard small-signal diodes like 1N4148. It even works with different supply voltages or varying battery voltage."

Then I have the following comments:
1: the BC327-40 is NOT a darlington and has a minimum current gain of 250.
2: it can handle up to 800 mA.
3: the VCE is negligible, being less than the variation in IRLED forward voltage.
4: the emitter resistor drops 0.65...0.7 V, leaving around 2.5 V for the IRLED: plenty.
5: PWM is completely irrelevant, the 38 kHz modulation pattern is the defining factor.
6: 1 A is completely over the top for IRLED current, which is why I suggest around 100 mA. It can be altered easily by changing the emitter resistor (and, if necessary, the base resistor as well). Less current might work just as well, a practical experiment is necessary.

 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1472
  • Country: us
  • Very dangerous - may attack at any time
Re: Questions about infrared LEDs for remotes
« Reply #14 on: September 22, 2019, 09:16:30 pm »
The 22Ω resistor may still be way too high, but I have a question about the use of a Darlington here.  It seems to me that while current needed from the I/O port to drive the LED is smaller with a Darlington than with a regular NPN, the total current actually flowing through the LED is less with the Darlingto than with the NPN, provided the NPN's gain is enough to fully saturate it from base current provided by the port.  The reason is that the Darlington has a saturation voltage of one junction drop - call it 0.6V, and the NPN is close to zero volts.

You can go lower on the 22 ohm, much lower. You are correct about the vce losses with a darlington. That is why I  connect the collector of the first transistor to the supply rather than the collector of the second transistor.
 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1472
  • Country: us
  • Very dangerous - may attack at any time
Re: Questions about infrared LEDs for remotes
« Reply #15 on: September 22, 2019, 09:18:04 pm »
6: 1 A is completely over the top for IRLED current, which is why I suggest around 100 mA. It can be altered easily by changing the emitter resistor (and, if necessary, the base resistor as well). Less current might work just as well, a practical experiment is necessary.

It isn't for a pulsed application like this.
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 6420
  • Country: de
Re: Questions about infrared LEDs for remotes
« Reply #16 on: September 22, 2019, 09:31:41 pm »
I usually just rely on the internal resistance of AA batteries and the PN2222A to limit current to about 1A.

After this example of brilliance, nothing more needs to be said...

 

Offline PeabodyTopic starter

  • Super Contributor
  • ***
  • Posts: 2245
  • Country: us
Re: Questions about infrared LEDs for remotes
« Reply #17 on: September 23, 2019, 12:46:58 am »
Benta, I think I understand your circuit, but I'm confused by your statement that Vce is negligible.  I'm not sure how you meant that, but if the voltage at the emitter is 0.7V and the LED voltage drop is 1.2V, then the CE voltage has to be 1.4V, and the transistor is acting like a 14Ω resistor, which also makes it the hot spot in the chain.

But I understand the advantage of keeping the LED current constant as the battery voltage drops.
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 6420
  • Country: de
Re: Questions about infrared LEDs for remotes
« Reply #18 on: September 23, 2019, 03:25:24 pm »
Yes, the phrasing was perhaps a little unclear.

Your voltage calculation is quite correct. What I meant to say was, that the collector-emitter voltage automatically adjusts to the IRLED forward voltage. With a low Vce you are able to use LEDs with a higher forward voltage, or you can tolerate battery voltage drop to a higher degree. I hope this makes sense,
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 15152
  • Country: de
Re: Questions about infrared LEDs for remotes
« Reply #19 on: September 23, 2019, 04:44:19 pm »
For pulsed operation like in a remote 100 mA pulse current is not much and would result in low power, low range. So some 500 mA is well possible as it would be only with a low PWM ratio: some 30% at 38 kHz for a few ms at most followed by a little longer off. 1 A may actually be on the upper limit. The remarks on the PWM ratio are independent of the drive circuit - just a point that may be overlooked and it makes clear that it is a low PWM ratio that allows high peak current.

The BC327 is a PNP, the correct NPN brother is BC337.  At low current the gain is 250 - at high current like 500 mA it is much lower. The low VCE spec is for a rather high base current, like IC/10.  At 500 mA and with 10 mA base drive, expect some 0.3 V for VCE. At 5 mA base current it may be in the 1 V region.
This can still work with a 3.2 V supply. However the resistor to the driving side needs to be much smaller to get 10 mA of base drive. So more like 150  Ohms.
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 6420
  • Country: de
Re: Questions about infrared LEDs for remotes
« Reply #20 on: September 23, 2019, 05:05:48 pm »
Damn! Of course it's BC337-40, not BC327. My bad...

Concerning the hfe discussion: you're presuming that the transistor is working as a hard switched device. That's not the case. In my quickly sketched circuit it is operating in it's linear region, which means the high hfe is applicable. At 100 mA collector current it's 250 min.

« Last Edit: September 23, 2019, 05:07:29 pm by Benta »
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 5570
  • Country: va
Re: Questions about infrared LEDs for remotes
« Reply #21 on: September 23, 2019, 05:18:51 pm »
A sim..
« Last Edit: September 23, 2019, 05:36:07 pm by imo »
Readers discretion is advised..
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 6420
  • Country: de
Re: Questions about infrared LEDs for remotes
« Reply #22 on: September 23, 2019, 06:20:00 pm »
@imo:
Looks nice. Could you do a sim with 1.8k as base resistor, please?
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 5570
  • Country: va
Re: Questions about infrared LEDs for remotes
« Reply #23 on: September 23, 2019, 07:19:30 pm »
1k8 base resistor.
Readers discretion is advised..
 

Online Benta

  • Super Contributor
  • ***
  • Posts: 6420
  • Country: de
Re: Questions about infrared LEDs for remotes
« Reply #24 on: September 23, 2019, 08:33:51 pm »
@imo: Thank you very much, very helpful.

The second plot shows that the circuit still works perfectly, but at reduced current: ~64 mA instead of ~100 mA.

Why? The 1N4148 datasheet gives the answer: at low forward currents (<1 mA), VF is down to 0.5...0.55 V. This explains the lower collector current =IRLED current.

Solution: an even lower power diode.

The curvy collector voltage is due to the fact, that the simulation LED is not suited for high currents and the chip heats up. Substituting the correct IRLED should solve the issue.

« Last Edit: September 23, 2019, 08:36:15 pm by Benta »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf