Keyes Infrared Transmitter Module (KY-005) [S015]
https://www.youtube.com/watch?v=vZQNxaUkKw0
*GitHub : https://github.com/rdiot/rdiot-s015.git
* Specs
Transmit 38KHz modulating signal
MATERIAL PCB
ARCHITECTURE Arduino
BRAND KEYES
DEPTH 7 mm
HEIGHT 35 mm
WIDTH 15 mm
PRODUCT WEIGHT 1.3 g
* Contents
- Library : https://github.com/shirriff/Arduino-IRremote/
- Use : IRsendDemo
- Connect
S ----- D3
middle ----- 5V
- ----- GND
- Power Off Dump Code
Encoding : SAMSUNG
Code : E0E040BF (32 bits)
Timing[67]:
+4400, -4400 + 600, -1650 + 550, -1650 + 600, -1600
+ 600, - 500 + 550, - 550 + 550, - 550 + 550, - 550
+ 550, - 550 + 550, -1650 + 550, -1650 + 600, -1650
+ 600, - 500 + 600, - 500 + 600, - 450 + 600, - 500
+ 600, - 500 + 600, - 550 + 550, -1600 + 650, - 500
+ 550, - 550 + 550, - 550 + 550, - 550 + 550, - 500
+ 600, - 500 + 600, -1600 + 600, - 500 + 600, -1650
+ 600, -1600 + 600, -1600 + 600, -1650 + 600, -1600
+ 600, -1600 + 600
- Key Code
#include <IRremote.h>
//* An IR LED must be connected to Arduino PWM pin 3.
IRsend irsend;
void loop() {
int khz = 38; // 38kHz carrier frequency for the NEC protocol
unsigned int rawData[67] = {4500,4400, 600,1650, 550,1650, 650,1600, 600,550, 550,550, 550,550, 550,550, 550,550, 550,1650, 600,1650, 550,1650, 600,550, 550,550, 550,550, 550,550, 550,550, 600,500, 600,1600, 600,550, 550,550, 550,550, 550,550, 550,550, 550,550, 600,1600, 600,550, 550,1650, 600,1650, 550,1650, 600,1650, 600,1650, 550,1650, 600}; // SAMSUNG E0E040BF
unsigned int data = 0xE0E040BF;
irsend.sendRaw(rawData, sizeof(rawData) / sizeof(rawData[0]), khz); //Note the approach used to automatically calculate the size of the array.
delay(5000); //In this example, the signal will be repeated every 5 seconds, approximately.
}
'2) Sensor > IR' 카테고리의 다른 글
Keyes Infrared Receiver Module (KY-022) [S014] (0) | 2016.09.17 |
---|---|
Infrared Receiver VS1838 (VS1838B) [S013] (0) | 2016.09.17 |
4 Head Infrared Transmitter Module [S180] (0) | 2016.09.17 |
Two-way infrared transmitter module [S095] (0) | 2016.09.17 |
IR Transmitter Module [S066] (0) | 2016.09.17 |