KY-022 Infrared IR Sensor Receiver Module For Arduino

2.40$

Description

Description:

 

Description:
Infrared receiving module adopts 1838 infrared receiving head
Light resistance, strong electromagnetic interference, built-in infrared dedicated for IC, can work under 500 lux light intensity
Widely used in: stereo, TV, video machine, disc machine, set-top boxes, digital photo frame, car stereo, remote control toys, satellite receivers, hard disk player, air conditioner, heater, electric fan, lighting and other home appliances
Specification:
Dimension: 6.4 x 7.4 x 5.1mm
Receiving angle: 90 °
Working voltage: 2.7 ~ 5.5V
Frequency: 37.9KHz
Receiving range: 18m
Package included:
1 x Infrared sensor receiver module
Example Code:
  • Arduino GND –> Module pin –
  • Arduino +5V –> Module PLUS (middle pin)
  • Arduino Digital pin 11 –> Module S
/*
 * IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
 * An IR detector/demodulator must be connected to the input RECV_PIN.
 * Version 0.1 July, 2009
 * Copyright 2009 Ken Shirriff
 * http://arcfn.com
 */

#include <IRremote.h>

int RECV_PIN = 11;

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
  }
}

Reviews

There are no reviews yet.

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