# Adafruit High Power Infrared LED Emitter

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/123/216/medium800/adafruit_products_5639-03.jpg?1690985683)

_\*Pew\* \*pew\*_! This board is like a little ray gun for infrared light, with two high powered LED outputs. When controlled with the&nbsp;onboard&nbsp;N-Channel FET driver, you'll be blasting 100mA-200mA of current pulsing through each LED for 10+ meters of range! This is the easiest way to get great IR emitter range without wiring up a bunch of parts.

![](https://cdn-learn.adafruit.com/assets/assets/000/123/217/medium800/adafruit_products_5639-02.jpg?1690985697)

[By using a 2mm pitch STEMMA JST PH cable](https://www.adafruit.com/?q=jst+ph+3&sort=BestMatch)&nbsp;with headers or alligator clips on the end,&nbsp;you can easily wire this board up without any soldering at all.

This board features a power transistor so you just need to provide about 3-5V DC power to the V+ power in, ground for ground, and then a 3-5V logic level signal on the input pin. When the pin is high, the LEDs are on, when the signal pin is low, the LEDs are off. Since humans don't see in IR, there's a red LED that will let you know when the IR LEDs are lit. Two LEDs are pre-soldered to the PCB, one pointing up and one pointing out. If you want even MORE coverage,&nbsp;[there's a spot to solder in a separate 5mm IR LED (not included)](https://www.adafruit.com/product/387).

![](https://cdn-learn.adafruit.com/assets/assets/000/123/218/medium800/adafruit_products_5639-01.jpg?1690985709)

If powering with 5V, the board will draw about 200mA per LED (400mA total) when pulsing on. If powering with 3V the board will draw about 100mA per LED (200mA total). We don't recommend keeping the LEDs on for long periods at this current draw, they're for remote control transmission more than IR illumination.

Each STEMMA board comes with a fully assembled and tested PCB but no cable. No soldering is required to use it, but you will need to pick up&nbsp;&nbsp;[a 2mm pitch, 3-pin&nbsp;STEMMA JST PH cable](https://www.adafruit.com/?q=jst+ph+3&sort=BestMatch). Alternatively, if you&nbsp;_do_ want to solder, there's a 0.1" spaced header for power / ground / signal.

# Adafruit High Power Infrared LED Emitter

## Pinouts

![](https://cdn-learn.adafruit.com/assets/assets/000/116/560/medium800/sensors_double.jpg?1668008459)

## Power Pins

- **V+** &nbsp;- this is the power pin. We have included an N-Channel FET driver&nbsp;on board for the IR LEDs that will take 3-5VDC. To power the board, give it the same power as the logic level of your microcontroller - e.g. for a 5V microcontroller like Arduino, use 5V.
  - If powering with **5V** , the board will draw about **200mA per LED** (400mA total) when pulsing on. 
  - If powering with **3V** the board will draw about **100mA per LED** (200mA total).

- **GND** &nbsp;- common ground for power and logic.

## Input Pin

- **In** - this is the signal input pin. When the pin is high, the IR LEDs are on, when the signal pin is low, the IR LEDs are off.

## STEMMA JST PH

- [**STEMMA JST PH**](https://learn.adafruit.com/introducing-adafruit-stemma-qt) - 2mm pitch STEMMA JST port with connections for **V+** , **GND** and **In**. Plug in a [3-pin STEMMA JST PH cable](https://www.adafruit.com/category/619) with headers or alligator clips on the end and you can easily wire this board up without any soldering at all.&nbsp;

## Optional 5mm LED

- On the back of the board, there is a spot to solder an [optional 5mm IR LED](https://www.adafruit.com/product/387). This can be used if you want additional IR coverage.

## Signal LED and LED Jumper

- **Signal LED -&nbsp;** In the lower left corner, below the STEMMA connector, on the front of the board, is the signal LED, labeled **Sig**. It is the red LED. Since humans don't see in IR, the Signal LED lights up to let you know when the IR LEDs are lit.
- **Signal LED jumper&nbsp;** - This jumper is located on the back of the board and is labeled **Sig**. Cut the trace on this jumper to cut power to the "Sig" LED.

## Power LED and LED Jumper

- **Power LED -&nbsp;** In the upper left corner, above the STEMMA connector, on the front of the board, is the power LED, labeled **&nbsp;on**. It is the green LED.
- **Power LED jumper&nbsp;** - This jumper is located on the back of the board and is labeled **On**. Cut the trace on this jumper to cut power to the "on" LED.

# Adafruit High Power Infrared LED Emitter

## CircuitPython

It's easy to use the&nbsp; **High Power Infrared LED Emitter** with CircuitPython, and the&nbsp;[Adafruit\_CircuitPython\_IRRemote](https://github.com/adafruit/Adafruit_CircuitPython_IRRemote) module. This module allows you to easily write Python code that allows you to send IR remote pulses using the [pulseio](https://docs.circuitpython.org/en/latest/shared-bindings/pulseio/index.html) core module.&nbsp;

## CircuitPython Microcontroller Wiring

First, wire up an infrared LED emitter to your board exactly as shown below. Here's an example of wiring a Feather M4 to the infrared LED emitter using one of the handy [STEMMA JST PH](https://www.adafruit.com/?q=jst+ph+3&sort=BestMatch)[cables](https://www.adafruit.com/?q=jst+ph+3&sort=BestMatch):

- **Board 3V** to **LED emitter V+ (red wire)**
- **Board GND** &nbsp;to **LED emitter**** &nbsp;GND (black wire)**
- **Board pin 5** &nbsp;to&nbsp; **LED emitter** **In (white wire)**

![sensors_featherSTEMMA_bb.png](https://cdn-learn.adafruit.com/assets/assets/000/116/584/medium640/sensors_featherSTEMMA_bb.png?1668029698)

You can also use standard&nbsp; **0.100" pitch** &nbsp;headers to wire it up on a breadboard:

- **Board 3V** to **LED emitter V+ (red wire)**
- **Board GND** &nbsp;to **LED emitter**** &nbsp;GND (black wire)**
- **Board pin 5** &nbsp;to&nbsp; **LED emitter** **In (white wire)**

![sensors_featherBB_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/116/585/medium640/sensors_featherBB_bb.jpg?1668029760)

## CircuitPython Usage

To use with CircuitPython, you need to first install the IRRemote library, and its dependencies, into the&nbsp; **lib** &nbsp;folder on your&nbsp; **CIRCUITPY** &nbsp;drive. Then you need to update&nbsp; **code.py** &nbsp;with the example script.

Thankfully, we can do this in one go. In the example below, click the&nbsp; **Download Project Bundle** &nbsp;button below to download the necessary libraries and the&nbsp; **code.py** &nbsp;file in a zip file. Extract the contents of the zip file, and copy the&nbsp; **entire&nbsp;**** lib **&nbsp;** folder **&nbsp;and the&nbsp;** code.py **&nbsp;file to your&nbsp;** CIRCUITPY**&nbsp;drive.

Your&nbsp; **CIRCUITPY/lib** &nbsp;folder should contain the following folders and file:

- **adafruit\_irremote.mpy**

![CIRCUITPY](https://adafruit.github.io/Adafruit_CircuitPython_Bundle/irremote_irremote_transmit.py.png )

## Example Code
https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/STEMMA_IR_LED_Emitter/code.py

Once everything is saved to the&nbsp; **CIRCUITPY** &nbsp;drive,&nbsp;[connect to the serial console](https://learn.adafruit.com/welcome-to-circuitpython/kattni-connecting-to-the-serial-console)&nbsp;to see the data printed out!

![](https://cdn-learn.adafruit.com/assets/assets/000/116/612/medium800/sensors_repl.jpg?1668093936)

The code begins by creating a `pulseio` object on pin `D5`. This will send infrared signals via the IR transmitter at 38KHz. Then, `emitter` is created with the `adafruit_irremote` library that will take numbers and turn them into NEC IR pulses.

In the loop, an IR signal is pulsed out every two seconds. In the REPL, you'll see "`IR signal sent # times!`" print out after the pulse is sent. The variable `count` counts the number of times this occurs and is passed to the string in the REPL.

# Adafruit High Power Infrared LED Emitter

## Python Docs

# Adafruit High Power Infrared LED Emitter

## Arduino

Using the High Power Infrared LED Emitter&nbsp;with Arduino involves wiring up the infrared LED emitter to your Arduino-compatible microcontroller, installing the&nbsp;[IRremote](https://github.com/Arduino-IRremote/Arduino-IRremote)&nbsp;library and running the provided example code.

## Other Arduino Code Options

There are many libraries available for sending and decoding infrared signals with Arduino. The [Using an Infrared Library on Arduino Learn Guide by Chris Young](https://learn.adafruit.com/using-an-infrared-library/overview) that goes into more detail on other libraries available and their usage. You can also send IR signals without a library, as shown in the original [IR Sensor Learn Guide](https://learn.adafruit.com/ir-sensor).

## Wiring

Wire as shown for a&nbsp; **5V** &nbsp;board like an Uno. If you are using a **&nbsp;3V** &nbsp;board, like an Adafruit Feather, wire the board's 3V pin to the infrared LED emitter V+.

Here is an Adafruit Metro wired up to the infrared LED emitter using the STEMMA JST PH cable:

- **Board 5V** to **LED emitter V+ (red wire)**
- **Board GND** &nbsp;to **LED emitter**** &nbsp;GND (black wire)**
- **Board pin 3** &nbsp;to&nbsp; **LED emitter** **In (white wire)**

![sensors_metroStemma_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/116/618/medium640/sensors_metroStemma_bb.jpg?1668097173)

Here is an Adafruit Metro wired up using a solderless breadboard:

- **Board 5V** to **LED emitter V+ (red wire)**
- **Board GND** &nbsp;to **LED emitter**** &nbsp;GND (black wire)**
- **Board pin 3** &nbsp;to&nbsp; **LED emitter** **In (white wire)**

![sensors_metroBB_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/116/619/medium640/sensors_metroBB_bb.jpg?1668097188)

## Library Installation

You can install the&nbsp; **IRremote** &nbsp;library for Arduino using the Library Manager in the Arduino IDE.

![](https://cdn-learn.adafruit.com/assets/assets/000/116/614/medium800/sensors_Arduino_Open_Library_Manager.png?1668095982)

Click the&nbsp; **Manage Libraries ...** &nbsp;menu item, search for **IRremote,** &nbsp;and select the&nbsp; **IRremote** &nbsp;library:

![](https://cdn-learn.adafruit.com/assets/assets/000/116/615/medium800/sensors_irremoteLibInstall.jpg?1668096192)

## Example Code
![](https://cdn-learn.adafruit.com/assets/assets/000/116/616/medium800/sensors_selectExample.jpg?1668096292)

To launch the example code in the Arduino IDE, click on&nbsp; **File** &nbsp;-&nbsp; **Examples** &nbsp;-&nbsp; **IRremote&nbsp;** and select&nbsp; **SimpleSender**. The example code can also be found on&nbsp;[GitHub in the library repository](https://github.com/Arduino-IRremote/Arduino-IRremote/blob/master/examples/SimpleSender/SimpleSender.ino).

![](https://cdn-learn.adafruit.com/assets/assets/000/116/613/medium800/sensors_ardLoop.jpg?1668095917)

![](https://cdn-learn.adafruit.com/assets/assets/000/116/617/medium800/sensors_ardSerial.jpg?1668096328)

Upload the sketch to your board and open up the Serial Monitor ( **Tools -\> Serial Monitor** ) at 115200 baud. You should see your library version and the pin number that will be sending the IR pulses print to the Serial Monitor. Then, the `address`, `command` and `repeats` are printed, followed by the message `Send NEC with 16 bit address`. The `address` and `command` will incrementally increase as the code runs.

# Adafruit High Power Infrared LED Emitter

## Arduino Docs

# Adafruit High Power Infrared LED Emitter

## Downloads

## Files

- [Infrared LED Datasheet](https://cdn-learn.adafruit.com/assets/assets/000/116/531/original/IN-S126ESGHIR_V1.1.pdf?1667949617)
- [EagleCAD PCB files on GitHub](https://github.com/adafruit/Adafruit-High-Power-Infrared-LED-Emitter-PCB)
- [3D models on GitHub](https://github.com/adafruit/Adafruit_CAD_Parts/tree/main/5639%20IR%20LED%20Emitter)
- [Fritzing object in the Adafruit Fritzing Library](https://github.com/adafruit/Fritzing-Library/blob/master/parts/Adafruit%20High%20Power%20Infrared%20LED%20Emitter%20-%20STEMMA%20JST%20PH%202mm.fzpz)

## Schematic and Fab Print
![](https://cdn-learn.adafruit.com/assets/assets/000/116/514/medium800/sensors_schem.png?1667920284)

![](https://cdn-learn.adafruit.com/assets/assets/000/116/515/medium800/sensors_fab.png?1667920293)

![](https://cdn-learn.adafruit.com/assets/assets/000/116/735/medium800/adafruit_products_IR-LED-Emitter.jpg?1668632825)


## Primary Products

### Adafruit High Power Infrared IR LED Emitter - STEMMA JST PH 2mm

[Adafruit High Power Infrared IR LED Emitter - STEMMA JST PH 2mm](https://www.adafruit.com/product/5639)
_\*pew\* \*pew\*_! This board is like a little ray gun for infrared light, with two high powered LED outputs. When controlled with the&nbsp;onboard&nbsp;N-Channel FET driver, you'll be blasting 100mA-200mA of current pulsing through each LED for 10+ meters of range! This is the easiest...

In Stock
[Buy Now](https://www.adafruit.com/product/5639)
[Related Guides to the Product](https://learn.adafruit.com/products/5639/guides)

## Featured Products

### Super-bright 5mm IR LED

[Super-bright 5mm IR LED](https://www.adafruit.com/product/387)
Infrared LEDs are used for remote controls (they're the little LED in the part you point at your TV) and 'night-vision' cameras, and these little blue guys are high powered ones! They are 940nm wavelength, which is what nearly all devices listen to. They're 20 degree beamwidth,...

Out of Stock
[Buy Now](https://www.adafruit.com/product/387)
[Related Guides to the Product](https://learn.adafruit.com/products/387/guides)
### STEMMA JST PH 2mm 3-Pin to Male Header Cable - 200mm

[STEMMA JST PH 2mm 3-Pin to Male Header Cable - 200mm](https://www.adafruit.com/product/3893)
This cable will let you turn a JST PH 3-pin cable port into 3 individual wires with high-quality 0.1" male header plugs on the end. We're carrying these to match up with our Hallowing, for extending and connecting sensors or LEDs - and the wires are even color coded!

<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/3893)
[Related Guides to the Product](https://learn.adafruit.com/products/3893/guides)
### STEMMA JST PH 2mm 3-Pin to Female Socket Cable - 200mm

[STEMMA JST PH 2mm 3-Pin to Female Socket Cable - 200mm](https://www.adafruit.com/product/3894)
This cable will let you turn a JST PH 3-pin cable port into 3 individual wires with high-quality 0.1" female header sockets on the end. We're carrying these to match up with our Hallowing, for extending and connecting sensors or LEDs - and the wires are even color coded!

<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/3894)
[Related Guides to the Product](https://learn.adafruit.com/products/3894/guides)
### JST PH 2mm 3-pin Plug to Color Coded Alligator Clips Cable

[JST PH 2mm 3-pin Plug to Color Coded Alligator Clips Cable](https://www.adafruit.com/product/4030)
This cable will let you turn a JST PH 3-pin cable port into 3 individual wires with grippy mini alligator clips. We're carrying these to match up with any of our boards or breakouts with 3-pin 'STEMMA' connectors on them such as the&nbsp;<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/4030)
[Related Guides to the Product](https://learn.adafruit.com/products/4030/guides)

## Related Guides

- [Bluetooth TV Zapper](https://learn.adafruit.com/bluetooth-tv-zapper.md)
- [Adafruit TSSP77038 38KHz Infrared IR Demodulator Breakout](https://learn.adafruit.com/adafruit-tssp77038-38khz-infrared-ir-demodulator-breakout.md)
- [Adafruit TSMP96000 IR Receiver Breakout](https://learn.adafruit.com/adafruit-tsmp96000-ir-receiver-breakout.md)
- [Easy No-Soldering Bluetooth Controlled Room Lights](https://learn.adafruit.com/easy-no-solder-bluetooth-controlled-room-lights.md)
- [Adafruit LTC4311 I2C Extender / Active Terminator](https://learn.adafruit.com/adafruit-ltc4311-i2c-extender-active-terminator.md)
- [Matrix Portal Stained Glass with WLED](https://learn.adafruit.com/matrix-portal-stained-glass-with-wled.md)
- [Adafruit PCA9548 8-Channel STEMMA QT / Qwiic I2C Multiplexer](https://learn.adafruit.com/adafruit-pca9548-8-channel-stemma-qt-qwiic-i2c-multiplexer.md)
- [74HC595 Shift Register](https://learn.adafruit.com/74hc595.md)
- [Adafruit STEMMA Audio Amp](https://learn.adafruit.com/stemma-audio-amp.md)
- [CAN Bus with CircuitPython: Using the canio module](https://learn.adafruit.com/using-canio-circuitpython.md)
- [Adafruit TCA8418 Keypad Matrix and GPIO Expander Breakout](https://learn.adafruit.com/adafruit-tca8418-keypad-matrix-and-gpio-expander-breakout.md)
- [Creating FunHouse Projects with CircuitPython](https://learn.adafruit.com/creating-funhouse-projects-with-circuitpython.md)
- [MLX90640 Thermal Camera with Image Recording](https://learn.adafruit.com/mlx90640-thermal-image-recording.md)
- [Adafruit PiCowBell HSTX DVI Output](https://learn.adafruit.com/adafruit-picowbell-hstx-dvi-output.md)
- [Getting Started with CircuitPython and Bluetooth Low Energy](https://learn.adafruit.com/circuitpython-nrf52840.md)
