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, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, 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 32,000+ makers on Adafruit’s Discord channels and be part of the community!

Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.

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

CircuitPython – The easiest way to program microcontrollers –

Maker Business — A paradigm shift

Wearables — Look sharp with this quick tip!

Electronics — Straw Diffusers

Python for Microcontrollers — Python on Microcontrollers Newsletter: MicroPython 1.19 released and more! #Python #CircuitPython @micropython @ThePSF

Adafruit IoT Monthly — eInk Postcard, VR Spectrum Instrumentation, and more!

Microsoft MakeCode — MakeCode Thank You!

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

New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Prods 6/22/22 Feat. ADS1115 16-Bit ADC – 4 Channel w. Programmable Gain Amplifier – STEMMA QT!

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.