KY-005 Infrared Transmitter Module

Description

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

Specifications

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
middle+5V
-GND
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()
{
 Serial.begin(9600);
}

void loop() 
{
   for (int i = 0; i < 50; i++) { 
     irsend.sendSony(0xa90, 12); // Sony TV power code
     delay(40);
   }
}

2
Leave a Reply

avatar
1 Comment threads
1 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
2 Comment authors
rackamthomas Recent comment authors
thomas
thomas

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.

rackam
rackam

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