FreeJoy-Team / FreeJoy

STM32F103 USB HID game device controller with flexible configuration
GNU General Public License v3.0
759 stars 142 forks source link

Weird Encoder Issue #187

Open bhavesh-jadav opened 2 years ago

bhavesh-jadav commented 2 years ago

I am using Bourns PEC11R-4215F-S0012 encoder which as 24 indents and 12 pulses. I am using total 12 encoder in my project. I have connected these encoders in button matrix of 9 columns and 6 rows. Encoders common pin is connected to 6 out of 9 columns and data outputs of these encoders are connected to 6 rows. So with this logic I will have total 36 encoder inputs. 12 for push buttons and 24 for A and B signals. I have set all the encoders in 1x mode. Now the problem is when one of the encoder's button are green in physical button screen in the app, device is failing to register input from another encoder. For e.g. in below gif, on the left I do not have any of the encoder's physical button as green, and then I rotate one of the encoder (button 1 and 10 for A and B), it will record the input and flash green on the logical button screen where I get 1 logical button click per 2 indents on both directions. 1

Now on the left screen, one of the encoder's physical buttons are green (button 1 and 10 for A and B). With this if I rotate any other encoder (button 2 and 11 for A and B), device is not recording proper input for the logical button as you can see on the logical button screen on the right side. It only records one direction and sometime it fails to recognize input on both directions. 2

Not sure why this is happening. Any help with this will be appreciated. I have attached my config file below. Encoder_Test.txt

InsaneNemesis commented 1 year ago

Have you found a solution to this? I’m having the same issue.