element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Internet of Things
  • Technologies
  • More
Internet of Things
Forum Resistor rating for IR LED for WiFi IoT remote
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Internet of Things to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 16 replies
  • Subscribers 497 subscribers
  • Views 6817 views
  • Users 0 members are here
  • current
  • led
  • ir
  • iot
  • resistor
  • remote
Related

Resistor rating for IR LED for WiFi IoT remote

ntewinkel
ntewinkel over 3 years ago

Hello!

I was pondering this, and searching into the webs and on the lines, and then realized I have this awesome community of smart people here that probably already know the answers!

Short version:
Are 1/4 watt resistors enough to pulse an LED at 1 amp for an IR remote?
The LED is rated for 100mA continuous, 1.5 amp peak, and 1.6v forward voltage max.
I used an online calculator to figure out that with a 5v supply, a 6.8 ohm resistor will give it a 500mA current, and 3.4 ohms gives a 1amp current.

I'm not sure how to calculate the current on that LED - is it 1.6 volts x 1 amp? or 5 volts x 1 amp?

Either way though - even just the 1.6 watts is 6 times the current rating of the resistors I have. Is that ok for pulsed use for remote control like that?

Should I be using a set of parallel resistors instead (knowing I'll have to up the resistor values to compensate) ?

Project details:
My heat pump is kinda noisy, so at night we set it to "night mode" which is the quietest fan setting it has. We can't keep it at that setting because it won't heat the house well enough, so in the morning we turn the temperature up a few degrees and set the fan to "automatic".

I've been trying to automate this process, because the heat pump remote is kind of annoying in that you have to step through all 5 fan speeds to get back to Automatic.

I bought a little WiFi IR remote off Amazon a few years ago, which is ok for turning the heat up in the morning, but it only supports 3 basic fan speeds, so it doesn't properly turn the fan down at night. I recently bought another similar newer unit, hoping that after a few years my Daikin heat pump would now be fully supported, but it's still the same. Frowning2

But there's hope! I found a Github repository that actually fully supports my Daikin heat pump codes! And for my favourite IoT micro-controller even - the Wemos D1 Mini.

Using a basic IR LED I had scavenged from something in the past, I was able to get it to work, but the IR LED range was just -barely- able to reach the heat pump when aimed just right (I realize now that I was using far to big a resistor value).

So I got a few new "high power" IR LEDs (the clear QED234 ones) from element14's shop, which I hope will give me the range I need. Then I did the aforementioned calculations to find the ideal resistor values to get some good oompf out of the LED to reach further.

I was just about to start soldering things up when I realized that 1amp of current is higher than the 1/4 watt rating of the resistors I have.

I'm hoping you'll have some good advice for this software-biased hobbyist Laughing

Also - I'm guessing a resistor failure would generally not cause a short? (ie, losing a resistor is ok, I have plenty more - losing an IR LED is tougher as I only have a few!)

Thanks!
-Nico

  • Sign in to reply
  • Cancel

Top Replies

  • ntewinkel
    ntewinkel over 3 years ago +6
    Hi All, It works! It seems I was overthinking things, as usual :D I just tested a 2-LED circuit using 22 ohm resistors, which runs the LEDs at about 150mA, and it seems to be plenty to reach the…
  • wolfgangfriedrich
    wolfgangfriedrich over 3 years ago +5
    Hello Nico, some comments: 1) Remotes usually send a modulated signal (38 kHz is a very common frequency, but anything between 34 and 56 kHz could be possible). This is good for your use case, as it…
  • fmilburn
    fmilburn over 3 years ago +3
    Hi Nico, It is easiest to look at the 1A case. There will be a 1A x 3.4R = 3.4v drop across the resistor and 1.6V drop across the LED. Since power = I*I*R the resistor sees spikes of 3.4W and the LED…
  • fmilburn
    0 fmilburn over 3 years ago

    Hi Nico,

    It is easiest to look at the 1A case.  There will be a 1A x 3.4R = 3.4v drop across the resistor and 1.6V drop across the LED.  Since power = I*I*R the resistor sees spikes of 3.4W and the LED sees 1.6W.  That doesn’t sound good. Are you using a transistor to control on/off?  Have you considered a constant current source without a resistor.  I’m curious what people more knowledgeable than me think. 

    Frank

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • fmilburn
    0 fmilburn over 3 years ago in reply to fmilburn

    Here is another approach: https://forum.43oh.com/topic/10098-msp430-infrared-controlled-wearable/page/2/?tab=comments#comment-77320

    i used multiple IR LEDS with their own resistors to control current and still get lots of photons. The project involved controlling LEDs on tiaras my grand daughters were wearing so I could blink them in unison Smile

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • wolfgangfriedrich
    0 wolfgangfriedrich over 3 years ago

    Hello Nico,

    some comments:

    1) Remotes usually send a modulated signal (38 kHz is a very common frequency, but anything between 34 and 56 kHz could be possible). This is good for your use case, as it cuts the duty cycle of your LED on time basically in half already. Unfortunatelly the datasheet is missing a standard diagram that shows if 50% or 25% duty cycle is OK at 1 A. The data might be UART or with a custom protocol encoded which again reduces the duty cycle, but to be on the safe side let's assume 50%.

    2) Thanks for sending the LED part number, that always helps to trigger better comments. The 1.6 V max forward voltage is only valid for a current of 100 mA. Figure 5 on page 3 shows a forward voltage of ~2.95V at 1000 mA. So your resistor to limit the current would be (5V - 2.95V)/1A = 2.05 Ohm. This would be 2.05 W through the resistor, with the duty cycle 1W. As Frank already said, there must be a switching transistor, which also has a resistance, even if it is a MOSFET. Tolerances of all components are also important, because small changes with low resistor values like this change the current a lot.

    image

    3) IR wavelength also might be important, they also come in 850 nm and 1130 nm.

    A little drawing how you plan to solder things together also might help for some more advise.

    Cheers,

     - Wolfgang.

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dougw
    0 dougw over 3 years ago

    Some good info already in the answers. It is high temperature that would kill the resistor or LED, and even 1 Watt in a component that size will heat up quickly. You would need to determine how much energy and time it takes to reach a dangerous temperature. Then you could figure out how to keep the components cool enough for the time you need them to operate.

    I would just keep the power down in each component simply to avoid temperatures that could burn you or melt plastic. The components will last longer and the calculations are much simpler. You could use several resistors in parallel as you mentioned, or LEDs and resistors as Frank mentioned. Wolfgang's calculations indicate you might get away with 2 LEDs with 2 resistors on each LED.

    If you can find a cheap lens that will work at the wavelength of your LEDs, it could substantially improve range without having to boost power. I once used an 8 inch lens to make a 0.16 Watt LED visible from one mile away.

    One other note is the driving transistor may need a strong drive (low impedance source) to keep up with the switching rate. This could mean adding a second transistor.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • phoenixcomm
    0 phoenixcomm over 3 years ago
    ntewinkel said:
    Should I be using a set of parallel resistors instead (knowing I'll have to up the resistor values to compensate) ?

    I don't believe so. the problem you may have is if you lose one of the parrel Resistors things can get very ugly. As Rt will change and your LED could burn out. 

    ~~Cris

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 3 years ago in reply to fmilburn

    Thanks Frank! I knew I was missing something big but didn’t know what! - I missed the math on the voltage drop on the resistor being vcc-(led voltage drop).

    And yes, early on I found that I had to use a transistor to get any results at all.
    I haven’t checked the ratings on it, I think it’s a pn2222a - in the most basic circuit where the I/O pin drives the transistor, connected through a resistor of course.

    I’m not familiar with constant current sources, I’m just using a phone charger cube rated at 1amp/5v

    I’m aiming for just a basic “works ok”, so if I can reduce the amperage to something within easier limits, I’ll do that. It only really needs to be in one spot aimed at the heat pump and send a packet twice a day, so I might be able to get away with some bursts of over current.

    I have a few more days away but will try some hands on testing later.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 3 years ago in reply to fmilburn

    Multiple LEDs is a good idea too, thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 3 years ago in reply to wolfgangfriedrich

    Thanks Wolfgang! I really appreciate all of your help!

    That’s a lot of learning for me Laughing 

    I wasn’t aware of the change of forward voltage with changing current, that’s interesting.

    I replied to Frank’s comment with more details, but in a nutshell yes a transistor in the most basic Arduino-101 circuit. I might be able to reduce the output to a more manageable level while still getting enough light to reach the heat pump.

    I’ll do some more math on the Daikin IR packet to see about the duty cycle.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 3 years ago in reply to dougw

    Thanks Doug!

    You make a really good point about fire safety that I had not really been paying attention to.

    I’ll have to do more testing to see if lower power levels will work.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ntewinkel
    0 ntewinkel over 3 years ago in reply to phoenixcomm

    I think that part might be ok, assuming a failed resistor leaves it open, not shorted, because of that inverse math for parallel resistors. For example, 4x 100 ohm in parallel gives 25 ohms. if one fails open, the 3 result in 33 ohms, which (I think?) will reduce current instead of increasing it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube