{"id":1034,"date":"2017-02-11T19:33:34","date_gmt":"2017-02-11T19:33:34","guid":{"rendered":"http:\/\/ofalcao.pt\/blog\/?p=1034"},"modified":"2017-02-11T19:33:34","modified_gmt":"2017-02-11T19:33:34","slug":"using-ftdi-as-ir-4","status":"publish","type":"post","link":"https:\/\/ofalcao.pt\/blog\/2017\/using-ftdi-as-ir-4","title":{"rendered":"Using a FTDI adapter as an IR emitter \u2013 4"},"content":{"rendered":"<div class=\"seriesmeta\">This post is part 4 of 5 of \u00a0<a href=\"https:\/\/ofalcao.pt\/blog\/series\/using-a-ftdi-adapter-as-an-ir\" class=\"series-287\" title=\"Using a FTDI adapter as an IR\">Using a FTDI adapter as an IR<\/a><\/div><p>We finally have LIRC but if we run it now it will fail looking for &#8220;liblirc.so.0&#8221; so we need to configure ev3dev to look for it in the right place:<\/p>\n<pre>sudo nano \/etc\/ld.so.conf.d\/lirc.conf\r\n\r\n  include \/usr\/local\/lib\r\n\r\nsudo ldconfig<\/pre>\n<p>We could also build LIRC with proper prefix options in order to prevent this last step but I&#8217;m lazy and this also helps when searching the web for common problems.<\/p>\n<p>We also need to create a folder for LIRC to place a pid file:<\/p>\n<pre>sudo mkdir \/var\/run\/lirc<\/pre>\n<p>and at least one remote control configuration file that tells LIRC how to talk with the Power Fucntions IR Receiver. So after two years I&#8217;m back to <a href=\"https:\/\/github.com\/iConor\">Connor Cary&#8217;s GitHub<\/a> and find that he now has 3 <a href=\"https:\/\/github.com\/iConor\/lego-lirc\/tree\/master\/config-files\">configuration files<\/a> available:<\/p>\n<ul>\n<li>Combo_Direct<\/li>\n<li>Combo_PWM<\/li>\n<li>Single_Output<\/li>\n<\/ul>\n<p>The last one was contributed by Diomidis Spinellis, the author of a very nice post &#8220;<a href=\"http:\/\/spectrum.ieee.org\/geek-life\/hands-on\/replace-legos-190-intelligent-brick-with-mits-scratch-and-a-40-raspberry-pi\">Replace Lego\u2019s $190 Intelligent Brick with MIT\u2019s Scratch and a $40 Raspberry Pi<\/a>&#8221; I read a few months ago &#8211; what a small world we live \ud83d\ude42<\/p>\n<p>We should save these 3 files with a &#8220;.conf&#8221; extension under the folder<\/p>\n<pre>\/usr\/local\/etc\/lirc\/lircd.conf.d\/devinput.lircd.conf<\/pre>\n<p>There is already a &#8220;devinput.lircd.conf&#8221; file there but it only works with LIRC default device so we should rename it:<\/p>\n<pre>sudo mv \/usr\/local\/etc\/lirc\/lircd.conf.d\/devinput.lircd.conf \/usr\/local\/etc\/lirc\/lircd.conf.d\/devinput.lircd.dist<\/pre>\n<p>And that&#8217;s it, next post we&#8217;ll finally start LIRC!<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"seriesmeta\">This post is part 4  of 5 of \u00a0<a href=\"https:\/\/ofalcao.pt\/blog\/series\/using-a-ftdi-adapter-as-an-ir\" class=\"series-287\" title=\"Using a FTDI adapter as an IR\">Using a FTDI adapter as an IR<\/a><\/div><p>We finally have LIRC but if we run it now it will fail looking for &#8220;liblirc.so.0&#8221; so we need to configure ev3dev to look for it in the right place: sudo nano \/etc\/ld.so.conf.d\/lirc.conf include \/usr\/local\/lib sudo ldconfig We could also build LIRC with proper prefix options in order to prevent this last step but I&#8217;m &hellip; <a href=\"https:\/\/ofalcao.pt\/blog\/2017\/using-ftdi-as-ir-4\" class=\"more-link\">Continuar a ler<span class=\"screen-reader-text\"> &#8220;Using a FTDI adapter as an IR emitter \u2013 4&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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","enabled":false},"version":2}},"categories":[1],"tags":[],"series":[287],"class_list":["post-1034","post","type-post","status-publish","format-standard","hentry","category-sem-categoria","series-using-a-ftdi-adapter-as-an-ir"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2Mhyv-gG","_links":{"self":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts\/1034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/comments?post=1034"}],"version-history":[{"count":0,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts\/1034\/revisions"}],"wp:attachment":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/media?parent=1034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/categories?post=1034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/tags?post=1034"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/series?post=1034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}