Hello,
I’m trying to get my rotary encoder to work but failed so far. What I’m using:
- I’m switching from HifiBerry to Volumio with an RPi 3B+ and a HifiBerry AMP2
- With HifiBerry I have a working rotary encoder accoding to this article:audiocontrol2/rotary-controller-plugin.md at master · hifiberry/audiocontrol2 · GitHub
- my configuration for the 5 pins is
- clk = 23: GPIO23 = RPi PIN16
- dt = 24: GPIO24 = RPi PIN18
- sw = 25: GPIO25 = RPi PIN22
- GPIO3v3 = RPi PIN 1
- GPIO_GROUND = RPI PIN20
- this configuration is working without any issues in HifiBerry
- in Volumio I have installed the Rotary Encoder plugin in version 1.2.2 and configured the First Rotary Encoder according to the above mentioned pins CLK, DT and SW
- problem is that I get no response on using the rotary encoder
What is wrong with that configuration? Any help is appreciated.
Regards
steamfan
Which functions did you configure in the plugin (turn left/right, click)?
This is my configuration
Global Settings
Long Press Threshold In Milliseconds: 1000
First Rotary Encoder
CLK Pin Number: 22
DT Pin Number: 24
SW (Switch) Pin Number: 25
Choose Coding: Default
Detent Action: Control Volume
Button Action: No action
Long Press Action: No action
Second Rotary Encoder
CLK Pin Number: 0
DT Pin Number: 0
SW (Switch) Pin Number: 0
Choose Coding: Default
Detent Action: No action
Button Action: No action
Long Press Action: No action
With journalctl I was able to access the log file while turning the knob:
May 22 15:19:07 kueche volumio[1240]: 44
May 22 15:19:07 kueche volumio[1240]: % Total % Received % Xferd Average Speed Time Time Time Current
May 22 15:19:07 kueche volumio[1240]: Dload Upload Total Spent Left Speed
May 22 15:19:07 kueche volumio[948]: info:
May 22 15:19:07 kueche volumio[948]: ---------------------------- Client requests Volume 44
May 22 15:19:07 kueche volumio[948]: info: VolumeController::SetAlsaVolume44
May 22 15:19:07 kueche volumio[948]: info: CoreStateMachine::pushState
May 22 15:19:07 kueche volumio[948]: info: CoreCommandRouter::volumioPushState
May 22 15:19:07 kueche volumio[948]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
May 22 15:19:07 kueche volumio[1240]: [155B blob data]
May 22 15:19:07 kueche volumio[1240]: {"time":1621696747413,"response":"volume Success"}44
May 22 15:19:07 kueche volumio[948]: info: CoreCommandRouter::volumioGetQueue
May 22 15:19:07 kueche volumio[948]: info: CoreStateMachine::getQueue
May 22 15:19:07 kueche volumio[948]: info: CorePlayQueue::getQueue
May 22 15:19:08 kueche volumio[1240]: 39
May 22 15:19:08 kueche volumio[1240]: % Total % Received % Xferd Average Speed Time Time Time Current
May 22 15:19:08 kueche volumio[1240]: Dload Upload Total Spent Left Speed
May 22 15:19:08 kueche volumio[948]: info:
May 22 15:19:08 kueche volumio[948]: ---------------------------- Client requests Volume 39
May 22 15:19:08 kueche volumio[948]: info: VolumeController::SetAlsaVolume39
May 22 15:19:08 kueche volumio[948]: info: CoreStateMachine::pushState
May 22 15:19:08 kueche volumio[948]: info: CoreCommandRouter::volumioPushState
May 22 15:19:08 kueche volumio[948]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
May 22 15:19:08 kueche volumio[1240]: [155B blob data]
May 22 15:19:08 kueche volumio[1240]: {"time":1621696748245,"response":"volume Success"}39
May 22 15:19:08 kueche volumio[948]: info: CoreCommandRouter::volumioGetQueue
May 22 15:19:08 kueche volumio[948]: info: CoreStateMachine::getQueue
May 22 15:19:08 kueche volumio[948]: info: CorePlayQueue::getQueue
But unfortunately I get no change in sound volume.
Ich versuche morgen mal einen Testaufbau mit einem frischen Volumio Image.