Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 24, 2024, 12:06:25 00:06


Login with username, password and session length


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

Posts: 82

Thank You
-Given: 34
-Receive: 137


« on: February 23, 2016, 04:09:25 04: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, 04:14:01 04:14 by dezso » Logged
dezso
Junior Member
**
Offline Offline

Posts: 82

Thank You
-Given: 34
-Receive: 137


« Reply #1 on: February 25, 2016, 02:31:22 02: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: 200

Thank You
-Given: 113
-Receive: 81



« Reply #2 on: February 26, 2016, 02:31:29 14: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: 1826

Thank You
-Given: 656
-Receive: 905



« Reply #3 on: March 06, 2016, 04:10:45 04: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