Adafruit Holiday Shipping Deadlines 2018: Attention! Please place all UPS Next Day orders by Monday 12/17/2018 11 AM EST

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.

Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on, jump into CircuitPython to learn Python and hardware together, or even use Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for MakeCode, CircuitPython, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Join 9,200+ makers on Adafruit’s Discord channels and be part of the community!

CircuitPython – Python on Microcontrollers is here!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

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

Follow Adafruit on Instagram for top secret new products, behinds the scenes and more

Maker Business — Japanese word working and more in December’s issue of HackSpace magazine!

Wearables — Solder-less magic

Electronics — = != ==.

Biohacking — Finding Bliss with Anandamide

Python for Microcontrollers — sysfs is dead! long live libgpiod! libgpiod for linux & Python running hardware @circuitpython @micropython @ThePSF #Python @Adafruit #Adafruit

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

No Comments

No comments yet.

Sorry, the comment form is closed at this time.