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.

How I installed lirc with IR receiver and remote to Volumio

Postby birca1987 » Fri Jan 10 2014 17:05

RPi_Tsop4838.jpg
RPi_Tsop4838.jpg (28.69 KiB) Viewed 23186 times
Hi, this is the story how I installed lirc and IR receiver to Volumio on Raspberry PI
IR Receiver from http://www.ebay.com/itm/260944290485?ru=http%3A%2F%2Fwww.ebay.com%2Fsch%2Fi.html%3F_sacat%3D0%26_from%3DR40%26_nkw%3D260944290485%26_rdc%3D1
First connect the TSOP4838 IR Receiver to Raspberry Pi like in the picture

Log in with ssh as:
user: pi
password: raspberry

sudo apt-get update
sudo apt-get install lirc
Now we need to configure lirc hardware:
sudo nano /etc/lirc/hardware.conf
.........
LIRCD_ARGS="--uinput"
..........
DRIVER="default"
...........
DEVICE="/dev/lirc0"
...........
MODULES="lirc_rpi"
Now save all this ctrl+x and Y.
Now we need to learn lirc with IR commands:
sudo /etc/init.d/lirc stop
irrecord -n -d /dev/lirc0 ~/lircd.conf
#follow the instructions on the screen
#just learn a few button. Do the rest once everything is working.
#now copy this newly created conf file
sudo mv ~/lircd.conf /etc/lirc/lircd.conf
#start lirc
sudo /etc/init.d./lirc start
#now run irw to check everything
irw
#now press the button on the remote you just learned. The commands should appear on the screen
We need to create a file in /home/pi folder with the name .lircrc and put this in:
begin
prog = irexec
button = pause
config = mpc toggle
end
begin
prog = irexec
button = nextsong
config = mpc next;mpc play
end
begin
prog = irexec
button = prevsong
config = mpc prev;mpc play
end
begin
prog = irexec
button = stop
config = mpc stop
end

Again ctrl+x and Y to save this.
Next we need to run irexec as a background process:
irexec -d

Now we have to add irexec to rc.local to startup after every reboot:
sudo nano /etc/rc.local
and add this before exit 0:
(sleep 3;
sudo -u pi irexec -d
)&

and again save with ctrl+x and Y.
and reboot with sudo reboot. When the Pi is up again check dmesg for errors about lirc and lirc modules loaded lsmod
References : http://mightyohm.com/forum/viewtopic.php?f=2&t=3420#p5621
Attachments
rpi_lirc.jpg
rpi_lirc.jpg (189.2 KiB) Viewed 23186 times
Last edited by birca1987 on Mon May 26 2014 17:51, edited 3 times in total.
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 shano » Fri Jan 10 2014 20:01

Excellent thank you.
Going to order IR receiver now and I look forward to getting it working. So it looks like I won't need to solder as the legs of the device slot onto the GPIO pins?
User avatar
shano
Sunday DIYer
Sunday DIYer
 
Posts: 35
Joined: Tue Dec 17 2013 12:18
Location: Dublin, Ireland


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

Postby iorr » Sun Jan 12 2014 10:38

Which remote do you use?
Karsten

Gesendet von meinem Nexus 7 mit Tapatalk 2
Random avatar
iorr
Sunday DIYer
Sunday DIYer
 
Posts: 43
Joined: Sun Dec 15 2013 21:47


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

Postby birca1987 » Sun Jan 12 2014 20:12

I use an Apple A1156 remote with that, but you can you can use any free remotes you have in the house or any remotes that have spare buttons and don't do anything with the device they came.

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 iorr » Mon Jan 13 2014 16:14

Hi,
Will try it with my logi remote.

Thanks,
Karsten
Random avatar
iorr
Sunday DIYer
Sunday DIYer
 
Posts: 43
Joined: Sun Dec 15 2013 21:47


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

Postby birca1987 » Mon Jan 20 2014 19:05

Update:
Raspberry Pi rev2 with PCM5102A connected to i2s with ir receiver in aluminium enclosure.
http://www.flickr.com/photos/goghi/sets/72157639971214466/
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 lcg » Tue Feb 18 2014 21:01

Dear Gheorghe,

looks very nice and clean. May I ask whether you can share the list of electronic elements and a plan of how to connect them in detail with each other and the RPi? Being not an electrical engineer this would ease the work a lot. Soldering and manual work, etc. is not the problem. Especially the power supply is not known to me.

If you posted it elsewhere or if you had some models, please send the links.

thanks and best regards,
leo
Random avatar
lcg
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Tue Feb 18 2014 20:55


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

Postby birca1987 » Wed Feb 19 2014 17:55

lcg wrote:Dear Gheorghe,

looks very nice and clean. May I ask whether you can share the list of electronic elements and a plan of how to connect them in detail with each other and the RPi? Being not an electrical engineer this would ease the work a lot. Soldering and manual work, etc. is not the problem. Especially the power supply is not known to me.

If you posted it elsewhere or if you had some models, please send the links.

thanks and best regards,
leo


Hi, for my project I used PCM5102A DAC and 4.17uV TPS7A4700 Ultralow noise DAC power supply regulator from http://www.diyinhk.com. and an lm317 as a pre-regulator because I have and linear power supply which gives me 9v at 1amp and i had to use the lm317 board from ebay: 260479385900 to drop down to 6v for TPS7A4700 ultra low noise. For TPS7A4700 its enough 5.5v to output 5.0v at 1amp and if you input more than 6V it will get very hot. But I used Raspberry pi without TPS7A4700, only with lm317 board and it sounds very good. if you need an TPS7A4700, get it from ebay: 390748927641.
For aluminium enclosure I have the ebay item: 190903719738, which I had to drill the holles.
You can use the hifiberry dac if you don't have any dac's yet.
To raspberry pi I connected the power cables to TP1 and TP2(see picture)
Attachments
sony-rasp-pi.jpg
sony-rasp-pi.jpg (156.55 KiB) Viewed 22725 times
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 Diet Shasta » Wed Feb 19 2014 18:18

I have a pifacecad that has an IR receiver built in. I used similar steps as yours, except I didn't need to add a line to rc.local to start up irexec during boot separately. I think the /etc/init.d/lirc script checks if a lircd.conf or lircrc file exists (don't remember which) and adds irexec to the start up automatically.
Random avatar
Diet Shasta
Sunday DIYer
Sunday DIYer
 
Posts: 21
Joined: Wed Jan 08 2014 06:48


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

Postby lcg » Thu Feb 20 2014 11:34

Dear Gheorghe,

thanks for the information. The idea with such a power supply sounds good and I will do some recherche on it. And - yes - I do not have a DAC yet (still planning stage). The hifi-berry is good compared to what you use?
Btw - you get a lot of cases like the one you bought at http://www.audiophonics.fr (along with a lot of other audio material) or at http://www.modushop.biz. It seems your case is identical to one of those you can find there.

best regards,
leo
Random avatar
lcg
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Tue Feb 18 2014 20:55

Next

Return to Diy Volumio Projects

Who is online

Users browsing this forum: No registered users and 0 guests