Keyes Infrared Transmitter Module (KY-005) [S015]




https://www.youtube.com/watch?v=vZQNxaUkKw0


*GitHubhttps://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.

}

Posted by RDIoT
|