07-23-2025, 02:34 PM
I have an InnoMaker HiFi Amp Pro on a Pi 4, and am attempting to install a KY-040 rotary encoder for a volume control. I have the encoder connected to GPIO 23 and 24 as is the default, and as soon as I turn the knob, the audio cuts out and does not return until rebooting. The key (button) is connected to GPIO 22 and works just fine. I tried moving the s1 and s2 to GPIO 17 and 27, and still nothing, but at least the audio doesn't cut out. There shouldn't be any pin conflicts I know of.
I also tried changing volume control from hardware to software, no effect.
Also tried another KY-040 rotary encoder and ruled out a defective controller.
Just for curiosity, I wired up the controller on my Pi Zero 2/RaspiAudio Mic+, another amplifier HAT, and it could only increase the volume.
The rotary controller works fine with my Zero 2/MiniBoss, so I'm wondering if there's some incompatibility with amp boards.
All my installations are running 9.3.7
Thanks!
I also tried changing volume control from hardware to software, no effect.
Also tried another KY-040 rotary encoder and ruled out a defective controller.
Just for curiosity, I wired up the controller on my Pi Zero 2/RaspiAudio Mic+, another amplifier HAT, and it could only increase the volume.
The rotary controller works fine with my Zero 2/MiniBoss, so I'm wondering if there's some incompatibility with amp boards.
All my installations are running 9.3.7
Thanks!