{"product_id":"tzt-1lot-infrared-ir-wireless-remote-control-module-kits-diy-kit-hx1838-for-arduino-raspberry-pi","title":"TZT 1LOT Infrared IR Wireless Remote Control Module Kits DIY Kit HX1838 For Arduino Raspberry Pi","description":"\u003ch1\u003eSPECIFICATIONS\u003c\/h1\u003e\u003cp\u003e\u003cspan\u003eBrand Name\u003c\/span\u003e: \u003cspan style=\"color:#333\"\u003eTZT\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan\u003eModel Number\u003c\/span\u003e: \u003cspan style=\"color:#333\"\u003eIR Wireless Remote Control Module Kits\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan\u003eOrigin\u003c\/span\u003e: \u003cspan style=\"color:#333\"\u003eMainland China\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan\u003eHign-concerned Chemical\u003c\/span\u003e: \u003cspan style=\"color:#333\"\u003enone\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan\u003eCondition\u003c\/span\u003e: \u003cspan style=\"color:#333\"\u003eNew\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan\u003eType\u003c\/span\u003e: \u003cspan style=\"color:#333\"\u003eVoltage Regulator\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan\u003eSupply Voltage\u003c\/span\u003e: \u003cspan style=\"color:#333\"\u003e..\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan\u003eDissipation Power\u003c\/span\u003e: \u003cspan style=\"color:#333\"\u003e..\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan\u003eis_customized\u003c\/span\u003e: \u003cspan style=\"color:#333\"\u003eYes\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan\u003eOperating Temperature\u003c\/span\u003e: \u003cspan style=\"color:#333\"\u003e-40-+85\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan\u003eApplication\u003c\/span\u003e: \u003cspan style=\"color:#333\"\u003eComputer\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan\u003ePackage\u003c\/span\u003e: \u003cspan style=\"color:#333\"\u003eDIY KIT\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan\u003eFunctions\u003c\/span\u003e: \u003cspan style=\"color:#333\"\u003eElectronic Module\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan\u003eRange of application\u003c\/span\u003e: \u003cspan style=\"color:#333\"\u003eSwitch And Sensor For Arduino STM\u003c\/span\u003e\u003c\/p\u003e\u003cdiv class=\"detailmodule_image\"\u003e\n\u003cimg src=\"https:\/\/ae01.alicdn.com\/kf\/Sf205c261beb44f3bb3d00313fe38ea08K.gif\" class=\"detail-desc-decorate-image\"\u003e\u003cimg src=\"https:\/\/ae01.alicdn.com\/kf\/Hc0239a5ea42c4883aae8dbea5618c8873.jpg\" class=\"detail-desc-decorate-image\"\u003e\n\u003c\/div\u003e\r\n\u003cdiv class=\"detailmodule_html\"\u003e\u003cdiv class=\"detail-desc-decorate-richtext\"\u003e\n\u003ch1 style=\"color:#00b0f0;font-family:verdana , arial , helvetica , sans-serif;font-size:3.0em;font-weight:400;line-height:1;margin:0.0px 0.0px 0.5em;\"\u003e\u003cspan style=\"font-family:comic sans ms;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"font-size:24.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003eHot Selling New Infrared IR Wireless Remote Control Module Kits For Arduino Wholesale\u003c\/span\u003e\u003c\/span\u003e\u003c\/h1\u003e\n\u003cp dir=\"ltr\"\u003e\u003c\/p\u003e\n\u003ch1 style=\"color:#00B0F0;font-family:verdana, arial, helvetica, sans-serif;font-size:3em;font-weight:400;line-height:1;margin:0px 0px 0.5em;\"\u003e\u003cspan style=\"color:#FF0000;\"\u003e\u003cstrong\u003e\u003cspan style=\"font-size:28px;\"\u003eThe remote control does not include batteries\u003c\/span\u003e\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h1\u003e\n\u003cp\u003e\u003cspan style=\"font-family:comic sans ms;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"font-size:24.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e\u003cimg src=\"http:\/\/ae01.alicdn.com\/kf\/H56075f7cec0242268278ee09d55c08d7D.jpg\" title=\"详图.jpg\" data-src=\"http:\/\/ae01.alicdn.com\/kf\/H56075f7cec0242268278ee09d55c08d7D.jpg\"\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"color:#ff0000;font-family:verdana , arial , helvetica , sans-serif;font-size:13.0px;line-height:14.0px;margin:0.0px;\"\u003e\u003cspan style=\"font-size:22.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"font-size:inherit;font-style:inherit;font-weight:700;line-height:inherit;margin:0.0px;\"\u003eFeatures:\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cdiv style=\"color:#000000;font-family:verdana , arial , helvetica , sans-serif;font-size:16.0px;line-height:inherit;margin:0.0px;\"\u003eLatest infrared wireless remote control kit consists Mini Slim 38KHz IR remote control and infrared receiver modules, Mini Slim infrared remote control with 17 function keys, firing distances of up to 8 meters, ideal for a variety of devices in the control room. IR receiver module can receive standard 38KHz modulation remote control signal, through programming, you can achieve remote control signal decoding operation, which can produce a variety of remote control robots and interactive works.\u003c\/div\u003e\n\u003cdiv style=\"color:#000000;font-family:arial , helvetica;font-size:13.0px;line-height:inherit;margin:0.0px;\"\u003e\n\u003cdiv style=\"color:#ff0000;margin:0.0px;\"\u003e \u003c\/div\u003e\n\u003cdiv style=\"color:#ff0000;margin:0.0px;\"\u003e\n\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"font-size:24.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003eUltra-thin infrared remote control product parameters:\u003c\/span\u003e\u003c\/span\u003e \u003c\/div\u003e\n\u003cdiv style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e\n\u003cul class=\"list-paddingleft-2\"\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e\u003cspan style=\"font-size:22.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e1 Transmission Distance: 8m above (specific and surroundings, the receiver sensitivity and other factors)\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e\u003cspan style=\"font-size:22.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e2 Effective angle: 60 degrees\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e\u003cspan style=\"font-size:22.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e3 Sticking Material: 0.125mmPET, the effective life of 20,000 times.\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e\u003cspan style=\"font-size:22.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e4. Stable quality, cost-effective\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e\u003cspan style=\"font-size:22.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e5 quiescent current 3-5uA, dynamic current 3-5mA.\u003c\/span\u003e\u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003cli\u003e \u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp style=\"color:#ff0000;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:14.0px;margin:0.0px;\"\u003e \u003c\/p\u003e\n\u003cdiv style=\"font-family:arial;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:23.0px;margin:0.0px;\"\u003e\n\u003cp style=\"font-family:arial , helvetica;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e \u003c\/p\u003e\n\u003cp style=\"color:#333333;margin:0.0px;\"\u003e\u003cspan style=\"font-size:18.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e#include \u0026lt;IRremote.h\u0026gt;\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"color:#333333;margin:0.0px;\"\u003e\u003cspan style=\"font-size:18.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003eint RECV_PIN = 11;\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"color:#333333;margin:0.0px;\"\u003e\u003cspan style=\"font-size:18.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003eIRrecv irrecv(RECV_PIN);\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"color:#333333;margin:0.0px;\"\u003e\u003cspan style=\"font-size:18.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003edecode_results results;\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"color:#333333;margin:0.0px;\"\u003e\u003cspan style=\"font-size:18.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003evoid setup()\u003c\/span\u003e\u003cbr\u003e\u003cspan style=\"font-size:18.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e{\u003c\/span\u003e\u003cbr\u003e\u003cspan style=\"font-size:18.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e  Serial.begin(9600);\u003c\/span\u003e\u003cbr\u003e\u003cspan style=\"font-size:18.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e  irrecv.enableIRIn(); \/\/ Start the receiver\u003c\/span\u003e\u003cbr\u003e\u003cspan style=\"font-size:18.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e}\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"color:#333333;margin:0.0px;\"\u003e\u003cspan style=\"font-size:18.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003evoid loop() {\u003c\/span\u003e\u003cbr\u003e\u003cspan style=\"font-size:18.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e  if (irrecv.decode(\u0026amp;results)) {\u003c\/span\u003e\u003cbr\u003e\u003cspan style=\"font-size:18.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e    Serial.println(results.value, HEX);\u003c\/span\u003e\u003cbr\u003e\u003cspan style=\"font-size:18.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e    irrecv.resume(); \/\/ Receive the next value\u003c\/span\u003e\u003cbr\u003e\u003cspan style=\"font-size:18.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e  }\u003c\/span\u003e\u003cbr\u003e\u003cspan style=\"font-size:18.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e}\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"margin:0.0px;\"\u003e \u003c\/p\u003e\n\u003ch2 style=\"font-size:2.0em;font-style:inherit;font-weight:400;line-height:1;margin:9.0pt 0.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003eStep 1: Assemble Circuit\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e:\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/h2\u003e\n\u003ch2 style=\"font-size:2.0em;font-style:inherit;font-weight:400;line-height:1;margin:9.0pt 0.0pt;padding:0.0pt;\"\u003e \u003c\/h2\u003e\n\u003cp style=\"margin:0.0px;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cimg alt=\"aeProduct.getSubject()\" src=\"http:\/\/ae01.alicdn.com\/kf\/H8e7dac5906d343159d63b5123ee63349T.jpg\" style=\"color:transparent;font-size:0.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;vertical-align:middle;width:auto;\" width=\"800\" data-src=\"http:\/\/ae01.alicdn.com\/kf\/H8e7dac5906d343159d63b5123ee63349T.jpg\"\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"margin:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:12.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003eou will need one Arduino for this. I used a UNO, but just about any Arduino should work. First wire up the infrared receiver that came with your kit. There are 3 wires, PWR, GND, and SIG, I used port 11 for SIG. Note! some readers have reported that their sensor has different wiring, double check it yourself.\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"margin:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:12.5pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"font-family:calibri;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e \u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2 style=\"font-size:2.0em;font-style:inherit;font-weight:400;line-height:1;margin:9.0pt 0.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003eStep 2: Download IR Library\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/h2\u003e\n\u003ch2 style=\"font-size:2.0em;font-style:inherit;font-weight:400;line-height:1;margin:0.0px 0.0px 0.75em;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cimg alt=\"aeProduct.getSubject()\" src=\"http:\/\/ae01.alicdn.com\/kf\/He2799789232a49cfaebb8644e18699d7k.jpg\" style=\"color:transparent;font-size:0.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;vertical-align:middle;width:auto;\" width=\"634\" data-src=\"http:\/\/ae01.alicdn.com\/kf\/He2799789232a49cfaebb8644e18699d7k.jpg\"\u003e\u003c\/span\u003e\u003c\/h2\u003e\n\u003ch2 style=\"font-size:2.0em;font-style:inherit;font-weight:400;line-height:1;margin:0.0px 0.0px 0.75em;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cimg alt=\"aeProduct.getSubject()\" src=\"http:\/\/ae01.alicdn.com\/kf\/H3b3cce1af9b6441692a96fed92fa8e10N.jpg\" style=\"color:transparent;font-size:0.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;vertical-align:middle;width:auto;\" width=\"450\" data-src=\"http:\/\/ae01.alicdn.com\/kf\/H3b3cce1af9b6441692a96fed92fa8e10N.jpg\"\u003e\u003c\/span\u003e\u003c\/h2\u003e\n\u003ch2 style=\"font-size:2.0em;font-style:inherit;font-weight:400;line-height:1;margin:9.0pt 0.0pt;padding:0.0pt;\"\u003e \u003c\/h2\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:12.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003eIn order to reverse engineer the remote and obtain the codes for each button we are going to need to download and install the following library.\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e\u003cspan style=\"margin:0.0px;\"\u003e\u003ca\u003e\u003cspan style=\"color:#e86c00;font-size:12.5pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"font-family:times new roman;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003ehttp:\/\/github.com\/shirriff\/Arduino-IRremote \u003c\/span\u003e\u003c\/span\u003e\u003c\/a\u003e\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e\u003cspan style=\"color:#333333;font-size:12.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003eExtract the file in your libraries directory. e.g.  ( C:\\electronics\\arduino-1.0.5\\libraries )\u003c\/span\u003e\u003cbr\u003e\u003cspan style=\"color:#333333;font-size:12.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003enote: I had to rename the library because the name was too long, I just renamed it to IR.\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2 style=\"font-size:2.0em;font-style:inherit;font-weight:400;line-height:1;margin:9.0pt 0.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003eStep 3: Add Library to sketch\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/h2\u003e\n\u003ch2 style=\"font-size:2.0em;font-style:inherit;font-weight:400;line-height:1;margin:9.0pt 0.0pt;padding:0.0pt;\"\u003e \u003c\/h2\u003e\n\u003ch2 style=\"font-size:2.0em;font-style:inherit;font-weight:400;line-height:1;margin:9.0pt 0.0pt;padding:0.0pt;\"\u003e \u003c\/h2\u003e\n\u003cp style=\"margin:0.0px;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cimg alt=\"aeProduct.getSubject()\" src=\"http:\/\/ae01.alicdn.com\/kf\/Hf84540ad6c0945e2ad6d8bfac8be37750.jpg\" style=\"color:transparent;font-size:0.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;vertical-align:middle;width:auto;\" width=\"620\" data-src=\"http:\/\/ae01.alicdn.com\/kf\/Hf84540ad6c0945e2ad6d8bfac8be37750.jpg\"\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:12.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003eWith the IR folder ( or whatever you named it) now in your libraries directory, we can import it into a new sketch.\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e\u003cspan style=\"color:#333333;font-size:12.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003eStart a new sketch and the Click  \u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e\u003cspan style=\"color:#333333;font-size:12.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e        Sketch-\u0026gt;Import Library-\u0026gt;IR.\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2 style=\"font-size:2.0em;font-style:inherit;font-weight:400;line-height:1;margin:9.0pt 0.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003eStep 4: Paste Code and compile\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/h2\u003e\n\u003ch2 style=\"font-size:2.0em;font-style:inherit;font-weight:400;line-height:1;margin:9.0pt 0.0pt;padding:0.0pt;\"\u003e \u003c\/h2\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:12.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003ePaste the following code into the new sketch. Then verify it compiles.\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e#include \u0026lt;IRemote.h\u0026gt;\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003eint RECV_PIN = 11;\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003eIRrecv irrecv(RECV_PIN);\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003edecode_results results;\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt 15.0pt 15.0pt 0.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e \u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003evoid setup()\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e{\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e  Serial.begin(9600);\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e  irrecv.enableIRIn(); \/\/ Start the receiver\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e}\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e \u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003evoid loop()\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e{\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e  if (irrecv.decode(\u0026amp;results))\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e    {\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e     Serial.println(results.value, HEX);\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e     irrecv.resume(); \/\/ Receive the next value\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e    }\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:10.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003e}\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2 style=\"font-size:2.0em;font-style:inherit;font-weight:400;line-height:1;margin:9.0pt 0.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003eStep 5: Open the serial monitor\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/h2\u003e\n\u003ch2 style=\"font-size:2.0em;font-style:inherit;font-weight:400;line-height:1;margin:9.0pt 0.0pt;padding:0.0pt;\"\u003e \u003c\/h2\u003e\n\u003ch2 style=\"font-size:2.0em;font-style:inherit;font-weight:400;line-height:1;margin:9.0pt 0.0pt;padding:0.0pt;\"\u003e \u003c\/h2\u003e\n\u003cp style=\"margin:0.0px;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cimg alt=\"aeProduct.getSubject()\" src=\"http:\/\/ae01.alicdn.com\/kf\/H0c04c2196d3c424cb2c352f58ed40c81G.jpg\" style=\"color:transparent;font-size:0.0px;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;vertical-align:middle;width:auto;\" width=\"696\" data-src=\"http:\/\/ae01.alicdn.com\/kf\/H0c04c2196d3c424cb2c352f58ed40c81G.jpg\"\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:18.0pt;margin:15.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cspan style=\"color:#333333;font-size:12.0pt;font-weight:normal;line-height:inherit;margin:0.0px;\"\u003eConnect the Arduino to your computer using the usb port, then upload the sketch. Open up the Serial Monitor, get the remote and press the buttons. Some hex codes should appear on the Serial Monitor.\u003c\/span\u003e\u003cbr\u003e\u003cspan style=\"font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003eStep 6: Record button codes\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003ch2 style=\"font-size:2.0em;font-style:inherit;font-weight:400;line-height:1;margin:9.0pt 0.0pt;padding:0.0pt;\"\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e  \u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003eStep 7: Works on any remote!\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/h2\u003e\n\u003cp\u003e\u003cspan style=\"color:#666666;margin:0.0px;\"\u003e\u003cspan style=\"font-weight:700;\"\u003e\u003cspan style=\"color:#ff0000;font-size:20.0pt;line-height:inherit;margin:0.0px;\"\u003e\u003cimg src=\"http:\/\/ae01.alicdn.com\/kf\/H4012982a08494b9a99d7f0590574e437Y.jpg\" title=\"副图4.jpg\" data-src=\"http:\/\/ae01.alicdn.com\/kf\/H4012982a08494b9a99d7f0590574e437Y.jpg\"\u003e\u003cimg src=\"http:\/\/ae01.alicdn.com\/kf\/Hfb22292f24144fdf85f737b8db355986R.jpg\" title=\"副图3.jpg\" data-src=\"http:\/\/ae01.alicdn.com\/kf\/Hfb22292f24144fdf85f737b8db355986R.jpg\"\u003e\u003cimg src=\"http:\/\/ae01.alicdn.com\/kf\/H9eaaddb21e6d4dd7a3c6b95e8ea74dceC.jpg\" title=\"副图2.jpg\" data-src=\"http:\/\/ae01.alicdn.com\/kf\/H9eaaddb21e6d4dd7a3c6b95e8ea74dceC.jpg\"\u003e\u003cimg src=\"http:\/\/ae01.alicdn.com\/kf\/H800d9d84f00a4f01b1c75ad1a3d59740G.jpg\" title=\"副图1.jpg\" data-src=\"http:\/\/ae01.alicdn.com\/kf\/H800d9d84f00a4f01b1c75ad1a3d59740G.jpg\"\u003e\u003cimg src=\"http:\/\/ae01.alicdn.com\/kf\/H28548d971fa94a9188e10aa77f25a764f.jpg\" title=\"副图6.jpg\" data-src=\"http:\/\/ae01.alicdn.com\/kf\/H28548d971fa94a9188e10aa77f25a764f.jpg\"\u003e\u003cimg src=\"http:\/\/ae01.alicdn.com\/kf\/Hf1b07e7955684bb9852f09f4a2153b65D.jpg\" title=\"副图5.jpg\" data-src=\"http:\/\/ae01.alicdn.com\/kf\/Hf1b07e7955684bb9852f09f4a2153b65D.jpg\"\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003c\/div\u003e\n\u003ch1 style=\"color:#00b0f0;font-family:verdana , arial , helvetica , sans-serif;font-size:3.0em;font-weight:400;line-height:1;margin:0.0px 0.0px 0.5em;\"\u003e \u003c\/h1\u003e\n\u003cdiv style=\"color:#000000;font-family:arial , helvetica;font-size:13.0px;line-height:inherit;margin:0.0px;\"\u003e\u003cdiv style=\"font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;margin:0.0px;\"\u003e\u003cdiv style=\"font-family:arial;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:23.0px;margin:0.0px;\"\u003e\u003cp\u003e \u003c\/p\u003e\u003c\/div\u003e\u003c\/div\u003e\u003c\/div\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003c\/div\u003e\u003c\/div\u003e\r\n","brand":"East Supplier Platform","offers":[{"title":"Default Title","offer_id":46454788227295,"sku":"32988392920-Default Title","price":1.66,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0503\/6412\/1244\/files\/Sbc97abc428fd47acbe4357363d1a9ec0s.webp?v=1731458103","url":"https:\/\/eastsupplier.cn\/products\/tzt-1lot-infrared-ir-wireless-remote-control-module-kits-diy-kit-hx1838-for-arduino-raspberry-pi","provider":"EastSupplier Platform","version":"1.0","type":"link"}