![]() |
[SOLVED] Rotary Encoder doesn't work - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [SOLVED] Rotary Encoder doesn't work (/showthread.php?tid=3354) |
Rotary Encoder doesn't work - Peziman - 01-10-2021 Hey guys! My Installation: - Raspberry Pi 3 - Hifiberry Amp2 - Moode 7.0.1 I want to use a rotary encoder to control the volume. The hardware installation looks like this... Com - 3.3V Pin A - Gpio 14 Pin B - Gpio 15 In the Moode setup screen I active the Rotary Encoder option and changed the last two numbers to 14 15. But the Encoder doesn't work. With a small python script I tested if Pi recognized the states on the 2 Gpio ports. That works! But there's no volume change in Moode.... Has anybody a idea why it doesn't work? Thanks for your help! RE: Rotary Encoder doesn't work - Tim Curtis - 01-10-2021 Couple things: 1. The rotary encoder driver defaults to GPIO 23, 24 and GND. 2,. Pins 14/15 might already be in use https://pinout.xyz/pinout/pin8_gpio14 If you want to get some debug info from the driver then you will need to first turn it off in Audio config then launch it from the command line as in the example below. Code: sudo rotenc 100 2 3 23 24 1 The launch params are documented in the systemd unit file. /lib/systemd/system/rotenc.service Code: # RE: Rotary Encoder doesn't work - Peziman - 01-13-2021 Thanks Tim for your hints. The solution was very simple. I just changed the COM pin on the encoder from 3.3V to GND. Now it works. LG Thomas |