Ks0125 keyestudio EASY plug IR Receiver Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
(Created page with "==EASY plug IR Receiver Module== <br>500px|frameless|thumb<br> ==Introduction== Infrared receiver is a component with functions of reception, amplificat...")
 
Line 39: Line 39:
}
}
</pre>
</pre>
IR Remote Library Includes some sample codes for sending and receiving.
IR Remote Library Includes some sample codes for sending and receiving.<br>
https://github.com/shirriff/Arduino-IRremote
https://github.com/shirriff/Arduino-IRremote




[[category:Module]]
[[category:Module]]

Revision as of 11:33, 24 September 2016

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