{"id":507,"date":"2014-03-19T00:03:24","date_gmt":"2014-03-19T00:03:24","guid":{"rendered":"http:\/\/www.analysir.com\/blog\/?p=507"},"modified":"2019-05-12T19:05:41","modified_gmt":"2019-05-12T18:05:41","slug":"air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino","status":"publish","type":"post","link":"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/","title":{"rendered":"Air Conditioners: Recording long Infrared Remote control signals with Arduino"},"content":{"rendered":"<p>hRecently we have been helping several members on the <a href=\"http:\/\/forum.arduino.cc\/\" target=\"_blank\" rel=\"noopener noreferrer\">Arduino forum<\/a> to record and playback their remote control signals from their Air Conditioners. These signals are typically much longer than those of TVs or common media devices. The 2 most popular libraries for Arduino, IRremote &amp; IRlib are excellent, but have some limitations which we have covered in a <a title=\"Arduino: 10 common pitfalls with Infrared Remote Control\" href=\"https:\/\/www.analysir.com\/blog\/2014\/03\/05\/arduino-10-common-pitfalls-infrared-remote-control\/\" target=\"_blank\" rel=\"noopener noreferrer\">previous post<\/a>. In this post we address one particular issue that is proving challenging to users.<\/p>\n<figure id=\"attachment_509\" aria-describedby=\"caption-attachment-509\" style=\"width: 420px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/03\/airconremote.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-509\" src=\"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/03\/airconremote.png\" alt=\"airconremote\" width=\"420\" height=\"315\" srcset=\"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/03\/airconremote.png 600w, https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/03\/airconremote-300x225.png 300w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/a><figcaption id=\"caption-attachment-509\" class=\"wp-caption-text\">Long Infrared signals prove challenging for Arduino users<\/figcaption><\/figure>\n<p><!--more--><strong>The Problem:<\/strong> The IRLib library uses a an 8-bit byte value to manage the number of the marks and spaces of an IR signal. This means that the maximum length of a signal recorded can be up to 255 marks and spaces or circa 126 bits. This is sufficient for a reasonable number of Air Conditioners, which is great. However, both libraries also define a constant to limit the maximum number of recorded mark &amp; spaces to 100, which effectively excludes most Air Conditioners. I suspect this is to allow sufficient SRAM available for the remainder of a user&#8217;s sketch, which makes sense.<\/p>\n<p>So the first obstacle these unfortunate users experience is the &#8216;100 RAWBUF limit&#8217;. It is possible to circumvent this limit by increasing the value of &#8216;RAWBUF&#8217;\u00a0 in the range of 230-&gt;255 within the library itself. This fixes things for at least 50% (our guesstimate) of Air Conditioners. The problem for the remainder of users is that their Air Conditioner uses a signal which is longer than 255 marks &amp; spaces and it is not possible to record these signals with the libraries as currently designed. To be fair, the authors are most likely aware of this limitation and have decided to design for the majority of users.<\/p>\n<p>However, the problem remains &#8211; how to record these long signals and not run out of available SRAM, with the library included. We have recently enhanced the AnalysIR firmware which allows recording very long signals and automatic code generation in &#8216;C&#8217; for both IRLib &amp; IRremote users. This firmware is currently only available to those who have a registered copy of AnalysIR.<\/p>\n<p><strong>The Solution:<\/strong> Today, we have decided to make a sketch available which will allow users to record very long IR signals with up to 800+ marks &amp; spaces and output them in a format similar to IRremote&#8217;s dump output. Users can then take these timings and build a &#8216;sendRaw&#8217; command using either library to replay their signal. <em>(Please refer to the website for\u00a0 each library for instructions on how to send RAW signals &#8211; links below)<\/em><\/p>\n<p>As a thank you to the Arduino community\u00a0 for ongoing inspiration, we are making this sketch freely available . The only restriction is that AnalysIR must be credited in any source code or derivative along with a link to this blog. We would also appreciate a link from your website, blog or forum.<\/p>\n<p><strong>UPDATE Nov-29-2014:<br \/>\n<\/strong><em>In case you experience issues with this script, please read the following:<\/em><br \/>\n<em>Arduino <strong>Yun &amp; Leonardo<\/strong> have <strong>INT0 on pin 3<\/strong> instead of pin 2 as in the sketch. So just connect the IR receiver to pin 3 on the Yun or Leonardo.<\/em>\u00a0\u00a0\u00a0\u00a0 \ud83d\ude42<\/p>\n<p><strong>UPDATE Aug-22-2017:<br \/>\n<\/strong><em>In case you experience issues with this script, please read the following:<\/em><br \/>\n<em>Arduino <strong>Mega1280\/2560<\/strong> have <strong>INT0 on pin 21<\/strong> instead of pin 2 as in the sketch. So just connect the IR receiver to pin 21 on the Arduino Mega1280\/2560.<\/em>\u00a0\u00a0\u00a0\u00a0 \ud83d\ude42<\/p>\n<p><strong>UPDATE May-12-2019:<br \/>\n<\/strong><em>Updated sketch for attach &amp; detach interrupt function to use digitalPinToInterrupt. This will help support more Arduino Platforms. Note the pin you select must support Arduino Interrupts.<\/em> \u00a0\u00a0 \ud83d\ude42<\/p>\n<p>For any other platforms, please adjust the firmware as appropriate.<\/p>\n<p>A copy of the sketch may be <a title=\"Download sketch here\" href=\"https:\/\/www.analysir.com\/blog\/?attachment_id=515\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>downloaded here<\/strong>. <\/a><\/p>\n<p>If you found this article or sketch useful, leave a comment below or share via social media.<\/p>\n<p><a title=\"Get AnalysIR\" href=\"https:\/\/www.analysir.com\/blog\/get-analysir\/\">\u00a0<strong>Get your own copy of AnalysIR<\/strong><\/a> or check out our latest range of MakeIR module for remote control<strong><a href=\"https:\/\/www.analysir.com\/blog\/shop\/\" target=\"_blank\" rel=\"noopener noreferrer\"> in our webshop<\/a>.<\/strong><\/p>\n<p>External Links:<br \/>\n<a title=\"IRLib\" href=\"http:\/\/tech.cyborg5.com\/irlib\/\" target=\"_blank\" rel=\"noopener noreferrer\">IRLib<\/a><br \/>\n<a title=\"IRremote\" href=\"http:\/\/www.righto.com\/2009\/08\/multi-protocol-infrared-remote-library.html\" target=\"_blank\" rel=\"noopener noreferrer\">IRremote<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>hRecently we have been helping several members on the Arduino forum to record and playback their remote control signals from their Air Conditioners. These signals are typically much longer than those of TVs or common media devices. The 2 most popular libraries for Arduino, IRremote &amp; IRlib are excellent, but have some limitations which we &hellip; <a href=\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Air Conditioners: Recording long Infrared Remote control signals with Arduino<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","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":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1,10,15],"tags":[197,198,4,285,7,97,6,5,200,199,201,111],"class_list":["post-507","post","type-post","status-publish","format-standard","hentry","category-analysir-blog","category-arduino","category-analysir-ir-infrared-projects","tag-air-conditioner","tag-aircon","tag-analysir","tag-arduino","tag-infrared","tag-ir-signals","tag-irlib","tag-irremote","tag-marks","tag-rawbuf","tag-sketch","tag-spaces"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Air Conditioner Record long Infrared Remote control signals - Arduino<\/title>\n<meta name=\"description\" content=\"Recently we have been helping several members on the Arduino forum to record and playback their remote control signals from their Air Conditioners.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Air Conditioner Record long Infrared Remote control signals - Arduino\" \/>\n<meta property=\"og:description\" content=\"Recently we have been helping several members on the Arduino forum to record and playback their remote control signals from their Air Conditioners.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/\" \/>\n<meta property=\"og:site_name\" content=\"AnalysIR Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/chris.analysir\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/chris.analysir\" \/>\n<meta property=\"article:published_time\" content=\"2014-03-19T00:03:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-12T18:05:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/03\/airconremote.png\" \/>\n<meta name=\"author\" content=\"User Two\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@AnalysIR\" \/>\n<meta name=\"twitter:site\" content=\"@analysir\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"User Two\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/\"},\"author\":{\"name\":\"User Two\",\"@id\":\"https:\/\/www.analysir.com\/blog\/#\/schema\/person\/16a6d94c57d4f2629096ab80a7b36e13\"},\"headline\":\"Air Conditioners: Recording long Infrared Remote control signals with Arduino\",\"datePublished\":\"2014-03-19T00:03:24+00:00\",\"dateModified\":\"2019-05-12T18:05:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/\"},\"wordCount\":669,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.analysir.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/03\/airconremote.png\",\"keywords\":[\"Air Conditioner\",\"AirCon\",\"AnalysIR\",\"Arduino\",\"Infrared\",\"IR signals\",\"IRLib\",\"IRremote\",\"marks\",\"RAWBUF\",\"sketch\",\"spaces\"],\"articleSection\":[\"AnalysIR Blog\",\"Arduino\",\"Projects\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/\",\"url\":\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/\",\"name\":\"Air Conditioner Record long Infrared Remote control signals - Arduino\",\"isPartOf\":{\"@id\":\"https:\/\/www.analysir.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/03\/airconremote.png\",\"datePublished\":\"2014-03-19T00:03:24+00:00\",\"dateModified\":\"2019-05-12T18:05:41+00:00\",\"description\":\"Recently we have been helping several members on the Arduino forum to record and playback their remote control signals from their Air Conditioners.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#primaryimage\",\"url\":\"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/03\/airconremote.png\",\"contentUrl\":\"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/03\/airconremote.png\",\"width\":600,\"height\":450},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.analysir.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Air Conditioners: Recording long Infrared Remote control signals with Arduino\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.analysir.com\/blog\/#website\",\"url\":\"https:\/\/www.analysir.com\/blog\/\",\"name\":\"AnalysIR Blog\",\"description\":\"All about infrared remote control, IR decoding and more\",\"publisher\":{\"@id\":\"https:\/\/www.analysir.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.analysir.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.analysir.com\/blog\/#organization\",\"name\":\"AnalysIR\",\"url\":\"https:\/\/www.analysir.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.analysir.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2015\/10\/AnalysIR_and_IRToy.png\",\"contentUrl\":\"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2015\/10\/AnalysIR_and_IRToy.png\",\"width\":200,\"height\":200,\"caption\":\"AnalysIR\"},\"image\":{\"@id\":\"https:\/\/www.analysir.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/chris.analysir\",\"https:\/\/x.com\/analysir\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.analysir.com\/blog\/#\/schema\/person\/16a6d94c57d4f2629096ab80a7b36e13\",\"name\":\"User Two\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/8167f41ca01c8bf0646f87048aaf9e8f90e7d0b65650c0f8eaaf8002b288d6cb?s=96&d=identicon&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8167f41ca01c8bf0646f87048aaf9e8f90e7d0b65650c0f8eaaf8002b288d6cb?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8167f41ca01c8bf0646f87048aaf9e8f90e7d0b65650c0f8eaaf8002b288d6cb?s=96&d=identicon&r=g\",\"caption\":\"User Two\"},\"sameAs\":[\"http:\/\/www.AnalysIR.com\",\"https:\/\/www.facebook.com\/chris.analysir\",\"https:\/\/x.com\/AnalysIR\"],\"url\":\"https:\/\/www.analysir.com\/blog\/author\/analysir\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Air Conditioner Record long Infrared Remote control signals - Arduino","description":"Recently we have been helping several members on the Arduino forum to record and playback their remote control signals from their Air Conditioners.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/","og_locale":"en_US","og_type":"article","og_title":"Air Conditioner Record long Infrared Remote control signals - Arduino","og_description":"Recently we have been helping several members on the Arduino forum to record and playback their remote control signals from their Air Conditioners.","og_url":"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/","og_site_name":"AnalysIR Blog","article_publisher":"https:\/\/www.facebook.com\/chris.analysir","article_author":"https:\/\/www.facebook.com\/chris.analysir","article_published_time":"2014-03-19T00:03:24+00:00","article_modified_time":"2019-05-12T18:05:41+00:00","og_image":[{"url":"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/03\/airconremote.png","type":"","width":"","height":""}],"author":"User Two","twitter_card":"summary_large_image","twitter_creator":"@AnalysIR","twitter_site":"@analysir","twitter_misc":{"Written by":"User Two","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#article","isPartOf":{"@id":"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/"},"author":{"name":"User Two","@id":"https:\/\/www.analysir.com\/blog\/#\/schema\/person\/16a6d94c57d4f2629096ab80a7b36e13"},"headline":"Air Conditioners: Recording long Infrared Remote control signals with Arduino","datePublished":"2014-03-19T00:03:24+00:00","dateModified":"2019-05-12T18:05:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/"},"wordCount":669,"commentCount":2,"publisher":{"@id":"https:\/\/www.analysir.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#primaryimage"},"thumbnailUrl":"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/03\/airconremote.png","keywords":["Air Conditioner","AirCon","AnalysIR","Arduino","Infrared","IR signals","IRLib","IRremote","marks","RAWBUF","sketch","spaces"],"articleSection":["AnalysIR Blog","Arduino","Projects"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/","url":"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/","name":"Air Conditioner Record long Infrared Remote control signals - Arduino","isPartOf":{"@id":"https:\/\/www.analysir.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#primaryimage"},"image":{"@id":"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#primaryimage"},"thumbnailUrl":"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/03\/airconremote.png","datePublished":"2014-03-19T00:03:24+00:00","dateModified":"2019-05-12T18:05:41+00:00","description":"Recently we have been helping several members on the Arduino forum to record and playback their remote control signals from their Air Conditioners.","breadcrumb":{"@id":"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#primaryimage","url":"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/03\/airconremote.png","contentUrl":"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/03\/airconremote.png","width":600,"height":450},{"@type":"BreadcrumbList","@id":"https:\/\/www.analysir.com\/blog\/2014\/03\/19\/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.analysir.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Air Conditioners: Recording long Infrared Remote control signals with Arduino"}]},{"@type":"WebSite","@id":"https:\/\/www.analysir.com\/blog\/#website","url":"https:\/\/www.analysir.com\/blog\/","name":"AnalysIR Blog","description":"All about infrared remote control, IR decoding and more","publisher":{"@id":"https:\/\/www.analysir.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.analysir.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.analysir.com\/blog\/#organization","name":"AnalysIR","url":"https:\/\/www.analysir.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.analysir.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2015\/10\/AnalysIR_and_IRToy.png","contentUrl":"https:\/\/www.analysir.com\/blog\/wp-content\/uploads\/2015\/10\/AnalysIR_and_IRToy.png","width":200,"height":200,"caption":"AnalysIR"},"image":{"@id":"https:\/\/www.analysir.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/chris.analysir","https:\/\/x.com\/analysir"]},{"@type":"Person","@id":"https:\/\/www.analysir.com\/blog\/#\/schema\/person\/16a6d94c57d4f2629096ab80a7b36e13","name":"User Two","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/8167f41ca01c8bf0646f87048aaf9e8f90e7d0b65650c0f8eaaf8002b288d6cb?s=96&d=identicon&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8167f41ca01c8bf0646f87048aaf9e8f90e7d0b65650c0f8eaaf8002b288d6cb?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8167f41ca01c8bf0646f87048aaf9e8f90e7d0b65650c0f8eaaf8002b288d6cb?s=96&d=identicon&r=g","caption":"User Two"},"sameAs":["http:\/\/www.AnalysIR.com","https:\/\/www.facebook.com\/chris.analysir","https:\/\/x.com\/AnalysIR"],"url":"https:\/\/www.analysir.com\/blog\/author\/analysir\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p42zhM-8b","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":455,"url":"https:\/\/www.analysir.com\/blog\/2014\/03\/05\/arduino-10-common-pitfalls-infrared-remote-control\/","url_meta":{"origin":507,"position":0},"title":"Arduino: 10 common pitfalls with Infrared Remote Control","author":"User Two","date":"March 5, 2014","format":false,"excerpt":"Over the last few months we have been regular contributors to the Arduino and other forums, answering questions about Infrared remote control projects. It became apparent that beginners typically trip up on many common 'pitfalls'. So we decided to list off our 'Top 10'. \u00a0 (Note a PDF of this\u2026","rel":"","context":"In &quot;AnalysIR Blog&quot;","block_context":{"text":"AnalysIR Blog","link":"https:\/\/www.analysir.com\/blog\/analysir-blog\/"},"img":{"alt_text":"Arduino: 10 common pitfalls with Infrared Remote Control","src":"https:\/\/i0.wp.com\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/03\/VideoThumbnail-300x168.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":640,"url":"https:\/\/www.analysir.com\/blog\/2014\/07\/06\/controlling-chigo-air-conditioner-via-infrared-smart-phone\/","url_meta":{"origin":507,"position":1},"title":"Controlling Chigo Air Conditioner via Infrared from smart phone","author":"User Two","date":"July 6, 2014","format":false,"excerpt":"Anyone who has tried\u00a0 controlling an Air Conditioner unit using an Arduino, USB IR Toy, RPi or any MCU will know how difficult it can be to record the longer infrared signals they use. Typical TV systems use IR signals circa 32 bits long, while this Chigo AC unit uses\u2026","rel":"","context":"In &quot;AnalysIR Blog&quot;","block_context":{"text":"AnalysIR Blog","link":"https:\/\/www.analysir.com\/blog\/analysir-blog\/"},"img":{"alt_text":"Samsung IR Remote app","src":"https:\/\/i0.wp.com\/www.analysir.com\/blog\/wp-content\/uploads\/2014\/07\/SamsungIRremote0-168x300.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":4598,"url":"https:\/\/www.analysir.com\/blog\/2019\/05\/09\/ir-signal-plotter-for-irremote-arduino\/","url_meta":{"origin":507,"position":2},"title":"IR Signal Plotter for IRremote &#038; Arduino","author":"AnalysIR","date":"May 9, 2019","format":false,"excerpt":"We are delighted to present here a new sketch which implements a basic IR Signal plotter for IRremote. The sketch runs on and Arduino and makes use of the Serial Plotter of the Arduino IDE. Although there is no comparison to our powerful AnalysIR application, it may provide useful for\u2026","rel":"","context":"In &quot;AnalysIR Blog&quot;","block_context":{"text":"AnalysIR Blog","link":"https:\/\/www.analysir.com\/blog\/analysir-blog\/"},"img":{"alt_text":"Screenshot of IR Signal Plotter for IRremote","src":"https:\/\/i0.wp.com\/www.analysir.com\/blog\/wp-content\/uploads\/2019\/05\/image-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.analysir.com\/blog\/wp-content\/uploads\/2019\/05\/image-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.analysir.com\/blog\/wp-content\/uploads\/2019\/05\/image-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":4732,"url":"https:\/\/www.analysir.com\/blog\/2019\/07\/06\/kontrolir-the-first-arduino-compatible-ir-remote-control\/","url_meta":{"origin":507,"position":3},"title":"KontroLIR &#8211; the first  Arduino compatible IR remote control","author":"AnalysIR","date":"July 6, 2019","format":false,"excerpt":"KontroLIR We are excited to announce our newest product KontroLIR - the first Arduino compatible IR remote control. Users can now design their very own Infrared remote to work exactly how they want. The possibilities are unlimited. Customize the fully featured firmware within the Arduino IDE to your own needs\u2026","rel":"","context":"In &quot;AnalysIR Blog&quot;","block_context":{"text":"AnalysIR Blog","link":"https:\/\/www.analysir.com\/blog\/analysir-blog\/"},"img":{"alt_text":"KontrolIR_parts_view4","src":"https:\/\/i0.wp.com\/www.analysir.com\/blog\/wp-content\/uploads\/2019\/07\/KontrolIR_parts_view4.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.analysir.com\/blog\/wp-content\/uploads\/2019\/07\/KontrolIR_parts_view4.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.analysir.com\/blog\/wp-content\/uploads\/2019\/07\/KontrolIR_parts_view4.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.analysir.com\/blog\/wp-content\/uploads\/2019\/07\/KontrolIR_parts_view4.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":1463,"url":"https:\/\/www.analysir.com\/blog\/2015\/08\/31\/preview-a-ir-shield-a-high-end-infrared-shield-for-analysir-irremote-irlib\/","url_meta":{"origin":507,"position":4},"title":"Preview: A.IR Shield Nano, a high-end Infrared Shield for AnalysIR, IRremote &#038; IRLib","author":"User Two","date":"August 31, 2015","format":false,"excerpt":"The fifth member of our MakeIR series of devices & kits is the A.IR Shield Nano. This shield works out of the box with AnalysIR and is essentially plug & play , with additional prototyping options. The shield comes attached to an Arduino nano compatible device (clone). Although designed specifically\u2026","rel":"","context":"In &quot;AnalysIR Blog&quot;","block_context":{"text":"AnalysIR Blog","link":"https:\/\/www.analysir.com\/blog\/analysir-blog\/"},"img":{"alt_text":"A.IR block diagram","src":"https:\/\/i0.wp.com\/www.analysir.com\/blog\/wp-content\/uploads\/2015\/08\/A.IR-block-diagram.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.analysir.com\/blog\/wp-content\/uploads\/2015\/08\/A.IR-block-diagram.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.analysir.com\/blog\/wp-content\/uploads\/2015\/08\/A.IR-block-diagram.png?resize=525%2C300 1.5x"},"classes":[]},{"id":1996,"url":"https:\/\/www.analysir.com\/blog\/2016\/01\/14\/esp8266-nodemcu-infrared-decoding-added-to-analysir\/","url_meta":{"origin":507,"position":5},"title":"ESP8266 NodeMCU Infrared decoding added to AnalysIR","author":"User Two","date":"January 14, 2016","format":false,"excerpt":"A few months ago a new user to AnalysIR, from Canada, asked us to assist in adding ESP8266 NodeMCU Infrared decoding over WiFi into\u00a0 AnalysIR. We set about making some upgrades to AnalysIR for this and in double quick time he had AnalysIR accepting IR signals from the ESP8266 over\u2026","rel":"","context":"In &quot;AnalysIR Blog&quot;","block_context":{"text":"AnalysIR Blog","link":"https:\/\/www.analysir.com\/blog\/analysir-blog\/"},"img":{"alt_text":"AnalysIR supports ESP82266 NodeMCU","src":"https:\/\/i0.wp.com\/www.analysir.com\/blog\/wp-content\/uploads\/2016\/01\/NodeMCU.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.analysir.com\/blog\/wp-content\/uploads\/2016\/01\/NodeMCU.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.analysir.com\/blog\/wp-content\/uploads\/2016\/01\/NodeMCU.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.analysir.com\/blog\/wp-json\/wp\/v2\/posts\/507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.analysir.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.analysir.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.analysir.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.analysir.com\/blog\/wp-json\/wp\/v2\/comments?post=507"}],"version-history":[{"count":9,"href":"https:\/\/www.analysir.com\/blog\/wp-json\/wp\/v2\/posts\/507\/revisions"}],"predecessor-version":[{"id":4627,"href":"https:\/\/www.analysir.com\/blog\/wp-json\/wp\/v2\/posts\/507\/revisions\/4627"}],"wp:attachment":[{"href":"https:\/\/www.analysir.com\/blog\/wp-json\/wp\/v2\/media?parent=507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.analysir.com\/blog\/wp-json\/wp\/v2\/categories?post=507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.analysir.com\/blog\/wp-json\/wp\/v2\/tags?post=507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}