Ks0125 keyestudio EASY plug IR Receiver Module: Difference between revisions
Keyestudio (talk | contribs) |
Keyestudio (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
[[image:ks0125图.jpg|thumb|600px|right|EASY plug IR Receiver Module]] | |||
==Introduction== | ==Introduction== | ||
Infrared receiver is a component with functions of reception, amplification, and demodulation. | 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 | 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== | ||
* | * Connector: Easy plug | ||
* Power Supply: 5V | * Power Supply: 5V | ||
* Interface:Digital | * Interface:Digital | ||
* Modulate Frequency: 38Khz | * Modulate Frequency: 38Khz | ||
<br> | |||
* | ==Technical Details== | ||
* Weight: | * Dimensions: 38mm*20mm*18mm | ||
* Weight: 5g | |||
<br> | |||
== | ==Connect It Up == | ||
<br>[[File:ks0125 | 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== | |||
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 = | 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); | |||
irrecv.enableIRIn(); // Start the receiver | |||
} | } | ||
void loop() { | void loop() { | ||
if (irrecv.decode(&results)) { | |||
Serial.println(results.value, HEX); | |||
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 | |||
[[category:EASY Plug]] | [[category:EASY Plug]] |
Revision as of 09:40, 23 November 2018
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.
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.
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