Ks0125 keyestudio EASY plug IR Receiver Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
==EASY plug IR Receiver Module==
[[image:ks0125图.jpg|thumb|600px|right|EASY plug IR Receiver Module]]
<br>[[File:ks0125-1.png|500px|frameless|thumb]]<br>


==Introduction==
==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. <br>
Infrared receiver is a component with functions of reception, amplification, and demodulation. The internal IC has already been demodulated so that can directly output digital signal. <br>
Note: this module needs to be used together with EASY plug control board.<br>
Well, it will be also easy to make your own IR controller using IR transmitter. <br>
 
<span style="color: red">'''Note: ''' this module should be used together with EASY plug control board.
<br>


==Specification==
==Specification==
* Interface: Easy plug
* Connector: Easy plug
* Power Supply: 5V
* Power Supply: 5V
* Interface:Digital
* Interface:Digital
* Modulate Frequency: 38Khz
* Modulate Frequency: 38Khz
* Module interface socket:JST PH2.0
<br>
* Size: 38*20mm
==Technical Details==
* Weight: 6g
* Dimensions: 38mm*20mm*18mm
 
* Weight: 5g
 
<br>
==Connection Diagram ==
==Connect It Up ==
<br>[[File:ks0125-2.png|500px|frameless|thumb]]<br>
Connect the EASY Plug Infrared receiver sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
 
<br>[[File:ks0125.jpg|500px|frameless|thumb]]<br>


==Sample Code==
<br>
==Upload the Code==
Copy and paste below code to [http://wiki.keyestudio.com/index.php/How_to_Download_Arduino_IDE Arduino IDE] and upload.
<pre>
<pre>
#include <IRremote.h>
#include <IRremote.h>
int RECV_PIN = 11;
int RECV_PIN = 8;
IRrecv irrecv(RECV_PIN);
IRrecv irrecv(RECV_PIN);
decode_results results;
decode_results results;
void setup()
void setup()
{
{
Serial.begin(9600);
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
irrecv.enableIRIn(); // Start the receiver
}
}
void loop() {
void loop() {
if (irrecv.decode(&results)) {
if (irrecv.decode(&results)) {
  Serial.println(results.value, HEX);
Serial.println(results.value, HEX);
  irrecv.resume(); // Receive the next value
irrecv.resume(); // Receive the next value
}
}
}
}
</pre>
</pre>
Line 42: Line 44:
https://github.com/shirriff/Arduino-IRremote
https://github.com/shirriff/Arduino-IRremote


<br>
==What You Should See==
Done uploading the code, when aiming at the IR receiver, press down the key on an IR remote controller, you should see the key decoding is displayed on the serial monitor in the Arduino IDE. 
<br>[[File:ks0125 Result.png|500px|frameless|thumb]]<br>
<br>
==Resources ==
==Resources ==
 
'''PDF'''<br>
'''PDF'''
 
https://drive.google.com/open?id=1Bd8z3tDzPLs3puvR_fCl_pRG2oV4O8-I   
https://drive.google.com/open?id=1Bd8z3tDzPLs3puvR_fCl_pRG2oV4O8-I   
 
<br>
'''Libraries'''
'''Libraries'''<br>
 
https://drive.google.com/open?id=1CSwjDND5RjJ2ADLR_wIphvN0ZgPRhc3i
https://drive.google.com/open?id=1CSwjDND5RjJ2ADLR_wIphvN0ZgPRhc3i


<br>
==Buy from ==
==Buy from ==
'''Official Website'''
'''Official Website'''<br>
http://www.keyestudio.com/keyestudio-easy-plug-ir-infrared-receiver-module-for-arduino-starter.html


http://www.keyestudio.com/keyestudio-easy-plug-ir-infrared-receiver-module-for-arduino-starter.html


[[category:EASY Plug]]
[[category:EASY Plug]]

Revision as of 09:40, 23 November 2018

EASY plug IR Receiver Module

Introduction

Infrared receiver is a component with functions of reception, amplification, and demodulation. The internal IC has already been demodulated so that can directly output digital signal.
Well, it will be also easy to make your own IR controller using IR transmitter.
Note: this module should be used together with EASY plug control board.

Specification

  • Connector: Easy plug
  • Power Supply: 5V
  • Interface:Digital
  • Modulate Frequency: 38Khz


Technical Details

  • Dimensions: 38mm*20mm*18mm
  • Weight: 5g


Connect It Up

Connect the EASY Plug Infrared receiver sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
thumb


Upload the Code

Copy and paste below code to Arduino IDE and upload.

#include <IRremote.h>
int RECV_PIN = 8;
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


What You Should See

Done uploading the code, when aiming at the IR receiver, press down the key on an IR remote controller, you should see the key decoding is displayed on the serial monitor in the Arduino IDE.
thumb


Resources

PDF
https://drive.google.com/open?id=1Bd8z3tDzPLs3puvR_fCl_pRG2oV4O8-I
Libraries
https://drive.google.com/open?id=1CSwjDND5RjJ2ADLR_wIphvN0ZgPRhc3i


Buy from

Official Website
http://www.keyestudio.com/keyestudio-easy-plug-ir-infrared-receiver-module-for-arduino-starter.html