Can’t get rotary encoders to work

Any hardware type questions or problems for all other Phidget devices.
Post Reply
vollstock
Fresh meat
Posts: 4
Joined: Thu Nov 28, 2024 3:48 am
Contact:

Can’t get rotary encoders to work

Post 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 :-)
Attachments
IMG_3002.jpg
does nothing
(212.85 KiB) Not downloaded yet
IMG_3003.jpg
works fine
(208.95 KiB) Not downloaded yet
User avatar
mparadis
Site Admin
Posts: 662
Joined: Fri Oct 28, 2011 12:17 pm
Contact:

Re: Can’t get rotary encoders to work

Post 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.
vollstock
Fresh meat
Posts: 4
Joined: Thu Nov 28, 2024 3:48 am
Contact:

Re: Can’t get rotary encoders to work

Post by vollstock »

Thank you so much!
That worked like a charm :-D
vollstock
Fresh meat
Posts: 4
Joined: Thu Nov 28, 2024 3:48 am
Contact:

Re: Can’t get rotary encoders to work

Post 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.
User avatar
Patrick
Lead Developer
Posts: 647
Joined: Mon Jun 20, 2005 8:46 am
Location: Calgary
Contact:

Re: Can’t get rotary encoders to work

Post by Patrick »

The Mujie 600P/R really means 600 cycles per revolution. There are 4 pulses per quadrature cycle.

-Patrick
vollstock
Fresh meat
Posts: 4
Joined: Thu Nov 28, 2024 3:48 am
Contact:

Re: Can’t get rotary encoders to work

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests