piHPSDR Encoder configuration

99 views
Skip to first unread message

AB5HM, Hans

unread,
Sep 24, 2025, 1:29:33 PMSep 24
to Hermes-Lite
Hi,
i am using a slightly different PCB layout of the V2 controller and i need to change the direction of some of the encoders.
I thought i could do this by swapping the A and B pin assignment in the GPIO Configuration on the startup screen of piHPSDR.
However, modifying that configuration does not have any effect is seems to be ignored and the default configuration is used instead.

Any ideas on how to change the encoder direction?

Best
Hans

Mike Lewis

unread,
Sep 24, 2025, 1:45:01 PMSep 24
to AB5HM, Hans, Hermes-Lite

You can try editing the gpio.props file directly.   See the a  and b line assignments below in my example with 16 and 19. 

 

encoders[1].switch_address=8

encoders[1].switch_pullup=1

encoders[1].switch_enabled=1

encoders[1].top_encoder_address_b=0

encoders[1].top_encoder_address_a=0

encoders[1].top_encoder_pullup=1

encoders[1].top_encoder_enabled=0

encoders[1].bottom_encoder_address_b=19

encoders[1].bottom_encoder_address_a=16

encoders[1].bottom_encoder_pullup=1

encoders[1].bottom_encoder_enabled=1

--
You received this message because you are subscribed to the Google Groups "Hermes-Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hermes-lite...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hermes-lite/5039490d-6c04-4688-9223-1882d88aeed9n%40googlegroups.com.

Hans Moeller

unread,
Sep 24, 2025, 6:31:37 PMSep 24
to Hermes-Lite
Hi Mike... that worked... awesome!

Thanks
Hans

DL1YCF

unread,
Sep 26, 2025, 3:04:12 AMSep 26
to AB5HM, Hans, herme...@googlegroups.com
Long ago there has been a „configuration“ menu in John’s version of piHPSDR, but
if I remember correctly it never actually installed the default values. More
recent versions do not have that menu any longer.

If I remember correctly, one can change the pin assignments by hand-editing
 the props file. Look for

bottom_encoder_address_a
bottom_encoder_address_b




Reply all
Reply to author
Forward
0 new messages