KY-005 Infrared Transmitter Module


Arduino IR Transmitter Module Keyes KY-005, emits infrared light at 38kHz. 


The KY-005 Infrared Transmitter Module consists of just a 5mm IR LED. It works together with the KY-022 IR receiver module. Compatible with popular electronics platforms like Arduino, Teensy, Raspberry Pi and ESP8266.

Operating Voltage5V
Forward Current30 ~ 60 mA
Power Consumption90mW
Operating Temperature-25°C to 80°C [-13°F to 176°F]
Dimensions 18.5mm x 15mm [0.728in x 0.591in]

KY-005 Connection Diagram

Connect the Power line (middle) and ground (-) to +5 and GND respectively. Connect signal (S) to pin 3 on the Arduino UNO or pin 9 on the Arduino Mega. The pin number for the infrared transmitter is determined by the IRremote library, check the download section below for more info.

KY-005Arduino UNO
SPin 3
Arduino KY-005 connection diagramclick to enlarge

KY-005 Example Code

The following Arduino sketch uses the IRremote library to serially send infra-red signals with the KY-005. The output pin is determined by the library and it depends on the board you are using, check the IRremote library documentation for supported boards. You'll need an IR receiver like the KY-022 to process the signal.

Links to the required libraries for the KY-005 Arduino example sketch can be found in the Downloads section below.

#include <IRremote.h>
IRsend irsend;

void setup()

void loop() 
   for (int i = 0; i < 50; i++) { 
     irsend.sendSony(0xa90, 12); // Sony TV power code
Inline Feedbacks
View all comments
6 months ago

Be careful – I have connected +5V to S pin and GND to – and my IR Led has blown up. This module is not secure, watch your eyes.

5 years ago

I do not understand the purpose of connecting the middle pin to +5V. On my device, the middle pin is only connected to an SMD pad, however, there is no resistor on the board. Thus the middle pin has no connection to the LED.
Instead I wonder, if I should connect the device directly to the Arduino output, since current should not exceed 40mA and the device exceeds this value.

Reply to  thomas
3 years ago

I agree with thomas there is nothing connected to the middle pin except the smd pad

Reply to  thomas
1 year ago

I know this is an old post but incase anyone else reads this, the middle pin is not in use however it is there so it can be used when you add your own resistor to the board it depends on the voltage you are using