tag:blogger.com,1999:blog-61970368137302689172024-02-08T04:54:30.877-08:00Raspberry Pi adventuresMichel Coenehttp://www.blogger.com/profile/01782030389913845266noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6197036813730268917.post-18995357816982046562014-04-25T05:19:00.001-07:002014-04-29T08:27:21.748-07:00Setup and remote connectionI use <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_blank">Putty </a>to connect to the Pi, as I enabled SSH access during the first setup.<br />
I will now try to setup the piface module using <a href="http://www.piface.org.uk/guides/setting_up_pifacecad/fitting_PiFace_Control_and_Display/" target="_blank">this guide</a>. Just follow the guide.<br />
This step went rather smooth, you can see the remote commands comming in on your terminal.<br />
<br />
To install the CEC capability, we install libcec by following <a href="http://nyxi.eu/blog/2013/04/15/raspbian-libcec/" target="_blank">this guide</a>. If you don't have root privileges, put "sudo " in front of each command.<br />
Compiling will take a good half hour.<br />
This turns out not to have any python API, so I used <a href="https://github.com/trainman419/python-cec" target="_blank">this</a> instead. <br />
<br />
To get the yaml commands running, install<br />
<span style="font-family: Courier New, Courier, monospace;">sudo apt-get install python-yaml</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
For the LIRC bindings to python:<br />
<span style="font-family: Courier New, Courier, monospace;">sudo apt-get install python-lirc</span><br />
<span style="font-family: Courier New, Courier, monospace;"><br /></span>
Don't forget to update your software once in a while:<br />
<span style="font-family: Courier New, Courier, monospace;">sudo apt-get update</span><br />
<span style="font-family: Courier New, Courier, monospace;">sudo apt-get upgrade all</span><br />
<br />
(This is equivalent to your Windows update)<br />
<br />
<br />Michel Coenehttp://www.blogger.com/profile/01782030389913845266noreply@blogger.com0tag:blogger.com,1999:blog-6197036813730268917.post-2933820517229850912014-04-25T01:39:00.000-07:002014-04-25T01:39:22.596-07:00Using the Raspberry Pi as an IR remote interceptorIn this blog, I will document my effort to use the <a href="http://www.raspberrypi.org/" target="_blank">Raspberry Pi</a> computer as a <a href="http://www.samsung.com/us/support/supportOwnersHowToGuidePopup.do?howto_guide_seq=1563" target="_blank">Anynet +</a> Controller.<br />
I own a <a href="http://www.samsung.com/dk/consumer/tv-home-theatre/wireless-sound/soundbar" target="_blank">Samsung Soundbar</a> which does not "play nice" with the rest of the TV setup, requiring different remotes. So I will try to intercept <a href="http://en.wikipedia.org/wiki/Remote_control" target="_blank">IR remote</a> commands from my TV remote and convert them to Anynet + commands, sent over the <a href="http://en.wikipedia.org/wiki/HDMI" target="_blank">HDMI </a>cable. Anynet is just Samsungs interpretation of the <a href="http://en.wikipedia.org/wiki/HDMI#CEC" target="_blank">HDMI CEC</a> standard, so this might be of interest to equipment of other manufacturers, supporting for example <a href="http://esupport.sony.com/referencebook/en/s5100/pages/funfeatures/braviasync.html" target="_blank">Bravia Link</a> or <a href="http://www.p4c.philips.com/cgi-bin/cpindex.pl?ctn=HTS4600/05&dct=QAC&faqview=1&refdisplay=AVS_DVP_149&refnr=0067234&scy=GB&slg=ENG" target="_blank">Easy Link</a>.<br />
<br />
The hardware I bought is the Raspberry Pi B model and the <a href="http://www.piface.org.uk/products/piface_control_and_display/" target="_blank">Piface display</a>, which contains an IR receiver.<br />
I used the preinstalled <a href="http://www.raspberrypi.org/downloads/" target="_blank">noobs </a>sd card and after connecting everything chose the default <a href="http://www.raspbian.org/" target="_blank">Raspbian OS</a>.<br />
I connected the Ethernet cable during the very long and boring setup process but should not have done that. The Pi crashed and refused to reboot. Keeping the Shift key down during reboot allowed me to go back to the original menu and redo the installation. I will keep the Ethernet cable off until the install is finished.<br />
<br />
As the font is unreadable small on the TV, and my keyboard is crap, my first priority is to establish remote control so I can control the Pi from my PC over telnet or SSH.<br />
At the first boot in Raspbian, it comes up with a configuration menu. Apart from the usuals, such as keyboard and timezone, I went in the advanced menu and found the option to enable SSH and also an option for loading modules needed by Piface.<br />
<br />Michel Coenehttp://www.blogger.com/profile/01782030389913845266noreply@blogger.com0