Ks0125 keyestudio EASY plug IR Receiver Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
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>
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>


==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
* Size: 38*20mm
* Weight: 6g


<br>
==Technical Details==
* Dimensions: 38mm*20mm*18mm
* Weight: 5g


==Connection Diagram ==
<br>
<br>[[File:ks0125-2.png|500px|frameless|thumb]]<br>
==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.
<br>[[File:ks0125.jpg|500px|frameless|thumb]]<br>


<br>
==Upload the Code==
Below is an example code. Open or drag below code to [https://wiki.keyestudio.com/Getting_Started_with_Mixly  Mixly Blocks] and upload. <br>
<br>[[File:ks0398 22.1.png|500px|frameless|thumb]]<br>
<br>


==Sample Code==
==What You Should See==
<pre>
<br>[[File:ks0398 22-1.png|600px|frameless|thumb]]<br>
#include <IRremote.h>
<br>
int RECV_PIN = 11;
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.
IRrecv irrecv(RECV_PIN);
<br>[[File:ks0125 Result.png|600px|frameless|thumb]]<br>
decode_results results;
<br>[[File:ks0398 22-2.png|600px|frameless|thumb]]<br>
void setup()
 
{
<br>
Serial.begin(9600);
<span style="color: red">'''Little Knowledge:'''</span> <br>
irrecv.enableIRIn(); // Start the receiver
This test can record all your remote control key decoding. So you can apply them to the next experiment to control LED lights. 
}
<br>
void loop() {
 
if (irrecv.decode(&results)) {
<br>
  Serial.println(results.value, HEX);
 
  irrecv.resume(); // Receive the next value
==Remote Controlled Light==
}
<br>
}
'''Hookup Guide'''<br>
</pre>
Connect the EASY Plug Infrared receiver module and LED module to control board using RJ11 cables.  
IR Remote Library Includes some sample codes for sending and receiving.<br>
<br>[[File:红外接收灯.jpg|500px|frameless|thumb]]<br>
https://github.com/shirriff/Arduino-IRremote
 
<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>


==Resources ==
==Resources ==


'''PDF'''
https://fs.keyestudio.com/KS0125


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


'''Libraries'''
<br>


https://drive.google.com/open?id=1CSwjDND5RjJ2ADLR_wIphvN0ZgPRhc3i
==Buy from ==
*[https://www.keyestudio.com/new-keyestudio-easy-plug-ir-infrared-receiver-module-for-arduino-starter-steam-p0071-p0071.html  '''Official Website''' ]


==Buy from ==
*[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 ]
'''Official Website'''


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


[[category:Module]]
[[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