GPIO Pins to control volume

Get help for Volumio here!

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

GPIO Pins to control volume

Postby 404 not found » Tue Apr 19 2016 08:13

solaar1974 wrote:I connected rotary encoders to control tracks and playback/pause. Used PEC11 without detents & with 24detents/24pulse (Bourns) and encoder from minidisc deck Sony MDS-S39 (ALPS). Does not work correctly not one. The script does not have time for short pulses. Tracks switch is not correct. Or no response to the command. Or randomly switching. It is possible to somehow fix at the program level ? Or look self-return rotary encoder or another switch ?
http://www.alps.com/prod/info/E/HTML/En ... 2010H.html


I have the same problem. I decided to editing rotary_class.py
Code: Select all
GPIO.add_event_detect(self.pinA, GPIO.FALLING, callback=self.switch_event, bouncetime=50)
      GPIO.add_event_detect(self.pinB, GPIO.FALLING, callback=self.switch_event, bouncetime=50)

and in the script
Code: Select all
def right_knob_event(event):
   if event == RotaryEncoder.CLOCKWISE:
             subprocess.call(['mpc', 'next' ])
             time.sleep(3.0)

Work well.

There is another way to control the encoder https://github.com/guyc/py-gaugette I installed, test scripts work well. But I'm not a programmer, and correct to control the volume I could not
Random avatar
404 not found
Fresh off the boat
Fresh off the boat
 
Posts: 1
Joined: Tue Apr 19 2016 07:50

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


GPIO Pins to control volume

Postby daroox » Sat Aug 27 2016 16:00

hello everyone,

i am new to this, so excuse the question. Why is not the following command working

Code: Select all
wget https://sourceforge.net/projects/raspberry-gpio-python/files/raspbian-wheezy/python-rpi.gpio_0.5.8-1_armhf.deb
sudo dpkg -i python-rpi.gpio_0.5.8-1_armhf.deb


i get the following message
Code: Select all
Resolving sourceforge.net (sourceforge.net)... 216.34.181.60
Connecting to sourceforge.net (sourceforge.net)|216.34.181.60|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-08-27 16:51:45 ERROR 404: Not Found.

volumio@volumio:~$ sudo dpkg -i python-rpi.gpio_0.5.8-1_armhf.deb
dpkg: error processing python-rpi.gpio_0.5.8-1_armhf.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 python-rpi.gpio_0.5.8-1_armhf.deb


i connect to volumio (installed via hifiberry.exe) via putty using usrname/pwd volumio/volumio.

any ideas...?

thx in advance
Random avatar
daroox
Fresh off the boat
Fresh off the boat
 
Posts: 2
Joined: Thu Aug 18 2016 07:57


GPIO Pins to control volume

Postby Ferrignio » Sat Apr 15 2017 12:32

Hi All

I tried to install volume rotary encoder folloving guide posted by Buckler on first page but it doesn't work on my Raspberry Pi3 with Volumio 2.
In my sd card I can't find the directory "/home/pi" so I create a directory "Scripts" and put the rotary_encoder file and the VolumeKnob.py script inside it.
It OK?
Another question: for compile the script I tried to respect the space between the line by using tab and space button; it's right?
Anybody have some suggestion?

Thanks.
Andrea
Random avatar
Ferrignio
Fresh off the boat
Fresh off the boat
 
Posts: 4
Joined: Sat Mar 25 2017 11:25


GPIO Pins to control volume

Postby balbuze » Sat Apr 15 2017 12:40

I can't really help you for the script, but the guide you followed is for volumio 1.5.
me/pi
In volumio 2 there an user volumio with its home folder /home/volumio and there is no /home/pi
User avatar
balbuze
Moderator
 
Posts: 1898
Joined: Thu May 08 2014 08:42
Location: Isère France


GPIO Pins to control volume

Postby Ferrignio » Tue Apr 18 2017 08:06

Hi Balbuze

Thanks for your replay.
I'll try to lock for a compatible version for Volumio 2.
Random avatar
Ferrignio
Fresh off the boat
Fresh off the boat
 
Posts: 4
Joined: Sat Mar 25 2017 11:25


GPIO Pins to control volume

Postby Crawler » Wed May 10 2017 08:31

HI Everybody, is there a Chance to get a Tutorial how i can Control the Volume with a Rotary Encoder? I have a Raspberry Pi 3 with volumio 2 and a Hifiberry Amp+. I testet the Plugin GPIO Button Controller (Thanks to tomatepasser) and it works great for me. But a rotary encoder is more interesting for me. I know there a lot Tutorials for Encoder but they are Working under v1.55. I am in the beginning with programming and i hope somebody can help me. Did i have to use this websocket API Things? I Read it but dont understand all thus Things. I am Happy to understand the Python basics a littel bit. Im searching for Days but i cant find a easy step by step solution.
Random avatar
Crawler
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Wed May 10 2017 07:58


GPIO Pins to control volume

Postby Crawler » Thu May 25 2017 09:04

Hi Everybody,

Can somebody help me to install the GPIO Lib for Volumio 2.17? Everytime i got a Error 404 lib not found. I want to Control the volume with a rotary encoder. Can Download the Volumio Version 1.5 somewhere, i find the Tutorials tat with an older Version Everything works fine.
Random avatar
Crawler
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Wed May 10 2017 07:58


GPIO Pins to control volume

Postby Redcat » Tue Jul 11 2017 17:49

i have a question:


--2017-07-11 17:11:38-- https://sourceforge.net/projects/raspberry-gpio-python/ files/raspbian-wheezy/python-rpi.gpio_0.5.8-1_armhf.deb
Connecting to sourceforge.net (sourceforge.net)|216.34.181.60|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-07-11 17:11:39 ERROR 404: Not Found.


this is at the end of entering
wget http://sourceforge.net/projects/raspber ... _armhf.deb

how can i get around this? is there a way to get this installed?
User avatar
Redcat
Sunday DIYer
Sunday DIYer
 
Posts: 14
Joined: Fri Jul 07 2017 17:37


GPIO Pins to control volume

Postby Redcat » Thu Jul 13 2017 06:55

Anyone?
User avatar
Redcat
Sunday DIYer
Sunday DIYer
 
Posts: 14
Joined: Fri Jul 07 2017 17:37


GPIO Pins to control volume

Postby ROLO » Fri Aug 04 2017 18:23

I lately stumbled upon this:
https://github.com/foxey/volumio-buddy/
No idea who made it and if it works, but it looks promising. It includes rotary encoder support.
Random avatar
ROLO
Serious Listener
Serious Listener
 
Posts: 56
Joined: Sat Jul 29 2017 10:41

PreviousNext

Return to Help

Who is online

Users browsing this forum: No registered users and 2 guests