With the hardware built the next step is getting the Raspberry Pi up and running and installing LIRC. Alexba.in has a comprehensive post for both of these things: RaspberryPi Quickstart and Setting Up LIRC on the RaspberryPi. I discovered and modified a few things along the way, so here’s what I did.
- Download the latest Raspbian Image and follow their Installation Guide.
- Network the Pi over wired Ethernet using RJ45 connector.
- Connect to the Pi over SSH with PuTTy.
Since I’d like to connect over WiFi I’ve added a Belkin USB F7D2101. For future development, I also added a ORICO BTA-402 USB Bluetooth 4.0 Micro Adapter Dongle for controlling a Play Station 3 using GIMX.
- With the Pi temporarily connected by Ethernet cable, I set up the wireless connection via the command line over SSH.
- The following commands update the Software and Firmware then sync the Time with a source on the Internet:
- Next install LIRC:
- Modify /etc/modules and /etc/lirc/hardware.conf for the specific hardware being used:
- Restart LIRC to pick up these changes:
- Stop LIRC and start in raw data mode to verify that IR receiver is working:
- Pressing buttons on an IR remote pointed at the receiver and activity similar to the following should be displayed:
In the next post on this topic I’ll cover recording the IR signal from remotes using the irrecord command and testing functionality from the command line. I’ll also install Node.js and the client library lirc_node for controlling LIRC from a web site.