[PLUGIN] IR Remote Controller feedback thread

Discuss, contribute and orient Volumio development!

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

[PLUGIN] IR Remote Controller feedback thread

Postby wolfram » Fri May 19 2017 18:03

joe_l wrote:In response to wolfram, I believe the harmony remote works with lirc so in theory you should be able to get it working. You would have to get/build some config files and myabe modify the index.js. If you let us know the exact model numbers of your hardware we can probably help you set it up.

I got my volumio box working with this plugin last night (I have had it working with a manual lirc setup for the last year or so). I had to make a folder for my configs (I'm using a Denon RC-1204 remote) and I have a PiFI Digi board which has an IR sensor on GPIO pin 26, so I had to modify the line which sets the dtoverlay. I also had to update volumio as I was running an older version that didn't have the new cmd line client!

Maybe as a plugin suggestion we give the user the option to select the driver and specify the GPIO pin if they are using an ir sensor which uses GPIO in the UIConfig? What do people think?

I started looking at adding this last night but didn't finish.

Thanks a lot for trying to help me. But I'm afraid I don't understand half of what you wrote. As I said, I haven't got a clue about Linux and I don't know how to build config files or modify the index.js. I was hoping this plugin would spare me all that. But I'm willing to learn.

Today I bought an IR receiver and connected it to the pins on my Raspberry the way I saw it in two different tutorials. Like this:

Image

So far I haven't gotten any response when pressing the keys on my remote. I don't even know if it's connected properly. When I start Volumio I get some text saying that "lirc_rpi auto-detected active low receiver on GPIO pin 25". But according to the tutorials it should pin 18. Not sure what that means. And "driver lirc_rpi registered at minor = 0", whatever that indicates.

Concerning my hardware: I have a Raspberry PI 3 and after copying some command I found on the net (cat /proc/cpuinfo) and entering it in PuTTY via SSH, I came up with this:

Hardware : BCM2709
-bash: Hardware: command not found
volumio@volumio:~$ Revision : a02082
-bash: Revision: command not found
volumio@volumio:~$ Serial : 0000000062f081a9

Does that help?

As you see, I'm totally out of my element here. I'm a Windows guy and next to never worked with command lines. And I'm starting to get afraid that I might clutter up this thread with my beginners questions.
User avatar
wolfram
Sunday DIYer
Sunday DIYer
 
Posts: 11
Joined: Thu May 18 2017 18:04
Location: Berlin, Germany

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


[PLUGIN] IR Remote Controller feedback thread

Postby michel8166 » Sun May 21 2017 09:34

wolfram wrote:
joe_l wrote:In response to wolfram, I believe the harmony remote works with lirc so in theory you should be able to get it working. You would have to get/build some config files and myabe modify the index.js. If you let us know the exact model numbers of your hardware we can probably help you set it up.

I got my volumio box working with this plugin last night (I have had it working with a manual lirc setup for the last year or so). I had to make a folder for my configs (I'm using a Denon RC-1204 remote) and I have a PiFI Digi board which has an IR sensor on GPIO pin 26, so I had to modify the line which sets the dtoverlay. I also had to update volumio as I was running an older version that didn't have the new cmd line client!

Maybe as a plugin suggestion we give the user the option to select the driver and specify the GPIO pin if they are using an ir sensor which uses GPIO in the UIConfig? What do people think?

I started looking at adding this last night but didn't finish.

Thanks a lot for trying to help me. But I'm afraid I don't understand half of what you wrote. As I said, I haven't got a clue about Linux and I don't know how to build config files or modify the index.js. I was hoping this plugin would spare me all that. But I'm willing to learn.

Today I bought an IR receiver and connected it to the pins on my Raspberry the way I saw it in two different tutorials. Like this:

Image

So far I haven't gotten any response when pressing the keys on my remote. I don't even know if it's connected properly. When I start Volumio I get some text saying that "lirc_rpi auto-detected active low receiver on GPIO pin 25". But according to the tutorials it should pin 18. Not sure what that means. And "driver lirc_rpi registered at minor = 0", whatever that indicates.

Concerning my hardware: I have a Raspberry PI 3 and after copying some command I found on the net (cat /proc/cpuinfo) and entering it in PuTTY via SSH, I came up with this:

Hardware : BCM2709
-bash: Hardware: command not found
volumio@volumio:~$ Revision : a02082
-bash: Revision: command not found
volumio@volumio:~$ Serial : 0000000062f081a9

Does that help?

As you see, I'm totally out of my element here. I'm a Windows guy and next to never worked with command lines. And I'm starting to get afraid that I might clutter up this thread with my beginners questions.

I'm not getting the remote (apple remote A1294) not working my infrared sensor is on gpio pin 4, is the infrared automatically recognized in volumio? or something needs it to be customized in the software for my case gpio pin 4.

thank you in advance.
raspberry pi 4b 2gb - allo isolator - kali reclocker, allo piano 2.1, raspberry pi official 7-inch touch screen, Heed luna pre + Q-psu power supply, Bryston 7b-nrb mono blocks, Spendor Sp7/1 loudspeakers
User avatar
michel8166
Audiophile
Audiophile
 
Posts: 131
Joined: Wed Apr 05 2017 13:42
Location: the netherlands


[PLUGIN] IR Remote Controller feedback thread

Postby wolfram » Sun May 21 2017 15:39

michel8166 wrote:I'm not getting the remote (apple remote A1294) not working my infrared sensor is on gpio pin 4, is the infrared automatically recognized in volumio? or something needs it to be customized in the software for my case gpio pin 4.

thank you in advance.

As I understand it, the IR sensor has to be connected to the GPIO pin 18, as in the picture I posted. Maybe it works for you that way (it didn't for me).

After getting a TSOP 4838 IR receiver and many hours of reading tutorials, entering commands, getting error messages, installing, de-installing, returning to backup images of earlier Volumio versions and starting over again, I'm ready to give up. I would really love to pause, play and skip tracks with my remote as on a real playback device, without having to reach for my tablet or laptop, but I don't know what more I could try.

Pity, it sounded so good to have a plugin for that.
User avatar
wolfram
Sunday DIYer
Sunday DIYer
 
Posts: 11
Joined: Thu May 18 2017 18:04
Location: Berlin, Germany


[PLUGIN] IR Remote Controller feedback thread

Postby michel8166 » Sun May 21 2017 18:18

I've added the line "lirc_dev and dtoverlay = lirc-rpi, gpio_in_pin = 4" to the /boot/config.txt and I'll get infrared response when I run the commands> sudo modprobe lirc_rpi and> mode2 -d / dev / Lirc0 but somehow it does not work.

The problem is that I only have to use gpio pin-4 the others are already in use for other things.

It's a pity that I need to use Gpio Pin-18 is not another way to make the infrared sensor work with Gpio Pin-4?

Image
raspberry pi 4b 2gb - allo isolator - kali reclocker, allo piano 2.1, raspberry pi official 7-inch touch screen, Heed luna pre + Q-psu power supply, Bryston 7b-nrb mono blocks, Spendor Sp7/1 loudspeakers
User avatar
michel8166
Audiophile
Audiophile
 
Posts: 131
Joined: Wed Apr 05 2017 13:42
Location: the netherlands


[PLUGIN] IR Remote Controller feedback thread

Postby michel8166 » Mon May 22 2017 13:40

Even in addition, I can not use pin 18 because I have the hifiberry digi + pro board on the pi and pin 18 is in use (see link)

Maybe it's possible that it's being implanted so you can choose the gpio pin in the settings of the infrared plugin.


https://support.hifiberry.com/hc/en-us/ ... e-control-
raspberry pi 4b 2gb - allo isolator - kali reclocker, allo piano 2.1, raspberry pi official 7-inch touch screen, Heed luna pre + Q-psu power supply, Bryston 7b-nrb mono blocks, Spendor Sp7/1 loudspeakers
User avatar
michel8166
Audiophile
Audiophile
 
Posts: 131
Joined: Wed Apr 05 2017 13:42
Location: the netherlands


[PLUGIN] IR Remote Controller feedback thread

Postby wolfram » Mon May 22 2017 14:40

As I said, using GPIO pin 18 didn't help me much either. Even though I got response like you when using the modprobe lirc command.
User avatar
wolfram
Sunday DIYer
Sunday DIYer
 
Posts: 11
Joined: Thu May 18 2017 18:04
Location: Berlin, Germany


[PLUGIN] IR Remote Controller feedback thread

Postby JustBoom » Mon May 22 2017 22:39

You need to use BCM 25 (pin 22) currently as BCM 18 (pin 12) is already used by most I2S audio cards.

See here for details - https://pinout.xyz/pinout/amp_hat

For the next update of the IR plugin, we are working with Michelangelo / Volumio to deliver capability for more​remotes by standard, capability for changing GPIO pin for IR receiver and maybe we should also add ability to upload a lirc config file and have it automatically appear with proper name in the drop down menu. Also the ability for the system to learn remotes too.

Basically what we want, is all of the functionality of lirc but in a really easy to use graphical interface.
JustBoom - Affordable High Quality Audio for Everyone!
https://www.JustBoom.co
User avatar
JustBoom
Sunday DIYer
Sunday DIYer
 
Posts: 13
Joined: Sun Nov 06 2016 13:41
Location: United Kingdom


Re: [PLUGIN] IR Remote Controller feedback thread

Postby michel8166 » Tue May 23 2017 07:53

JustBoom wrote:You need to use BCM 25 (pin 22) currently as BCM 18 (pin 12) is already used by most I2S audio cards.

See here for details - https://pinout.xyz/pinout/amp_hat

For the next update of the IR plugin, we are working with Michelangelo / Volumio to deliver capability for more​remotes by standard, capability for changing GPIO pin for IR receiver and maybe we should also add ability to upload a lirc config file and have it automatically appear with proper name in the drop down menu. Also the ability for the system to learn remotes too.

Basically what we want, is all of the functionality of lirc but in a really easy to use graphical interface.

Thank you I wil try BCM 25 (pin 22) today en let you know if it works.

Verstuurd vanaf mijn HTC 10 met Tapatalk
raspberry pi 4b 2gb - allo isolator - kali reclocker, allo piano 2.1, raspberry pi official 7-inch touch screen, Heed luna pre + Q-psu power supply, Bryston 7b-nrb mono blocks, Spendor Sp7/1 loudspeakers
User avatar
michel8166
Audiophile
Audiophile
 
Posts: 131
Joined: Wed Apr 05 2017 13:42
Location: the netherlands


[PLUGIN] IR Remote Controller feedback thread

Postby joe_l » Tue May 23 2017 08:32

It's good to know the plugin is going to be updated, thanks :D

In the meantime if anyone wants to use a different GPIO I just ended modifying index.js at line 221:

221 exec('/usr/bin/sudo /usr/bin/dtoverlay lirc-rpi gpio_in_pin=25', {uid:1000,gid:1000},

I changed gpio_in_pin=26 as my IR sensor is on GPIO 26 and this worked.

the file is at /data/plugins/accessory/ir_controller/index.js (if I remember correctly)

Unfortunately I can't help or check anything at the moment as my main PC PSU died.
Random avatar
joe_l
Fresh off the boat
Fresh off the boat
 
Posts: 2
Joined: Fri May 19 2017 08:48


[PLUGIN] IR Remote Controller feedback thread

Postby michel8166 » Tue May 23 2017 11:37

JustBoom wrote:You need to use BCM 25 (pin 22) currently as BCM 18 (pin 12) is already used by most I2S audio cards.

See here for details - https://pinout.xyz/pinout/amp_hat

For the next update of the IR plugin, we are working with Michelangelo / Volumio to deliver capability for more​remotes by standard, capability for changing GPIO pin for IR receiver and maybe we should also add ability to upload a lirc config file and have it automatically appear with proper name in the drop down menu. Also the ability for the system to learn remotes too.

Basically what we want, is all of the functionality of lirc but in a really easy to use graphical interface.


Ok @JustBoom i changed the gpio pin (4) to gpio 25 and still not successful while I get responsive from the command (mode2d / dev / lirc0) so just created my own lirc (squeezebox3) en now its works :D

I have downloaded the lirc file, see link.

http://lirc.sourceforge.net/remotes/


By the way i use a remote sensor from an old marantz dv 4200 (RC6200DV part number RC901) and use a logitech harmony one remote controll with a squeezebox 3 software With which it works now.

Or something wrong with the lirc file of the apple A1294 remote or the harmony one is not complatible with the apple remote Or does not work well.

At least for me it works and I'm happy.

Image


Image
raspberry pi 4b 2gb - allo isolator - kali reclocker, allo piano 2.1, raspberry pi official 7-inch touch screen, Heed luna pre + Q-psu power supply, Bryston 7b-nrb mono blocks, Spendor Sp7/1 loudspeakers
User avatar
michel8166
Audiophile
Audiophile
 
Posts: 131
Joined: Wed Apr 05 2017 13:42
Location: the netherlands

PreviousNext

Return to Development talks

Who is online

Users browsing this forum: No registered users and 1 guest