2.3 KiB
+++ title = "Universal Remote - Part IV" date = 2015-11-05
[taxonomies] tags = ["RaspberryPi", "UniversalRemote"] +++
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.
{{ image(src="https://raw.githubusercontent.com/kylejcarlton/zola-theme-terminimal/master/img/RemoteBuildWirelessBT.png", position="left") }}
-
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:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install git-core
sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
sudo rpi-update
sudo apt-get install ntpdate
sudo ntpdate -u ntp.ubuntu.com
- Next install LIRC
sudo apt-get install lirc
- Modify /etc/modules and /etc/lirc/hardware.conf for the specific hardware being used:
/etc/modules
lirc_dev
lirc_rpi gpio_in_pin=23 gpio_out_pin=22