Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 03, 2016, 05:29:36 05:29


Login with username, password and session length


Pages: [1]
Print
Author Topic: AliExpress rotary encode  (Read 733 times)
0 Members and 1 Guest are viewing this topic.
dezso
Junior Member
**
Offline Offline

Posts: 80

Thank You
-Given: 29
-Receive: 137


« on: February 23, 2016, 05:09:25 05:09 »

I'm not saying I'm expert on rotary encoders but haven't run in to this problem before.
Got a whole bag of 25 from Aliex $20, for some reason this encoders produce different waveform compare to any other encoder I have used.
Its not the standard 2 bit gray-code, more like 2 bit phase differentiate pulse, the Arduino library what I have used many time with Grayhill's encoder cant read this properly, every tic "detent" is counted as 4 pulse in either direction instead of 1, also both bit always return to high unlike ordinary encoders.

Any of you have worked with this before, what would be the best way to read this encoder?

2nd pic is the aliex waveform
3rd pic is the ordinary encoder waveform






« Last Edit: February 23, 2016, 05:14:01 05:14 by dezso » Logged
dezso
Junior Member
**
Offline Offline

Posts: 80

Thank You
-Given: 29
-Receive: 137


« Reply #1 on: February 25, 2016, 03:31:22 03:31 »

I have searched mane part number to see if I just had a bad batch or this kind of encoder outputs are normal, finally found one similar but not exactly same.
I want to buy another batch of 20-25 but want to be sure I'm getting the right one this time. If you have purchased from Aliex or eBay send me a link please..

Logged
Signal
Active Member
***
Offline Offline

Posts: 102

Thank You
-Given: 47
-Receive: 33


« Reply #2 on: February 26, 2016, 03:31:29 15:31 »

I do not see any problem. Encoders you received are functional. Even if you prefer to use existing library (Arduino) that generates 4 times more events, all you need is a simple wrapper-counter, perhaps with smarter threshold.
Logged

Give a right name to a right game and play it right
solutions
Hero Member
*****
Offline Offline

Posts: 1446

Thank You
-Given: 587
-Receive: 851



« Reply #3 on: March 06, 2016, 05:10:45 05:10 »

These are not "grey code".

Look up "quadrature encoder" - that's what you have.

That top waveform is classical Chinese garbage and is from sloppy manufacturing. The lower one is what is "normal".

You need to pray to your favorite deity that they didn't send you 24 units with the upper waveform or else you just paid $25 for one unit.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC