Instructables
loading
loading
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 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
 
Slimbots20 days ago

I have had a setup like this up and running for over a year. I used LIRC and Webiopi to develop a web based home automation system that controls my home theater system. Initially I had issues with wifi dropping every couple of days and then had issues with SD card corruption. I think both of these were cause by not having a big enough power supply. I recently created a board and kit that can drive seven IR LEDs and has a receiver to make it really easy to build. Even after the electronics are assembled it can take some time to get all of the codes programmed. You can buy the kit it here. http://www.slimbots.com

gchinni26 days ago

I followed the Complete Process But as i stop lirc :

pi@raspberrypi ~ $ sudo /etc/init.d/lirc start

[ ok ] No valid /etc/lirc/lircd.conf has been found..

[ ok ] Remote control support has been disabled..

[ ok ] Reconfigure LIRC or manually replace /etc/lirc/lircd.conf to enable..

This is coming . i changed the Hardware.conf file and added those two lines in modules as well. .

pi@raspberrypi ~ $ sudo /etc/init.d/lirc stop

pi@raspberrypi ~ $ mode2 -d /dev/lirc0

mode2: could not get file information for /dev/lirc0

mode2: default_init(): No such file or directory

When i run this command it is showing this. Can u please Help me. lirc/devo is not created. . . What to do with this ??? Please help me urgent.

mattgreen.com2 months ago

Parts list links are no longer working... how about digikey? (and perhaps part numbers on build list just in case links break again)

Thanks

remove the bracket " ) " from the end of the link...

Phobia19713 months ago

Why can't i create a lircd.conf for a remote?

RC-6 remote controle found.

Found possible header: 226 762

Header is not being repeated.

No repeat code found.

Signals are biphase encoded.

Signal length is 23

Checking for toggle bit kask.

Please press blah blah.......

Press RETURN to continue.

And then right after pressing a button it tells me:

No toggle bit mask found.

But I know for sure that RC6 has a toggle bit!

And the program stops and no file is made. The remote is for a arcadyan model HMB2260.

This box controles my digital tv so with out it my remote controle setup is useless

Please can some one help, google doesn't seem to be much of a help!

RobertoL3 months ago

how did you configure the emitter, i wire it as you show but i cant make it work. it just blink but doesnt turn on of off anything

mjanich5 months ago

I tried to make this /etc/lirc/lircd.conf file by downloading and concatenating all remote control files that you can find (also on the lirc website). But I never got it to work. Maybe you post your /etc/lirc/lircd.conf file and we can see where the problem is.

THANKS

-M

model matrix6 months ago

i want to configure my remote,and make an entry in one file.

how i will do it.

if any one know than plz help me.

model matrix6 months ago

i want to configure my remote,and make an entry in one file.

how i will do it.

if any one know than plz help me.

model matrix6 months ago

i want to configure my remote,and make an entry in one file.

how i will do it.

if any one know than plz help me.

model matrix6 months ago

i want to configure my remote,and make an entry in one file.

how i will do it.

if any one know than plz help me.

model matrix6 months ago

i want to configure my remote,and make an entry in one file.

how i will do it.

if any one know than plz help me.

model matrix6 months ago

i want to configure my remote,and make an entry in one file.

how i will do it.

if any one know than plz help me.

PeterJ46 months ago

IR Sensor spec

Leftmost pin=1, just as the image in this post

Pin1 Output (connect to the GPIO-input)

Pin2 GND

Pin3 Vcc

delahere9 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"

mikejclark9 months ago

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

dnicol11 year 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) 1 year ago

Alright. They work now

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

I just posted them on the last step

Hey it say error 403 , please fix it
Thank you
pumo1 year ago

May be you should change attachments to txt file.

now those doesnt work:

403 Forbidden
Request forbidden by administrative rules.