{"id":359,"date":"2017-07-28T03:37:24","date_gmt":"2017-07-28T02:37:24","guid":{"rendered":"http:\/\/192.168.1.18\/?page_id=359"},"modified":"2018-09-26T15:45:00","modified_gmt":"2018-09-26T14:45:00","slug":"connect-ir-remote-control","status":"publish","type":"page","link":"http:\/\/www.bulis.co.uk\/?page_id=359","title":{"rendered":"Raspberry Pi: Connecting any old IR Remote Control"},"content":{"rendered":"<h2><strong>LIRC &#8211; Linux Infrared Remote Control<\/strong><\/h2>\n<p><a href=\"http:\/\/www.lirc.org\/\">LIRC<\/a> is a mature and stable open source library that provides the ability to send and receive IR commands. LIRC support is now included by default in the latest version of Raspbian OS.<\/p>\n<h2><strong>Wiring the Infra-Red Receiver to the Raspberry Pi<\/strong><\/h2>\n<p>Vishay TSOP31438 wiring is on the picture.<br \/>\nReceiver Pin 1 is DATA, goes to RPi pin 12 (GPIO 18)<br \/>\nReceiver Pin 2 is GND, goes to RPI pin 6 (GROUND)<br \/>\nRecevier Pin 3 is POWER, goes RPi pin 1 (3.3V)<\/p>\n<div id=\"attachment_362\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-362\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-362\" src=\"http:\/\/www.bulis.co.uk\/wp-content\/uploads\/2017\/07\/image1.png\" alt=\"IR Remote Wiring\" width=\"600\" height=\"600\" \/><p id=\"caption-attachment-362\" class=\"wp-caption-text\">IR Remote Wiring<\/p><\/div>\n<p>Connect to the raspberry pi using SSH (I use putty) and type hostname as <strong>raspbmc<\/strong> connecting to port <strong>22<\/strong> and then click \u2018<em>Open\u2019<\/em> if you get a security warning click onto \u2018<em>Yes<\/em>\u2019 to except. This will present a shell command on the raspberry pi. Login using the default settings username <strong>pi<\/strong> and password <strong>raspberry<\/strong>.<\/p>\n<p>At the command prompt type:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nirrecord --list-namespace\r\n<\/pre>\n<p>This will display a list of available names used to record the keystrokes sent from the IR remote control. Compare the names in this list to the buttons on your remote once you have a list of names that correspond with the buttons we are ready to begin mapping. At the command prompt type:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo \/etc\/init.d\/lirc stop\r\n<\/pre>\n<p>This stops the lirc service to free up \/dev\/lirc0<\/p>\n<p>Type the following to start recording of key presses:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nirrecord \u2013d \/dev\/lirc0 ~\/lircd.conf\r\n<\/pre>\n<div id=\"attachment_365\" style=\"width: 685px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-365\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-365\" src=\"http:\/\/www.bulis.co.uk\/wp-content\/uploads\/2017\/07\/image4-1.png\" alt=\"LIRC Config\" width=\"675\" height=\"646\" \/><p id=\"caption-attachment-365\" class=\"wp-caption-text\">LIRC Config<\/p><\/div>\n<p>Press Return to start recording of key strokes.<\/p>\n<p>Type the name of each key stroke followed by the return key.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nKEY_STOP\r\n<\/pre>\n<p>Now point the remote press and hold the corresponding button:<\/p>\n<div id=\"attachment_366\" style=\"width: 685px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-366\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-366\" src=\"http:\/\/www.bulis.co.uk\/wp-content\/uploads\/2017\/07\/image5-1.png\" alt=\"Record LIRC\" width=\"675\" height=\"422\" \/><p id=\"caption-attachment-366\" class=\"wp-caption-text\">Record LIRC<\/p><\/div>\n<p>Do this for each button in turn. Once you have finished press \u2018Return\u2019 this will save the new configuration file.<\/p>\n<p>Next we make a copy of the old lircd.conf file:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo cp lircd.conf lircd-old.conf\r\n<\/pre>\n<p>Now delete the old lircd.conf file:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo rm lircd.conf\r\n<\/pre>\n<p>Make a copy of the lircd.conf.conf file:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo cp lircd.conf.conf lircd.conf\r\n<\/pre>\n<p>Now delete the old lircd.conf.conf file:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo rm lircd.conf.conf\r\n<\/pre>\n<p>Reboot to apply the new changes:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo reboot\r\n<\/pre>\n<p>When the raspberry pi reboots wait for the lirc connection to apply and now your remote should start working.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LIRC &#8211; Linux Infrared Remote Control LIRC is a mature and stable open source library that provides the ability to send and receive IR commands. LIRC support is now included by default in the latest version of Raspbian OS. Wiring the Infra-Red Receiver to the Raspberry Pi Vishay TSOP31438 wiring is on the picture. Receiver [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":166,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.12 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Raspberry Pi: Connecting any old IR Remote Control - Phantom Raspberry Blower<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.bulis.co.uk\/?page_id=359\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Raspberry Pi: Connecting any old IR Remote Control - Phantom Raspberry Blower\" \/>\n<meta property=\"og:description\" content=\"LIRC &#8211; Linux Infrared Remote Control LIRC is a mature and stable open source library that provides the ability to send and receive IR commands. LIRC support is now included by default in the latest version of Raspbian OS. Wiring the Infra-Red Receiver to the Raspberry Pi Vishay TSOP31438 wiring is on the picture. Receiver [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.bulis.co.uk\/?page_id=359\" \/>\n<meta property=\"og:site_name\" content=\"Phantom Raspberry Blower\" \/>\n<meta property=\"article:modified_time\" content=\"2018-09-26T14:45:00+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.bulis.co.uk\/wp-content\/uploads\/2017\/07\/image1.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.bulis.co.uk\/?page_id=359\",\"url\":\"http:\/\/www.bulis.co.uk\/?page_id=359\",\"name\":\"Raspberry Pi: Connecting any old IR Remote Control - Phantom Raspberry Blower\",\"isPartOf\":{\"@id\":\"http:\/\/www.bulis.co.uk\/#website\"},\"datePublished\":\"2017-07-28T02:37:24+00:00\",\"dateModified\":\"2018-09-26T14:45:00+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/www.bulis.co.uk\/?page_id=359#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.bulis.co.uk\/?page_id=359\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.bulis.co.uk\/?page_id=359#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.bulis.co.uk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tutorials\",\"item\":\"http:\/\/www.bulis.co.uk\/?page_id=57\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Raspberry Pi Tutorials\",\"item\":\"http:\/\/www.bulis.co.uk\/?page_id=166\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Raspberry Pi: Connecting any old IR Remote Control\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.bulis.co.uk\/#website\",\"url\":\"http:\/\/www.bulis.co.uk\/\",\"name\":\"Phantom Raspberry Blower\",\"description\":\"Blowing Raspberrys since 1989\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.bulis.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Raspberry Pi: Connecting any old IR Remote Control - Phantom Raspberry Blower","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":"http:\/\/www.bulis.co.uk\/?page_id=359","og_locale":"en_GB","og_type":"article","og_title":"Raspberry Pi: Connecting any old IR Remote Control - Phantom Raspberry Blower","og_description":"LIRC &#8211; Linux Infrared Remote Control LIRC is a mature and stable open source library that provides the ability to send and receive IR commands. LIRC support is now included by default in the latest version of Raspbian OS. Wiring the Infra-Red Receiver to the Raspberry Pi Vishay TSOP31438 wiring is on the picture. Receiver [&hellip;]","og_url":"http:\/\/www.bulis.co.uk\/?page_id=359","og_site_name":"Phantom Raspberry Blower","article_modified_time":"2018-09-26T14:45:00+00:00","og_image":[{"url":"http:\/\/www.bulis.co.uk\/wp-content\/uploads\/2017\/07\/image1.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.bulis.co.uk\/?page_id=359","url":"http:\/\/www.bulis.co.uk\/?page_id=359","name":"Raspberry Pi: Connecting any old IR Remote Control - Phantom Raspberry Blower","isPartOf":{"@id":"http:\/\/www.bulis.co.uk\/#website"},"datePublished":"2017-07-28T02:37:24+00:00","dateModified":"2018-09-26T14:45:00+00:00","breadcrumb":{"@id":"http:\/\/www.bulis.co.uk\/?page_id=359#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.bulis.co.uk\/?page_id=359"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.bulis.co.uk\/?page_id=359#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.bulis.co.uk\/"},{"@type":"ListItem","position":2,"name":"Tutorials","item":"http:\/\/www.bulis.co.uk\/?page_id=57"},{"@type":"ListItem","position":3,"name":"Raspberry Pi Tutorials","item":"http:\/\/www.bulis.co.uk\/?page_id=166"},{"@type":"ListItem","position":4,"name":"Raspberry Pi: Connecting any old IR Remote Control"}]},{"@type":"WebSite","@id":"http:\/\/www.bulis.co.uk\/#website","url":"http:\/\/www.bulis.co.uk\/","name":"Phantom Raspberry Blower","description":"Blowing Raspberrys since 1989","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.bulis.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"}]}},"_links":{"self":[{"href":"http:\/\/www.bulis.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/359"}],"collection":[{"href":"http:\/\/www.bulis.co.uk\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.bulis.co.uk\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.bulis.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.bulis.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=359"}],"version-history":[{"count":0,"href":"http:\/\/www.bulis.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/359\/revisions"}],"up":[{"embeddable":true,"href":"http:\/\/www.bulis.co.uk\/index.php?rest_route=\/wp\/v2\/pages\/166"}],"wp:attachment":[{"href":"http:\/\/www.bulis.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}