LaitEau
December 10, 2022, 2:31pm
1
Hello.
I have an RPI 4 + AMP100 (Hifiberry), and I’d like to use a rotary encoder to control volume, play/pause, shutdown or reboot.
Here what I did on software and hardware :
But it doesn’t do anything at all…
Am I connecting the cables the wrong way?
Thank you
as far as I can see you have pin B gpio (DT) on 27 and in your picture (DT) on gpio 17 and that is not correct.
and SW (pushbutton) on 17.
so set DT pin b gpio to 17 and SW pushbutton gpio to 27 in the plugin.
or reverse the cables DT and SW on the board and leave the settings in the plugin as they are.
and set the debounce time on 50 milliseconds or so.
1 Like
LaitEau
December 10, 2022, 6:29pm
3
Here what I’ve tried, but still nothing happen (Volumio 3 with Spotify Plugin)
2 Likes
LaitEau
December 10, 2022, 6:39pm
4
Looks like my plugin is not working properly no?
journalctl | grep -i encoder*
Dec 10 18:26:06 litra kernel: bcm2835-codec bcm2835-codec: Loaded V4L2 encode
Dec 10 18:26:36 litra volumio[814]: info: Loading plugin "rotaryencoder2"...
Dec 10 18:26:37 litra sudo[974]: volumio : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/dtoverlay rotary-encoder pin_a=22 pin_b=17 relative_axis=true steps-per-period=2
Dec 10 18:26:38 litra kernel: rotary-encoder rotary@16: gray
Dec 10 18:26:38 litra kernel: rotary-encoder rotary@16: unable to get gpios: -16
Dec 10 18:26:38 litra kernel: rotary-encoder: probe of rotary@16 failed with error -16
Dec 10 18:26:39 litra volumio[814]: error: [ROTARYENCODER2] addEventHandle: stderr: /bin/cat: /dev/input/by-path/platform-rotary@16-event: No such file or directory
1 Like