Ks0125 keyestudio EASY plug IR Receiver Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
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>
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>
Well, it will be also easy to make your own IR controller using IR transmitter. <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.
This module should be used together with EASY plug control board.<br>
 
<span style=color:red> '''Special Note:''' <br>
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface. <br> If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module. </span><br>
<br>
<br>


Line 12: Line 15:
* Interface:Digital
* Interface:Digital
* Modulate Frequency: 38Khz
* Modulate Frequency: 38Khz
<br>
<br>
==Technical Details==
==Technical Details==
* Dimensions: 38mm*20mm*18mm
* Dimensions: 38mm*20mm*18mm
* Weight: 5g
* Weight: 5g
<br>
<br>
==Connect It Up ==
==Connect It Up ==
Line 23: Line 28:
<br>
<br>
==Upload the Code==
==Upload the Code==
Copy and paste below code to [http://wiki.keyestudio.com/index.php/How_to_Download_Arduino_IDE Arduino IDE] and upload.
Below is an example code. Open or drag below code to [https://wiki.keyestudio.com/Getting_Started_with_Mixly  Mixly Blocks] and upload. <br>
<pre>
<br>[[File:ks0398 22.1.png|500px|frameless|thumb]]<br>
#include <IRremote.h>
<br>
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
}
}
</pre>
IR Remote Library Includes some sample codes for sending and receiving.<br>
https://github.com/shirriff/Arduino-IRremote


==What You Should See==
<br>[[File:ks0398 22-1.png|600px|frameless|thumb]]<br>
<br>
<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. If long press the key, it will appear wrong code FFFFFFFF.
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|600px|frameless|thumb]]<br>
<br>[[File:ks0125 Result.png|600px|frameless|thumb]]<br>
<br>[[File:ks0398 22-2.png|600px|frameless|thumb]]<br>
<br>
<span style="color: red">'''Little Knowledge:'''</span> <br>
This test can record all your remote control key decoding. So you can apply them to the next experiment to control LED lights. 
<br>
<br>
==Remote Controlled Light==
<br>
'''Hookup Guide'''<br>
Connect the EASY Plug Infrared receiver module and LED module to control board using RJ11 cables.
<br>[[File:红外接收灯.jpg|500px|frameless|thumb]]<br>
<br>
'''Test Code'''<br>
<br>[[File:ks0398 22.2.png|500px|frameless|thumb]]<br>
<br>
'''What You Should See'''<br>
Upload success, press the key 1 on your remote controller, LED lights up. Then press the key 2, LED is turned off.
<br>[[File:ks0398 22-4.png|600px|frameless|thumb]]<br>
<br>
<span style="color: red">'''Little Knowledge:'''</span> <br>
If you want to change another remote control key, you should be able to change your remote key decoding. Shown below.
<br>[[File:ks0398 22-3.png|600px|frameless|thumb]]<br>
<br>
After that, upload the code again and have a try.


<br>
<br>


==Resources ==
==Resources ==
'''Download the PDF:'''<br>
https://drive.google.com/open?id=1Bd8z3tDzPLs3puvR_fCl_pRG2oV4O8-I 


'''Download the libraries:''' <br>
https://fs.keyestudio.com/KS0125
https://drive.google.com/open?id=1DB5I3GUk95z_RCp8uCMshCvPOekp8n9D


'''Download the code:''' <br>
https://drive.google.com/open?id=1rmBXikoBEWb99dB5viZudYJRK_bVHoyp


<br>
<br>


==Buy from ==
==Buy from ==
'''Official Website'''<br>
*[https://www.keyestudio.com/new-keyestudio-easy-plug-ir-infrared-receiver-module-for-arduino-starter-steam-p0071-p0071.html '''Official Website''' ]
http://www.keyestudio.com/keyestudio-easy-plug-ir-infrared-receiver-module-for-arduino-starter.html
 
*[https://www.aliexpress.com/store/product/New-Keyestudio-EASY-Plug-IR-Infrared-Receiver-Module-for-Arduino-Starter/1452162_32644168169.html?spm=2114.12010612.8148356.10.7da057f6FuVkis  Shop on aliexpress ]




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

Latest revision as of 16:35, 7 January 2021

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.
This module should be used together with EASY plug control board.

Special Note:
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface.
If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module.


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

Below is an example code. Open or drag below code to Mixly Blocks and upload.

thumb

What You Should See


thumb

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. If long press the key, it will appear wrong code FFFFFFFF.
thumb

thumb


Little Knowledge:
This test can record all your remote control key decoding. So you can apply them to the next experiment to control LED lights.


Remote Controlled Light


Hookup Guide
Connect the EASY Plug Infrared receiver module and LED module to control board using RJ11 cables.
thumb


Test Code

thumb


What You Should See
Upload success, press the key 1 on your remote controller, LED lights up. Then press the key 2, LED is turned off.
thumb


Little Knowledge:
If you want to change another remote control key, you should be able to change your remote key decoding. Shown below.
thumb

After that, upload the code again and have a try.



Resources

https://fs.keyestudio.com/KS0125



Buy from