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 Voltage | 5V |
Forward Current | 30 ~ 60 mA |
Power Consumption | 90mW |
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-005 | Arduino UNO |
S | Pin 3 |
middle | +5V |
– | GND |
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);
}
}
Reviews
There are no reviews yet.