Page 1 of 1
Can’t get rotary encoders to work
Posted: Thu Nov 28, 2024 4:05 am
by vollstock
I have a Quadrature Encoder Phidget attached to a VINT Hub.
I bought a draw wire encoder and it works flawlessly.
However any other encoder I am trying to connect does nothing.
These are the ones I tried:
- Mujie ME38S6-C-(600)-B5G2
E38S6G5-600B-G24N (Some chinese encoder from Amazone)
Both encoders work with 5 Volts and function properly attached to an Arduino. I connect them the same way as the draw wire encoder:
Red: 5 V
Black: Gnd
Green: A
White: B
Any suggestion what to try? I really don’t see the difference?!
Thanks
Re: Can’t get rotary encoders to work
Posted: Thu Nov 28, 2024 10:50 am
by mparadis
Looking at the part number for the Mujie encoder that you bought:
ME: Incremental encoder
38: 38mm outer diameter
S6: 6mm Solid shaft
C: Open collector
600: 600ppr resolution
B: Output signal A/B
5: 5V power
G: Side outlet
2: 2m cable
It looks like that encoder uses an Open collector interface rather than push-pull. The ENC1001 only supports push-pull interfaces because they're the most common these days. You can still interface an open collector encoder, but you'd have to add your own pull-up resistors. This would mean putting 2.2kOhm resistors from both the A and B wires to the 5V wire. Since you already have wire connectors this should be an easy fix.
Re: Can’t get rotary encoders to work
Posted: Fri Nov 29, 2024 2:55 am
by vollstock
Thank you so much!
That worked like a charm
Re: Can’t get rotary encoders to work
Posted: Tue Dec 03, 2024 10:49 am
by vollstock
Do you have any idea, why the encoder sends 2400 pulses per rotation?
It’s the exact one from the picture, that is supposed to send 600.
Re: Can’t get rotary encoders to work
Posted: Tue Dec 03, 2024 4:56 pm
by Patrick
The Mujie 600P/R really means 600 cycles per revolution. There are 4 pulses per quadrature cycle.
-Patrick
Re: Can’t get rotary encoders to work
Posted: Wed Dec 04, 2024 7:54 am
by vollstock
Ah ok, I get it. That is a misleading naming convention then. Thank you so much for clarifying this
So if I understand it correctly that actually gives me a higher spatial resolution of 2400. Nice.