Ks0125 keyestudio EASY plug IR Receiver Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
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.
<span style="color: red">'''Note: ''' this module should be used together with EASY plug control board.<br>
 
<br>
<br>
==Specification==
==Specification==
* Connector: Easy plug
* Connector: Easy plug
Line 12: Line 12:
* 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 25:
<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|500px|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|500px|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>
<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|500px|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|500px|frameless|thumb]]<br>
<br>
After that, upload the code again and have a try.
<br>
==Resources ==
==Resources ==
'''Download the PDF:'''<br>
'''Download the Arduino Resource:'''<br>
https://drive.google.com/open?id=1Bd8z3tDzPLs3puvR_fCl_pRG2oV4O8-
https://drive.google.com/open?id=16arav6CSqtWI5krgDKT3z-LdIh_UTPyY


'''Download the libraries:''' <br>
'''Download the Mixly Resource:'''<br>
https://drive.google.com/open?id=1DB5I3GUk95z_RCp8uCMshCvPOekp8n9D
https://drive.google.com/open?id=1vS8jLhx8O30tH4dr4f3_uw9mHTkzRYoI


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


<br>
<br>
==Buy from ==
==Buy from ==
*'''Official Website:''' http://www.keyestudio.com/ks0125.html
*[https://www.keyestudio.com/new-keyestudio-easy-plug-ir-infrared-receiver-module-for-arduino-starter-steam-p0071-p0071.html '''Official Website''' ]


*[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 ]
*[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]]

Revision as of 11:57, 7 May 2019

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

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

Download the Arduino Resource:
https://drive.google.com/open?id=16arav6CSqtWI5krgDKT3z-LdIh_UTPyY

Download the Mixly Resource:
https://drive.google.com/open?id=1vS8jLhx8O30tH4dr4f3_uw9mHTkzRYoI



Buy from