{"id":300,"date":"2018-06-09T12:28:23","date_gmt":"2018-06-09T12:28:23","guid":{"rendered":"http:\/\/randomnerdtutorials.wordpress.com\/?p=300"},"modified":"2024-12-17T19:22:31","modified_gmt":"2024-12-17T19:22:31","slug":"arduino-ir-remote-control","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/arduino-ir-remote-control\/","title":{"rendered":"Arduino &#8211; Control LEDs with IR Remote Control"},"content":{"rendered":"\n<p>In this project you\u2019ll use an infrared&nbsp;(IR)&nbsp;receiver and an Arduino to control 3 LEDs with a remote control. This is useful to re-use old remote controls or give some functionally to some of your remote&#8217;s buttons.<br><\/p>\n\n\n\n<!--more-->\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"700\" height=\"410\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/control-led-with-remote.jpg?resize=700%2C410&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" class=\"wp-image-73605\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/control-led-with-remote.jpg?w=700&amp;quality=100&amp;strip=all&amp;ssl=1 700w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/control-led-with-remote.jpg?resize=300%2C176&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/figure><\/div>\n\n\n<p class=\"rntbox rntclgray\"><em>Updated 17 December 2024<\/em><\/p>\n\n\n\n<p>This project is divided into two parts:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>You\u2019ll decode the\u00a0IR signals transmitted by your remote control<\/li>\n\n\n\n<li>You\u2019ll use that info to perform a task with your Arduino (control 3 LEDs)<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Parts required<\/h2>\n\n\n\n<p>To follow this project you need the following parts:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"700\" height=\"459\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/control-leds-remote-control-infrared-1.jpg?resize=700%2C459&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" class=\"wp-image-73592\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/control-leds-remote-control-infrared-1.jpg?w=700&amp;quality=100&amp;strip=all&amp;ssl=1 700w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/control-leds-remote-control-infrared-1.jpg?resize=300%2C197&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/figure><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/compatible-arduino-uno-r3-board\/\" target=\"_blank\" rel=\"noopener noreferrer\">Arduino UNO<\/a>\u00a0\u2013 read\u00a0<a href=\"https:\/\/makeradvisor.com\/best-arduino-starter-kits\/\" target=\"_blank\" rel=\"noopener noreferrer\">Best Arduino Starter Kits<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/mb-102-solderless-breadboard-830-points\/\" target=\"_blank\" rel=\"noopener noreferrer\">1x Breadboard<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/ebay.to\/2bOAUnB\" target=\"_blank\" rel=\"noopener noreferrer\">1x Remote control<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/ir-receiver-38khz-tsop4838\/\" target=\"_blank\" rel=\"noopener noreferrer\">1x IR receiver ( I\u2019ll be using TSOP4838)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/3mm-5mm-leds-kit-storage-box\/\" target=\"_blank\" rel=\"noopener noreferrer\">3x LED\u2019s<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/resistors-kits\/\" target=\"_blank\" rel=\"noopener noreferrer\">3x 220 Ohm resistors<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/makeradvisor.com\/tools\/jumper-wires-kit-120-pieces\/\" target=\"_blank\" rel=\"noopener noreferrer\">Jumper wires<\/a><\/li>\n<\/ul>\n\n\n<p>You can use the preceding links or go directly to <a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\">MakerAdvisor.com\/tools<\/a> to find all the parts for your projects at the best price!<\/p><p style=\"text-align:center;\"><a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/header-200.png?w=1200&#038;quality=100&#038;strip=all&#038;ssl=1\"><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introducing the Infrared (IR) Receiver<\/h2>\n\n\n\n<p>The infrared receiver is the component shown in the figure below. This is the TSOP4838.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/ir-receiver-labels.jpg?w=1200&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"IR receiver labels\" class=\"wp-image-301\" title=\"\"\/><\/figure><\/div>\n\n\n<p><strong>Infrared receiver pins:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First pin: Vout<\/li>\n\n\n\n<li>Second pin: GND<\/li>\n\n\n\n<li>Third pin: Vcc<\/li>\n<\/ul>\n\n\n\n<p>When you press your remote control, it sends infrared modulated signals. These signals contain information that your receiver collects.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"507\" height=\"177\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/infrared-remote-control.png?resize=507%2C177&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" class=\"wp-image-73590\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/infrared-remote-control.png?w=507&amp;quality=100&amp;strip=all&amp;ssl=1 507w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/infrared-remote-control.png?resize=300%2C105&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 507px) 100vw, 507px\" \/><\/figure><\/div>\n\n\n<p>Each button sends specific information. So, we can assign that&nbsp;information to a specific button.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Decode the IR signals<\/h2>\n\n\n\n<p>In this part of the project you need to decode the IR signals associated with each button.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Schematics<\/h3>\n\n\n\n<p>Connect the IR receiver accordingly to the schematics below.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"696\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/decode-IR-signals_bb-768x696.png?resize=768%2C696&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" class=\"wp-image-73593\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/decode-IR-signals_bb-768x696.png?resize=768%2C696&amp;quality=100&amp;strip=all&amp;ssl=1 768w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/decode-IR-signals_bb-768x696.png?resize=300%2C272&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">Code<\/h3>\n\n\n\n<p>To control the IR receiver, you need to install the<strong>&nbsp;<a href=\"https:\/\/github.com\/z3t0\/Arduino-IRremote\" target=\"_blank\" rel=\"noopener noreferrer\">IRremote Library<\/a><\/strong>&nbsp; in the Arduino IDE.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Installing the IRremote library<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Sketch <\/strong>> <strong>Include Library<\/strong> > <strong>Manage Libraries<\/strong>.<\/li>\n\n\n\n<li>The Library Manager should open at the left sidebar of the IDE. Search for <strong>IRremote<\/strong>.<\/li>\n\n\n\n<li>Install the library by shirriff. We&#8217;re using version 4.4.1.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/06\/install-IR-remote-library-arduino-ide.png?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"366\" height=\"306\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/06\/install-IR-remote-library-arduino-ide.png?resize=366%2C306&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Install IR Remote Library Arduino IDE\" class=\"wp-image-164761\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/06\/install-IR-remote-library-arduino-ide.png?w=366&amp;quality=100&amp;strip=all&amp;ssl=1 366w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/06\/install-IR-remote-library-arduino-ide.png?resize=300%2C251&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 366px) 100vw, 366px\" \/><\/a><\/figure><\/div>\n\n\n<p>Copy the following code to your Arduino IDE, and upload it to your Arduino board. Make sure that you have the right board and COM port selected.<\/p>\n\n\n<pre style=\"max-height: 40em; margin-bottom: 20px;\"><code class=\"language-c\">#include &lt;IRremote.h&gt;\n\nconst int RECV_PIN = 11;\n\nvoid setup() {\n  Serial.begin(9600);\n  IrReceiver.begin(RECV_PIN, ENABLE_LED_FEEDBACK); \/\/ Initialize the receiver\n}\n\nvoid loop() {\n  if (IrReceiver.decode()) { \/\/ Check if data is received\n    \/\/ Filter out unknown protocols\n    if (IrReceiver.decodedIRData.protocol == UNKNOWN) {\n      IrReceiver.resume(); \/\/ Resume receiving for the next signal\n      return; \/\/ Skip this loop iteration\n    }\n\n    \/\/ Print only valid data\n    IrReceiver.printIRResultShort(&amp;Serial); \/\/ Print complete received data in one line\n\n    IrReceiver.resume(); \/\/ Resume receiving for the next signal\n  }\n  delay(100);\n}\n<\/code><\/pre>\n\t<p style=\"text-align:center\"><a class=\"rntwhite\" href=\"https:\/\/github.com\/RuiSantosdotme\/Arduino-Projects\/raw\/master\/code\/3a_ir_receiver_demo.ino\" target=\"_blank\">View raw code<\/a><\/p>\n\n\n\n<p>Open the serial monitor at a baud rate of 9600.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/02\/serial-monitor-logo-arduino-ide-2.png?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"41\" height=\"39\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2024\/02\/serial-monitor-logo-arduino-ide-2.png?resize=41%2C39&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" class=\"wp-image-148549\"\/><\/a><\/figure><\/div>\n\n\n<p>In this project you want to control 3 LEDs. Choose 6 keys on the remote control for the following tasks:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>LED1 \u2013 ON<\/li>\n\n\n\n<li>LED1 \u2013 OFF<\/li>\n\n\n\n<li>LED2 \u2013 ON<\/li>\n\n\n\n<li>LED2 \u2013 OFF<\/li>\n\n\n\n<li>LED3 \u2013 ON<\/li>\n\n\n\n<li>LED3 \u2013 OFF<\/li>\n<\/ol>\n\n\n\n<p>Press, for example, the button number 1 of your remote control. You should get some information about that key in the Serial Monitor. Save the &#8220;command&#8221; value for that key.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/06\/arduino-IR-remote-Key-command.png?quality=100&#038;strip=all&#038;ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"294\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/06\/arduino-IR-remote-Key-command.png?resize=709%2C294&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Arduino IDE IRRemote Key command\" class=\"wp-image-164762\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/06\/arduino-IR-remote-Key-command.png?w=709&amp;quality=100&amp;strip=all&amp;ssl=1 709w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2018\/06\/arduino-IR-remote-Key-command.png?resize=300%2C124&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 709px) 100vw, 709px\" \/><\/a><\/figure><\/div>\n\n\n<p>Do the same for the other buttons.<\/p>\n\n\n\n<p>Write down the code associated with each button, because you\u2019ll need that information later.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Building the final circuit<\/h2>\n\n\n\n<p>In this part, you\u2019ll build the circuit with three LEDs that will be controlled using your remote.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Schematics<\/h3>\n\n\n\n<p>Assemble all the parts by following the schematics below.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"552\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/Control-leds-with-remote-control_bb.png?resize=700%2C552&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" class=\"wp-image-73604\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/Control-leds-with-remote-control_bb.png?w=700&amp;quality=100&amp;strip=all&amp;ssl=1 700w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/Control-leds-with-remote-control_bb.png?resize=300%2C237&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">Code<\/h2>\n\n\n\n<p>Now, grab the command values you captured\u00a0in the previous step for each button. You&#8217;ll need to insert them on the following code.<\/p>\n\n\n<pre style=\"max-height: 40em; margin-bottom: 20px;\"><code class=\"language-c\">\/*\n * Modified by Rui Santos, http:\/\/randomnerdtutorialscom\n * based on IRremote Library - Ken Shirriff\n*\/\n \n#include &lt;IRremote.h&gt;\n\nconst int RECV_PIN = 11;\n\nconst int bluePin = 10;\nconst int greenPin = 9;\nconst int yellowPin = 8;\n\nvoid setup() {\n  Serial.begin(9600); \/\/ Start serial communication\n  IrReceiver.begin(RECV_PIN, ENABLE_LED_FEEDBACK); \/\/ Start the receiver\n\n  pinMode(bluePin, OUTPUT);    \/\/ Set the pins as output\n  pinMode(greenPin, OUTPUT);\n  pinMode(yellowPin, OUTPUT);\n}\n\nvoid loop() {\n  \/\/ Decode the infrared input\n  if (IrReceiver.decode()) {\n    if (IrReceiver.decodedIRData.protocol == UNKNOWN) {\n      IrReceiver.resume(); \/\/ Resume receiving for the next signal\n      return; \/\/ Skip this loop iteration\n    }\n\n    \/\/ Print the received command for debugging\n    IrReceiver.printIRResultShort(&amp;Serial);\n\n    switch (IrReceiver.decodedIRData.command) {\n      case 0x01: \/\/ Command to turn ON the blue LED\n        digitalWrite(bluePin, HIGH);\n        Serial.println(&quot;Blue LED ON&quot;);\n        break;\n\n      case 0x02: \/\/ Command to turn ON the green LED\n        digitalWrite(greenPin, HIGH);\n        Serial.println(&quot;Green LED OFF&quot;);\n        break;\n\n      case 0x03: \/\/ Command to turn ON the yellow LED\n        digitalWrite(yellowPin, HIGH);\n        Serial.println(&quot;Yellow LED ON&quot;);\n        break;\n\n      case 0x04: \/\/ Command to turn OFF the blue LED\n        digitalWrite(bluePin, LOW);\n        Serial.println(&quot;Blue LED OFF&quot;);\n        break;\n\n      case 0x05: \/\/ Command to turn OFF the green LED\n        digitalWrite(greenPin, LOW);\n        Serial.println(&quot;Green LED OFF&quot;);\n        break;\n\n      case 0x06: \/\/ Command to turn OFF the yellow LED\n        digitalWrite(yellowPin, LOW);\n        Serial.println(&quot;Yellow LED OFF&quot;);\n        break;\n\n      default: \/\/ Unknown command\n        Serial.println(&quot;Unknown Command&quot;);\n        break;\n    }\n\n    IrReceiver.resume(); \/\/ Receive the next value\n  }\n  delay(10);\n}\n<\/code><\/pre>\n\t<p style=\"text-align:center\"><a class=\"rntwhite\" href=\"https:\/\/github.com\/RuiSantosdotme\/Arduino-Projects\/raw\/master\/code\/3b_control_leds_remote_control.ino\" target=\"_blank\">View raw code<\/a><\/p>\n\n\n\n<p>After adding the commands for each key in the previous code, you can upload it to your Arduino IDE.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Demonstration<\/h2>\n\n\n\n<p>In the end, you can control each LED individually using the buttons of your remote control.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"282\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/control-leds-with-remote-control.gif?resize=480%2C282&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"\" class=\"wp-image-73607\"\/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">Watch the video demonstration<\/h2>\n\n\n<p style=\"text-align:center\"><iframe width=\"720\" height=\"405\" src=\"https:\/\/www.youtube.com\/embed\/lQ7K8Jp3Jns?rel=0\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Wrapping Up<\/h2>\n\n\n\n<p>This is a great project to learn about the IR receiver. There are endless possibilities for what you can do with it.<\/p>\n\n\n\n<p>For example, you can replace those LEDs with a relay to control your house appliances. Associate a button to turn off or turn on all the LEDs at the same time, etc.<\/p>\n\n\n\n<p>This can be particularly useful because some remotes have a bunch of buttons that you never use. So, why not use them to do something useful?<\/p>\n\n\n\n<p><em>This is an excerpt from our course: <a href=\"https:\/\/randomnerdtutorials.com\/arduino-step-by-step-projects\/\" target=\"_blank\" rel=\"noopener noreferrer\">Arduino Step-by-step projects<\/a>. If you like Arduino and you want to build more projects, we recommend enrolling in the <a href=\"https:\/\/randomnerdtutorials.com\/arduino-step-by-step-projects\/\" target=\"_blank\" rel=\"noopener noreferrer\">Arduino Step-by-step projects course<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this project you\u2019ll use an infrared&nbsp;(IR)&nbsp;receiver and an Arduino to control 3 LEDs with a remote control. This is useful to re-use old remote controls or give some functionally &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Arduino &#8211; Control LEDs with IR Remote Control\" class=\"read-more button\" href=\"https:\/\/randomnerdtutorials.com\/arduino-ir-remote-control\/#more-300\" aria-label=\"Read more about Arduino &#8211; Control LEDs with IR Remote Control\">CONTINUE READING \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":73605,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[303,267,2,264,10],"tags":[241,32,61,90,91,97,127,128,161,163],"class_list":["post-300","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-0-arduino","category-arduino-project","category-arduino","category-project","category-a-tutorials","tag-arduino","tag-beginner","tag-easy","tag-ir","tag-ir-library","tag-leds","tag-receiver","tag-remote-control","tag-transmitter","tag-tutorial"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2013\/02\/control-led-with-remote.jpg?fit=700%2C410&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=300"}],"version-history":[{"count":6,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/300\/revisions"}],"predecessor-version":[{"id":164773,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/300\/revisions\/164773"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/73605"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}