Instructables
Picture of Raspberry Pi Universal Remote
fF76Gei3-lirc_logo.png
In this tutorial I hope to convince you that this is the ultimate universal remote built using a raspberry pi.

LIRC is the perfect for this job. It simplifies many of the more difficult tasks that we need to accomplish.
 
Remove these adsRemove these ads by Signing Up

Step 1: Parts

Picture of Parts

Step 2: Setting up the Software

Picture of Setting up the Software
There are a lot of steps in this that I will try to explain.

(Most of this step is from: http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/ )

For the sake of this tutorial i'm assuming this is on a clean Raspbian image.

     sudo apt-get upgrade
     sudo apt-get update

Install LAMP

     sudo apt-get install apache2 php5 mysql-client mysql-server tomcat6 vsftpd

Install LIRC

     sudo apt-get install lirc

Set up the GPIO pins (remember this for later if you want to use other pins)

     sudo nano /etc/modules

Add these 2 lines to the bottom of the file

     lirc_dev
     lirc_rpi gpio_in_pin=23 gpio_out_pin=22

(CONTROL + C will save and exit)

Configure the hardware file.

     sudo nano /etc/lirc/hardware.conf

Erase the contents and paste this file

 
########################################################
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="--uinput"

# Don't start lircmd even if there seems to be a good config file
# START_LIRCMD=false

# Don't start irexec, even if a good config file seems to exist.
# START_IREXEC=false

# Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"

# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/lirc0"
MODULES="lirc_rpi"

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""
########################################################


Reboot the Pi

     sudo reboot
 
delahere2 months ago

Given the steps above, installation of tomcat6 failed because it couldn't find the jdk. It could have been something I did by mistake - I'm working with two keyboards/mice on two different systems at the same time and I accidentally typed on the Raspbian keyboard during the lamp install. In any case, if somebody sees a failure in the Tomcat6 install related to JDK not found, this is how I fixed it:

sudo apt-get install default-jdk

sudo apt-remove tomcat6

sudo apt-install tomcat6

This is my first Raspberry Pi project and I'm really enjoying it.

Thanks for this, I had the same error with JDK. You made a slight typo with the commands though, should be:

sudo apt-get remove tomcat6

sudo apt-get install tomcat6

You missed out "get"

mikejclark1 month ago

For those having problems with the links, remove the bracket " ) " from the end of the link...

dnicol15 months ago
Hey i am also in Toronto. Very cool projects you have. Would you be i nterested In a paid project? Need something done right away.
TheGreenToaster (author) 8 months ago

Alright. They work now

akinich8 months ago
it's good but please share your files for the web server ( sql and php along with the html )
TheGreenToaster (author)  akinich8 months ago

I just posted them on the last step

Hey it say error 403 , please fix it
Thank you
pumo8 months ago

May be you should change attachments to txt file.

now those doesnt work:

403 Forbidden
Request forbidden by administrative rules.