Hi Guys,
After some patience I finally was able to get back onto the testing branch with my custom kit(direct wired encoders to gpio). The issue I have now is that the encoders are misbehaving, they are jumping around when I use them. I saw something similiar during one of my builds when I incorrectly wired an encoder but this happens to all 4 encoders and I verified my wiring on the encoders with gpio readall.
I don’t know how to see the output of the encoders but gpio readall at least told me that I was on available pins and gave me the physical to check. The encoders work fine on the stable branch but I thought I would verify with wiringpi in case an update possibly changed a pin assignment.
Anyways, not sure if it is a bug in testing or an issue on my end. Any help would be greatly appreciated.
Hi jofemodo/Riban,
I checked my zyncoder build on testing and it builds error free with custom wiring config using wiringpi.
I ran the zyncoder test on my testing image and it shows me exactly what I am observing in the UI; the rotary encoders respond but will increase/decrease to a value and then jump back to 0. Switches appear to work ok, at least I see the messages. Interestingly enough the “select” encoder doesn’t give me any message > than 2(i.e. encoder will increase to 1 or 2 and then back to 0).
I then put my stable image in and checked my encoders were working fine with no issues. I ran the zyncoder test in stable and it showed the encoders increasing/decreasing by 4, which I believe is correct. I then checked my switches on stable and the zyncoder test script in stable does not see SW1 or 2 when pressed BUT the Zynthian OS is working as expected(i.e. “back and select” switches work).
Now that I think of it, when I run zyncoder test on the testing image the encoders responded 1 PT per detent until they jumped back to 0 whereas I see the encoders moving by 4’s in the stable release. I don’t know if that means anything.
Just so you know, my encoders are KY040 Arduino PCB mount with the resistors removed and no connection to +v, pin A/B from schematic is actually pin B/A to get correct increase/decrease:
Thanks so much, I was getting worried that as the project progresses, those of us with these v1 type boxes would get left behind.
For me, it was the need for a bigger display and no need for zynswitches that led me down the custom zynthian path, I wish I had purchased kit v4 at the start because I had a tough time getting both my custom boxes up and running but I’m here now and they are working good thanks to you!