KY-005 38KHz Infrared IR Transmitter Sensor Module For Arduino

2.60$

Description

KY-005 38KHz Infrared IR Transmitter Sensor Module For Arduino N1A1 Q7Z6

 

This is 38KHz Infrared IR transmitter sensor module For Arduino
Model: KY-005
Transmit 38KHz modulating signal
Suitable for Arduino DIY project
Material: Circuit board PCB
Color:black
Package included:
1 X IR Infrared transmitter module
Note: Light shooting and different displays may cause the color of the item in the picture a little different from the real thing. The measurement allowed error is +/- 1-3cm.

Example Code:

 

Features:

Connections:

Arduino controller × 1 USB data cable × 1 the infrared transmitter module × 1 the infrared receiver module × 1 Here follow the above means to build our test circuit Well, the whole test code is not long, we understand the code for those specific function of usage, then a Cut will become simpler, Come. Another point I must say is: we see the physical map will know, this used a two Arduino Board, the above code in the download time do to make it clear which is the launch, which was received? The program also Have noted, if the download is wrong, is not getting the results! Code download is complete, we open the Serial Monitor window, if you can see the following data show that It shows you are successful, ^ _ ^ From the receiving part of the code

#include <IRremote.h>
int RECV_PIN = 11; / / define input pin on Arduino
IRrecv irrecv (RECV_PIN);
decode_results results;
void setup() {
  Serial.begin(9600);
  irrecv.enableIRIn (); / / Start the receiver
}
void loop() {
  if (irrecv.decode (& results)) {
    Serial.println(results.value, HEX);
    irrecv.resume (); / / Receive the next value
  }
}
//Main emission part of the code:
#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.

Only logged in customers who have purchased this product may leave a review.