element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Rocking Raspberry Pi
  • Challenges & Projects
  • Design Challenges
  • Rocking Raspberry Pi
  • More
  • Cancel
Rocking Raspberry Pi
Blog Remotely controlling the RaspBMC with IR Remote
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: bharatrai888
  • Date Created: 8 Mar 2014 6:23 PM Date Created
  • Views 943 views
  • Likes 1 like
  • Comments 5 comments
  • raspi
  • rockingraspberrypi
  • rocking_pi
Related
Recommended

Remotely controlling the RaspBMC with IR Remote

bharatrai888
bharatrai888
8 Mar 2014

Hey Friend,


As I am using RaspBMC so I decided to write about controlling your RaspBMC remotely using TV remote.

By doing this you will no longer need of keyboard and mouse to control RaspBMC.


For that all you need is TV remote and an IR receiver module. Which is already in Pi-Face Control and Display.


Firstly I installed the LIRC using


$ sudo apt-get install lirc


After entered


$ sudo modprobe lirc_rpi gpio_in_pin=23


After I add this to in /etc/modules


lirc_dev
lirc_rpi gpio_pin=23


Changed /etc/lirc/hardware.conf file to


# /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=""

So, I searched in my home and found an old RC-5 remote.

After I downloaded the lirc file from http://lirc.sourceforge.net/remotes/rc-5/

I made few changes to the file by assigning the following value to the keys and save it as lircd.conf in the home directory i.e /home/pi/.


KEY_VOLUMEDOWN,

KEY_PLAYPAUSE,

KEY_VOLUMEUP,

KEY_SETUP,

KEY_UP,

KEY_STOP,

KEY_LEFT,

KEY_ENTER,

KEY_RIGHT,

KEY_KP0,

KEY_DOWN,

KEY_BACK,

KEY_KP1,

KEY_KP2,

KEY_KP3,

KEY_KP4,

KEY_KP5,

KEY_KP6,

KEY_KP7,

KEY_KP8,

KEY_KP9


In RaspBMC setting program enabled GPIO TSOP receiver and in GPIO remote profile selected to use custom lircd.conf on pi’s home folder.


After doing all that I restarted the Raspberry Pi.

Fullscreen contentimage_30447.html Download
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>


And after the RaspBMC started my remote start working perfectly and yes It helps me to control the media player wirelessly and without keyboard or mouse.


Updated 16 March: Attached my Remote lircd.conf file which I modified.

  • Sign in to reply
  • Former Member
    Former Member over 11 years ago in reply to bharatrai888

    but how to edit the  /etc/lirc/hardware.conf  file,  please tell in detail..

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • bharatrai888
    bharatrai888 over 11 years ago in reply to Former Member

    The method I told here is for RaspBMC.
    I SSH to it through my Laptop.
    Other than that the method for raspbian is almost same but in raspbian the lircd.conf file is saved to  /etc/lirc/


    Follow this post "Raspberry Pi and Karaoke Machine (Setting Up LIRC)" for installing this in raspbian by babusingh9211

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to bharatrai888

    the installation method you told is for raspbian, as well as the conf file...

     

    how doer it work in RaspBMC ???

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • bharatrai888
    bharatrai888 over 11 years ago in reply to Former Member

    Hi radrahul007,

     

    I have written everything about installing LIRC,

    Only I didn't post the lircd.conf file as it is long enough.

     

    But Now I uploaded that too in attachments.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 11 years ago

    Hi Bharteindu,

     

    i have a question, can you tell me the process of installing LIRC in detail, I dont have much knowledge of that...

    thanks in advance....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube