IR Receiver & Remote support

Raspberry Pi related support

Re: IR Receiver & Remote support

Postby XploD » 26 May 2015, 23:38

@hondagx35: thanks! It was problem in my case as well, now my remote is finally working :D I also got a new IR receiver and now it works much better than before on Raspbian, when I was using a receiver from an old DVD player.

@phuongdk and @mishgun: sorry for waiting, I had some work to do and I still didn't managed to fix a few bugs with my code but I'll try to write it as it is tomorrow and provide it to you so once I fix that bugs then I'll update the code.

EDIT: Here you go: lcd-display-and-buttons-in-python-tutorial-and-code-t1191.html
Music taste: xplodmusic @ Last.fm
Audio source: Raspberry Pi 2 + Sabre ES9023 DAC + WD 500 GB HDD + TP-Link TL-WN722N Wi-Fi + D-LINK Dub H7 USB hub
Hi-Fi: Phillips DCD-7010
Mixer: Nady Audio MM-242
Misc: Tube Stereo Vumeter (Magic Eye)
User avatar
XploD
 
Posts: 77
Joined: 24 Mar 2015, 18:32
Location: Croatia

Re: IR Receiver & Remote support

Postby XploD » 30 Jul 2015, 13:55

LIRC problems again! :evil: Now I'm using RPi 2 and I can't enable LIRC. The problems are even worse than on RPi 1. Anybody managed to make it work on RPi 2?

EDIT: I managed to fix it, seems that you have to uncomment a few lines in /boot/config.txt and to put there on which GPIO pin is LIRC.
Music taste: xplodmusic @ Last.fm
Audio source: Raspberry Pi 2 + Sabre ES9023 DAC + WD 500 GB HDD + TP-Link TL-WN722N Wi-Fi + D-LINK Dub H7 USB hub
Hi-Fi: Phillips DCD-7010
Mixer: Nady Audio MM-242
Misc: Tube Stereo Vumeter (Magic Eye)
User avatar
XploD
 
Posts: 77
Joined: 24 Mar 2015, 18:32
Location: Croatia

Re: IR Receiver & Remote support

Postby Dezo » 04 Mar 2016, 08:57

Hi.I had an issue with double key presses from remote with irw command and managed to solve it by uncommenting line in lirc.conf.
Code: Select all
suppress_repeat 1
Dezo
 
Posts: 11
Joined: 01 Nov 2014, 13:33

Re: IR Receiver & Remote support

Postby YannM » 29 Apr 2016, 15:05

Hi,
I'm trying to install an usb IR remote but I have some issues to install lirc. I think the source of my problems is that I don't know anything about (Arch)Linux, like the structure of the files (etc/, bin/...), so I'm stuck at some steps. Does someone know a book to learn how this system works (or linux in general if they are similar) ? a chapter about the GPIO would also be welcome for another project around runeaudio and this remote.
Thank you !
Yann
System: HD -> Wifi -> Pi 3 -> Audiophonic I-Sabre V3 -> Cambridge Audio
YannM
 
Posts: 15
Joined: 05 Apr 2016, 16:12

Re: IR Receiver & Remote support

Postby hondagx35 » 29 Apr 2016, 17:33

Hi Yann,

I'm trying to install an usb IR remote but I have some issues to install lirc.

Feel free to ask your questions here.

Do not forget to include info about:
- used hardware
- software version

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: IR Receiver & Remote support

Postby YannM » 02 May 2016, 22:39

Hi,
I'm still stuck... So here are my info. Your help is more than welcome !

I have a pi 3 + DAC i-sabre v3 (audiophonic). Runeaudio release version: 0.4 (build: beta-20160313) Debug info : http://pastebin.com/zgmDPqd8

I bought a cheep remote ("PC remote") to get use of the USB Ir (I would like to use another remote with the receiver).
I made some mix of this https://arch-ed.dk/systemd-lircd-mceusb-xbmc-and-arch-linux/ (old but for usb) and this http://buzzthisnow.com/ir-remote-with-lirc-on-raspberry-pi-2-running-runeaudio-archlinux/ (recent but for GPIO)

The receiver seems recognized
Code: Select all
[root@runeaudio ~]# lsusb
Bus 001 Device 004: ID 1d57:ad02 Xenta SE340D PC Remote Control
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Lircd seems to be running but I've made a mistake somewhere... Can you see where ?
Code: Select all
[root@runeaudio ~]# systemctl status lircd
● lircd.service - Linux Infrared Remote Control
   Loaded: loaded (/etc/systemd/system/lircd.service; disabled; vendor preset: disabled)
   Active: active (running) since Mon 2016-05-02 23:15:06 CEST; 15min ago
  Process: 1686 ExecStart=/usr/sbin/lircd --pidfile=/run/lirc/lircd.pid (code=exited, status=0/SUCCESS)
  Process: 1683 ExecStartPre=/usr/bin/ln -sf /run/lirc/lircd /dev/lircd (code=exited, status=0/SUCCESS)
  Process: 1680 ExecStartPre=/usr/bin/ln -sf /dev/lirc0 /dev/lirc (code=exited, status=0/SUCCESS)
 Main PID: 1687 (lircd)
   CGroup: /system.slice/lircd.service
           └─1687 /usr/sbin/lircd --pidfile=/run/lirc/lircd.pid

May 02 23:15:06 runeaudio lircd-0.9.3a[1686]: Notice: Cannot open /sys/class/rc
May 02 23:15:06 runeaudio lircd-0.9.3a[1687]: Notice: lircd(default) ready, using /var/run/lirc/lircd
May 02 23:15:06 runeaudio systemd[1]: Started Linux Infrared Remote Control.
May 02 23:15:23 runeaudio lircd-0.9.3a[1687]: Notice: accepted new client on /var/run/lirc/lircd
May 02 23:15:23 runeaudio lircd-0.9.3a[1687]: Notice: Cannot open /sys/class/rc
May 02 23:15:23 runeaudio lircd-0.9.3a[1687]: Info: Cannot configure the rc device for /dev/lirc0
May 02 23:15:23 runeaudio lircd-0.9.3a[1687]: Error: could not get file information for /dev/lirc0
May 02 23:15:23 runeaudio lircd-0.9.3a[1687]: default_init(): No such file or directory
May 02 23:15:23 runeaudio lircd-0.9.3a[1687]: Warning: Failed to initialize hardware
May 02 23:15:33 runeaudio lircd-0.9.3a[1687]: Info: removed client


Thank you !
Yann
YannM
 
Posts: 15
Joined: 05 Apr 2016, 16:12

Re: IR Receiver & Remote support

Postby YannM » 05 May 2016, 11:53

I followed my quest but I'm afraid to reach a dead-end :(
Apparently this remote works as a keyboard & mouse and the command "showkey" confirmed this. I didn't find online a way to "transform" the receiver as a basic IR receiver (to be used with any remote).

Would anyone have a suggestion for an USB IR receiver ?

Yann
System: HD -> Wifi -> Pi 3 -> Audiophonic I-Sabre V3 -> Cambridge Audio
YannM
 
Posts: 15
Joined: 05 Apr 2016, 16:12

Re: IR Receiver & Remote support

Postby PeteB » 05 May 2016, 15:31

YannM wrote:... Would anyone have a suggestion for an USB IR receiver ? ...

It sounds like a fun "project" but with respect, are you sure this is worth your time and frustration? One of the first responses I got in my recent IR Remote thread was why I would want to do that in the first place?

It might be easier to just use the new remote you bought, and since it emulates a keyboard, you can (probably) program it to do some basic play/pause/stop functions, using multi-media keys.

Or if you do not like that idea, just get a plain IR sensor for around $1 and three jumper wires, connect it to the GPIO like in the top of this thread, and use that method (?)
PeteB
 
Posts: 421
Joined: 06 Feb 2016, 05:07

Re: IR Receiver & Remote support

Postby YannM » 05 May 2016, 17:48

PeteB wrote:It sounds like a fun "project" but with respect, are you sure this is worth your time and frustration?
[...]
Or if you do not like that idea, just get a plain IR sensor for around $1 and three jumper wires, connect it to the GPIO like in the top of this thread, and use that method (?)

I'm not in a hurry for any success (if there could be one at all).
My DAC takes physically all the GPIO (it's like a second level to the Pi) so I cannot not easily add a simple IR. The actual remote don't work with Rune and it's a really cheap quality. I would like to use of the useless buttons of the amplifier's remote to be able to skip tracks from a playlist, or pause.
System: HD -> Wifi -> Pi 3 -> Audiophonic I-Sabre V3 -> Cambridge Audio
YannM
 
Posts: 15
Joined: 05 Apr 2016, 16:12

Re: IR Receiver & Remote support

Postby PeteB » 05 May 2016, 18:46

Unused buttons will work just fine... :D Is it the same DAC that Rikardo posted, here (?):

http://www.runeaudio.com/forum/audiophonics-i-sabre-v3-dac-es9023-tcxo-t3377.html

If it is, then there will be un-used pins sticking up from the dac board. You only need to find one unused pin for the data connection to a 3-pin IR sensor, the 3.3V supply, and a ground pin.

(I had to solder a small header to my HiFiBerry DAC board, you don't have to do that)
PeteB
 
Posts: 421
Joined: 06 Feb 2016, 05:07

support RuneAudio Donate with PayPal

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 4 guests