ASK AN EDUCATOR! – “How can I extend the range of an IR LED transmitter?”

Alessandro asks:

I’d like to know the best circuit to drive some IR LED and get maximum distance. I watched TV B gone circuitry, but i use an arduino so I may use up to 12V..

I don’t understand why using more than one transistor I would get more current

Although your Arduino can be powered by a 12V supply, the I/O is regulated to 5V or 3.3V depending on you model. LEDs commonly operate around 1.5V (2.6V in the case of the TV-B-Gone), so some level of series resistor is required.

Let’s start by taking a look at the TV-B-Gone schematic. Specifically v1.2:

The schematic tells us that each IR-LED is driven by a companion 2N3904 NPN transistor. According to Adafruit’s datasheet on the Super-bright IR LEDs used in the kit, each LED has a forward voltage of 2.6V (max 4.0V) and a forward current of 1A max. You don’t need to current limit the LED’s with a resistor as each 2N3904 is only capable of switching up to 200mA and our supply voltage is <=3V.

We use the following to calculate the necessary current to switch the NPNs:

Ib = Ic / Hfe
Ic = 200mA //Assuming a max collector current of 200mA
Hfe = ~20 //Also assumed from the datasheet as their Hfe chart only goes to 100mA

Ib = 10mA

As the TV-B-Gone uses 4 LEDs (4 x 10mA = 40mA), you hit the 40mA limit the AVR can safely provide. This accounts for the use of the 2N2907 PNP transistor connected to each NPN's base. This transistor is then switched by setting PB0 low and the LEDs fire up!

So you see, the transistors are used to allow the AVR to safely switch on and off the high current loads required by the LEDs. Although the LEDs are capable of up to 1A of current, the 200mA allowed by the NPNs provides a significant amount of distance while ensuring a long lifespan.

If you are interested in reading more about transistors, the University of Nevada happens to have good writeup.

Good luck with your circuit and don’t blow out your LEDs!

Don’t forget, everyone is invited to ask a question!

Click here!

“Ask an Educator” questions are answered by Adam Kemp, a high school teacher who has been teaching courses in Energy Systems, Systems Engineering, Robotics and Prototyping since 2005.


Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 11/15/2024 Featuring Adafruit bq25185 USB / DC / Solar Charger with 3.3V Buck Board! (Video)

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — The 2024 Recap Issue!

Maker Business – Adafruit Daily — Apple to build another chip at TSMC Arizona

Electronics – Adafruit Daily — SMT Tip – Stop moving around!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !


No Comments

No comments yet.

Sorry, the comment form is closed at this time.