Encoders not working properly. Help needed!

Hi everyone again.

I managed (with your help) to get everything working, except for the encoders.

Yesterday I tried to test the encoders with no luck. When I start Zynthian, I can only use the switch of the encoder, but if I turn it left or right it does not do anything.

I’m using a simple setup for the test:
(In WebConf):

Kit: Custom
Display: HDMI device
Audio: Dummy Device (for the test)
Wiring: MCP23027

From All-in-one PCB:

to RPi through ribbon cable:

And I’m using this simple wiring (first I mounted with caps for deboncing, but after noticing it wasn’t working, I decided to try first without them):


Did anybody have the same problem or seen this behaviour?

Thank you!

Well that means that a lot of things are right… :smiley:
You don’t need to prove the 12c connection to the Allinone board as it obviously works…

Yep. It’s known, largelyt down to ome encoder miswire. Especially if none of them respond.

If you can log onto the zynth try

gpio readall (http://wiringpi.com/the-gpio-utility/)

That should allow you to see which pins are actually responding to input…
and also send us a picture of the advanced wiring set up so we can see which pins map where…

Thank you wyleu!

With gpio readall:

Wiring set up:

Btw I only have two encoders connected, but I imagine it isn’t necessary to have all of them wired, or am I wrong?

Sorry I’ve made a mistake here. I thought your encoders were directly connected to the pi’s gpio pins but you are using an allinone ain’t you. Apologies. I’ll try to remember how to check the I2c data stream… Basically you want to see that as you operate the encoders and switches something happens in the data stream which will confirm if its a hardware problem… Have you got a multimeter? You can at least check with that if the appropriate pins on the 23017 chip are connected to the encoders and that the pin transits from high (+v) to low(0v) as you operate encoder switches and encoder. Sorry once again…

There’s no need to worry! In fact you helped me a lot.

I’ve been checking with a multimeter, and I think I’m closer to the success. This is the behaviour of the encoder (Only one connected to CTRL-1):

Pressing the encoder: Alternates through layers (I think… I’m not very used yet to the menus)
Turning the encoder: Nothing

But…
Turning the encoder while pressing it: Somehow I accessed to the mixer and I see it’s working and changing the volume as I turn the knob.

So here’s my question:

a) Should I rewire the switch (How?)
or
b) It is intended to turn the encoders while pressing them? (If so, I didn’t know that)

Thank you again!

Sounds like your may have some wiring crossed. Make sure that the common pin of the encoder is connected directly to the ov of the allinone board, it sounds like this connection is ONLY made when the encoder switch is pressed… You might have your encoder switch wires the wrong way round…

I feel like a noob… I just needed to swap the encoder wires.

Thank you wyleu!

2 Likes

No thanks is necessary…

…However a :face_with_monocle: is, so if we could have a sound sample of it doing things, then there will be absolutely no need to send @riban round with a flock of killer ravens and an un-feasibly large cricket bat . . .

Of course! I can’t wait to start using it.

I will gladly show you how I’m going to use it (better than ravens and cricket bats). I’d love to help this project in any way I can.

Just let me finish the box and assemble everything :wink:

1 Like

Did someone say cricket-bat?
image

2 Likes

:rofl:
But to be honest, when @wyleu said “cricket bat” I thought of flying mammals.

Or was it insects?

Maybe both!!!

1 Like

Simple soles, you don’t think the bat/cricket duality hadn’t occurred to us…?

… Frankly we’ve got a whole room full of them down in the research labs… :roll_eyes:

1 Like