{"id":1612,"date":"2015-03-08T13:57:31","date_gmt":"2015-03-08T12:57:31","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=1612"},"modified":"2015-03-08T14:13:36","modified_gmt":"2015-03-08T13:13:36","slug":"openelec-on-raspberry-lirc-infrared","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=1612","title":{"rendered":"Openelec (on raspberry), Lirc &#038; infrared"},"content":{"rendered":"<p>In the previous <a href=\"https:\/\/labalec.fr\/erwan\/?p=1599\" target=\"_blank\">article<\/a>, I started to look for a way to build an infrared receiver based on an Arduino.<br \/>\nSo far no luck&#8230;<\/p>\n<p>So I decided to take another approach : plug my <a href=\"http:\/\/www.dx.com\/fr\/p\/tsop1838-ir-infrared-37-9khz-receiver-18m-range-2-7-5-5v-135045#.VPxK2TSG9v0\" target=\"_blank\">infrared TSOP component<\/a> directly tot he Raspberry GPIO.<br \/>\nSee the wiring below.<\/p>\n<p><a href=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2015\/03\/IRwiring2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2015\/03\/IRwiring2-150x150.png\" alt=\"IRwiring2\" width=\"150\" height=\"150\" class=\"alignnone size-thumbnail wp-image-1613\" srcset=\"https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2015\/03\/IRwiring2-150x150.png 150w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2015\/03\/IRwiring2-96x96.png 96w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2015\/03\/IRwiring2-24x24.png 24w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2015\/03\/IRwiring2-36x36.png 36w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2015\/03\/IRwiring2-48x48.png 48w, https:\/\/labalec.fr\/erwan\/wp-content\/uploads\/2015\/03\/IRwiring2-64x64.png 64w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a><\/p>\n<p>Here below the steps required to settled a remote (any will do) with my receiver :<\/p>\n<p>1-Add the following to config.txt <code>dtoverlay=lirc-rpi<\/code><\/p>\n<p>2-stop lirc daemon to be able to record codes in step 3 <code>killall lircd<\/code><\/p>\n<p>3-record your remote control codes with : <code>irrecord \/storage\/.config\/lircd.conf<\/code><br \/>\ntip here : your enter button should be key_ok and your back button should be key_exit in last openelec version (5.x)<\/p>\n<p>4-check that your system detects your buttons press : <code>irw <\/code><br \/>\nif yes, then you are good to go : Reboot and enjoy !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the previous article, I started to look for a way to build an infrared receiver based on an Arduino. So far no luck&#8230; So I decided to take another approach : plug my infrared TSOP component directly tot he Raspberry GPIO. See the wiring below. Here below the steps required to settled a remote <a href='https:\/\/labalec.fr\/erwan\/?p=1612' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[],"class_list":["post-1612","post","type-post","status-publish","format-standard","hentry","category-raspberry","category-77-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1612"}],"version-history":[{"count":7,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1612\/revisions"}],"predecessor-version":[{"id":1620,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/1612\/revisions\/1620"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}