How I installed lirc with IR receiver and remote to Volumio

Tell us how you made up your Volumio powered Project

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

Re: How I installed lirc with IR receiver and remote to Volu

Postby birca1987 » Thu Feb 20 2014 12:08

About hifiberry and PCM5102A from diyinhk, they use the same dac chip, but hifiberry is made for RPi, so will be easier to connect it to RPi

Sent from my Nexus 4 using Tapatalk
Random avatar
birca1987
Serious Listener
Serious Listener
 
Posts: 84
Joined: Thu Dec 19 2013 18:15

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


Re: How I installed lirc with IR receiver and remote to Volu

Postby DerekR » Mon Mar 17 2014 03:00

Thanks, birca1987. Great to have a quick way to pause etc. I used an Apple A1294 and it works fine. Very useful addition to the Volumio/Pi arsenal.
Random avatar
DerekR
Serious Listener
Serious Listener
 
Posts: 51
Joined: Sat Dec 28 2013 14:47


Re: How I installed lirc with IR receiver and remote to Volu

Postby chriz » Mon Mar 24 2014 20:57

Thank you birca1987 for the useful infos!

My Pi (including hifiberry) is now controlled by a remote as well! A really comfortable addition.

To be able to get even more power from the remote control I wrote a shell script rcmpd
that can be set up in .lircrc instead of the direct mpc calls in your example.

Additionally to some playlist handling I implemented speech output, inspired by the mightyohm forum talk you are referring to too.

There is a detailed description available here: http://ziemski.net/raspberry-pi/rcmpd.html
Random avatar
chriz
Fresh off the boat
Fresh off the boat
 
Posts: 2
Joined: Mon Mar 24 2014 20:40


Re: How I installed lirc with IR receiver and remote to Volu

Postby starlored » Sun Apr 06 2014 08:33

Are you able to shut the raspberry pi down safely by using the remote.
The reason I ask is because I have 3 raspberry pi's setup one of which is to be used to serve music to my bathroom, I'm not to keen on using my phone with all that water around.
Random avatar
starlored
Fresh off the boat
Fresh off the boat
 
Posts: 7
Joined: Mon Dec 30 2013 14:05


Re: How I installed lirc with IR receiver and remote to Volu

Postby birca1987 » Mon Apr 07 2014 05:15

Yes you can execute every command from the remote

Sent from my Nexus 4 using Tapatalk
Random avatar
birca1987
Serious Listener
Serious Listener
 
Posts: 84
Joined: Thu Dec 19 2013 18:15


Re: How I installed lirc with IR receiver and remote to Volu

Postby nomad13 » Wed Apr 09 2014 20:56

mine doesn't seem to work.

after typing this command:
irrecord -n -d /dev/lirc0 ~/lircd.conf


here is what I get:
irrecord - application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

irrecord: could not get file information for /dev/lirc0
irrecord: default_init(): No such file or directory
irrecord: could not init hardware (lircd running ? --> close it, check permissions)
Random avatar
nomad13
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Sun Mar 09 2014 14:21


Re: How I installed lirc with IR receiver and remote to Volu

Postby arginine » Sun Apr 13 2014 21:36

Hello,

same problem …
does anybody solved this ?
F

Edit : while checking this http://forum.stmlabs.com/showthread.php?tid=5549 … this command : sudo modprobe lirc_rpi
is needed to make the irrecord command working.

btw, did not manage yet, to control mpc with the IR remote

edit2 : ok, got it to work (in the .lircc file, it's important to match the button names with the one your record using irrecord (saved in lirc.conf))
… now only suffering to have "/usr/bin/irexec --daemon /ir_remote/.lircrc" executed at reboot (knowing that autostart with init.d does not work, have to add a crontab entry but @reboot sudo /usr/bin/irexec --daemon /ir_remote/.lircrc does not seems to make it) …
Random avatar
arginine
Sunday DIYer
Sunday DIYer
 
Posts: 49
Joined: Tue Mar 25 2014 18:33


Re: How I installed lirc with IR receiver and remote to Volu

Postby jpdunord » Wed May 14 2014 12:36

Hello

I want to add an IR remote to my raspberry but i have also a lcd displays connect to my raspberry and ths displays also use the pins18? How can i do?

this is the lists oh the pins that the dislpay use:
LCD ========== GPIO

VSS —————- GND (pin 6)

VDD —————- +5V (pin 2)

A (Anode) ——— GPIO18 (pin 12) [previously GPIO14]

D7 —————— GPIO14 (pin 8) [previously GPIO18]

D6 —————— GPIO23 (pin 16)

D5 —————— GPIO24 (pin 18)

D4 —————— GPIO25 (pin 22)

E ——————– GPIO08 (pin 24)

RS —————— GPIO07 (pin 26)

thanks a lot
Random avatar
jpdunord
Fresh off the boat
Fresh off the boat
 
Posts: 6
Joined: Thu Mar 27 2014 12:21


Re: How I installed lirc with IR receiver and remote to Volu

Postby birca1987 » Wed May 14 2014 13:57

jpdunord wrote:Hello

I want to add an IR remote to my raspberry but i have also a lcd displays connect to my raspberry and ths displays also use the pins18? How can i do?

this is the lists oh the pins that the dislpay use:
LCD ========== GPIO

VSS —————- GND (pin 6)

VDD —————- +5V (pin 2)

A (Anode) ——— GPIO18 (pin 12) [previously GPIO14]

D7 —————— GPIO14 (pin 8) [previously GPIO18]

D6 —————— GPIO23 (pin 16)

D5 —————— GPIO24 (pin 18)

D4 —————— GPIO25 (pin 22)

E ——————– GPIO08 (pin 24)

RS —————— GPIO07 (pin 26)

thanks a lot

Hi, you can find all info here http://mightyohm.com/forum/viewtopic.ph ... 3420#p5621

Sent from my Nexus 4 using Tapatalk
Random avatar
birca1987
Serious Listener
Serious Listener
 
Posts: 84
Joined: Thu Dec 19 2013 18:15


Re: How I installed lirc with IR receiver and remote to Volu

Postby chriz » Tue May 20 2014 20:06

arginine wrote:edit2 : … now only suffering to have "/usr/bin/irexec --daemon /ir_remote/.lircrc" executed at reboot
(knowing that autostart with init.d does not work,
have to add a crontab entry but @reboot sudo /usr/bin/irexec --daemon /ir_remote/.lircrc does not seems to make it) …


I did it via an entry in /etc/rc.local like this:

Code: Select all
su - pi -c "/usr/bin/irexec --daemon /home/pi/.lircrc"


You only have to handle Volumio's resetting of /etc/rc.local on every reboot, for example as described here:
http://volumio.org/forum/volumio-mausberry-switch-t229.html#p2447
Random avatar
chriz
Fresh off the boat
Fresh off the boat
 
Posts: 2
Joined: Mon Mar 24 2014 20:40

PreviousNext

Return to Diy Volumio Projects

Who is online

Users browsing this forum: No registered users and 0 guests