Ks0125 keyestudio EASY plug IR Receiver Module

From Keyestudio Wiki
Revision as of 11:33, 24 September 2016 by Keyestudio (talk | contribs) (Created page with "==EASY plug IR Receiver Module== <br>500px|frameless|thumb<br> ==Introduction== Infrared receiver is a component with functions of reception, amplificat...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

EASY plug IR Receiver Module


thumb

Introduction

Infrared receiver is a component with functions of reception, amplification, and demodulation. Its internal IC has already completed demodulation so it directly outputs digital signal. This module is usually used together with IR transmitter module.
Note: this module needs to be used together with EASY plug control board.


Specification

  • Interface: Easy plug
  • Power Supply: 5V
  • Interface:Digital
  • Modulate Frequency: 38Khz
  • Module interface socket:JST PH2.0
  • Size: 38*20mm
  • Weight: 6g


Connection Diagram


thumb


Sample Code

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

IR Remote Library Includes some sample codes for sending and receiving. https://github.com/shirriff/Arduino-IRremote