Author Topic: Are there any cheap optical encoder modules with direction output pin?  (Read 1006 times)

0 Members and 1 Guest are viewing this topic.

Offline LinuxHataTopic starter

  • Frequent Contributor
  • **
  • Posts: 372
  • Country: us
Hello.
I need an optical encoder module, simple, no super high speed or resolution. (reference shown on the attached picture)
But it should have two outputs, pulse and dir, like pulse outputs pulses, and dir outputs say 1, when turned CW, and 0 when CCW. Or there might be two pulse outputs, A and B, when A outputting pulses only when turned CW, and B outputting pulses when turned CCW.

Yes I know it can be done in software (Arduino/MCU/etc)
No I don't want to go that way, I need ready to use module as described.

Thanks in advance!
 

Offline jonpaul

  • Super Contributor
  • ***
  • Posts: 3520
  • Country: fr
logic with ICs can detect it

j
Jean-Paul  the Internet Dinosaur
 

Online perieanuo

  • Frequent Contributor
  • **
  • Posts: 884
  • Country: fr
You mean a quadrature encoder.br
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3295
  • Country: gb
You mean a quadrature encoder.br

He specifically does not want a quadrature output, but I don't know if the device he wants actually exists.  There is a single chip solution that would let him use a quadrature encoder; the LS7804 Quadrature Clock Converter.
 

Offline kripton2035

  • Super Contributor
  • ***
  • Posts: 2658
  • Country: fr
    • kripton2035 schematics repository
it is the LS7084 (and not 7804)
and at more than $5 each, it is cheaper to program a small pic or even use a whole arduino nano for this !
 

Offline LinuxHataTopic starter

  • Frequent Contributor
  • **
  • Posts: 372
  • Country: us
As said, this should be readily available module, with no additional circuit or programming required.
Whenever there is a complete device which integrates any of solutions mentioned, I'll be glad to know the part number.
 

Offline kripton2035

  • Super Contributor
  • ***
  • Posts: 2658
  • Country: fr
    • kripton2035 schematics repository
there are also the LS7183 LS7184 in the same serie, or also the HCTL-2000 with parallel output
these are old chips
 

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4584
  • Country: dk
if you don't mind it being prone to a few step of errors when changing direction, you can use a quadrature encoder. Use one channel as direction the other as clock
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12994
These are quadrature optical encoders, so have no contact bounce so you don't need a full state machine to track their movement - it can be done with fairly simple logic, at most four gates and a flipflip.

First, unless it already has them onboard  you need some Schmidt input buffers to get square edges on the quadrature A and B signals.  74LVC2G17 will do the job.  Alternatively you'll need some gates later so use two gates from a 74HC132 quad  Schmidt NAND as inverting buffers.   You've now got buffered A and B (doesn't  really matter if they are inverted). Trigger a D type flipflop (e.g. 74LVC1G74 ) from B to latch A when B rises.   Use its Q and /Q outputs ANDed (or ORed) with A as your up and down pulses.  For idling high, low going pulses, you can use the other two gates of the 74HC132. otherwise you'll be better off with a 74LVC2G32 dual OR gate for idle low, active high pulses.  You'll probably get a runt pulse on either UP or DOWN when you change directions.

However I'd personally throw a PIC10F320 (SOT23-6) at the problem.  Just enough pins for two inputs and two outputs, and just capable enough to program in C using Microchip's XC8 compiler.  For one-offs or small volume program them yourself, but for production you can upload your (fully tested) firmware to MicrochipDirect and have them program them for you for a small fee, so from the point of view of your assembler its just a dedicated custom chip.  There are many alternative 8 bit MCUs that can do the job, so it comes down to what toolchains you are familiar with and the setup and per unit costs of the manufacturer's programming service,
« Last Edit: July 12, 2024, 02:06:41 pm by Ian.M »
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: us
I saved this circuit years ago.  Don't know how well it works.
It's close to what you want.  As others have said, it's probably
cheaper and simpler circuit to use a small MCU instead.
But, you get the idea how to do it in hardware.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12994
Also see https://www.eevblog.com/forum/projects/quadrature-rotary-encoder/ from back in 2017, where I presented a 'TTL' SSI/MSI logic implementation of the classic QEI state machine in five ICs if self-clocked or four if an external clock is available.  Complete with LTspice sim.
 

Offline LinuxHataTopic starter

  • Frequent Contributor
  • **
  • Posts: 372
  • Country: us
Well, I don't know how to explain simpler.

I don't want to solder or build or program ANYTHING.

I'm looking for READY DEVICE, which will have outputs as I asked.
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9798
  • Country: gb
Well, I don't know how to explain simpler.

I don't want to solder or build or program ANYTHING.

I'm looking for READY DEVICE, which will have outputs as I asked.

To the best of my knowledge, you're going to be out of luck then. It's the sort of thing that either needs a bit of S/W decode of a little bit of external logic. I doubt if there is a market for anything else.
Best Regards, Chris
 

Offline SteveThackery

  • Regular Contributor
  • *
  • Posts: 172
  • Country: gb
Well, I don't know how to explain simpler.

I don't want to solder or build or program ANYTHING.

I'm looking for READY DEVICE, which will have outputs as I asked.

The closest you will get is the LS7084. It does exactly what you want but it's a chip, not a module. It looks like you need to be a bit more flexible in your requirements.
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3603
  • Country: nl
Well, I don't know how to explain simpler.

I don't want to solder or build or program ANYTHING.

I'm looking for READY DEVICE, which will have outputs as I asked.

That's possible, but as these are not standard products, your best option is probably to pay someone else's salary to design and build it for you.
 

Offline Kim Christensen

  • Super Contributor
  • ***
  • Posts: 1551
  • Country: ca
Well, I don't know how to explain simpler.
I don't want to solder or build or program ANYTHING.
I'm looking for READY DEVICE, which will have outputs as I asked.

What are you trying to control with this device?
Maybe there is another way that will work with your device.

ie: What's the end goal?
 

Offline StyxF2

  • Contributor
  • Posts: 10
  • Country: au
And here's a board you can use with the LS7084... Just gotta plug in your power, outputs and encoder...

https://www.electronics-lab.com/project/cmos-ttl-quadrature-encoder-using-ls7084/
 

Offline LinuxHataTopic starter

  • Frequent Contributor
  • **
  • Posts: 372
  • Country: us
I have no idea for what this device is for. Most likely, some sort of demo system.
This is for university needs, and I'm in purchases, not in electronics design or manufacturing.
 

Offline Kjelt

  • Super Contributor
  • ***
  • Posts: 6518
  • Country: nl
Well the most used application for a STEP and DIR signal is for controlling a motor or servo driver.
And the most used piece of hardware between a quadrature output handwheel and a motordriver is a cnc controller.

But to answer your question, no I don't know a ready to buy device like that.
You could try searching for "manual servo driver tester" Perhaps on aliexpress.
 

Offline Gyro

  • Super Contributor
  • ***
  • Posts: 9798
  • Country: gb
I have no idea for what this device is for. Most likely, some sort of demo system.
This is for university needs, and I'm in purchases, not in electronics design or manufacturing.

If you are in the purchasing department of a university, you really need to refer the responses received to your engineering department / requesting student. You cannot make a judgement of what is relevant to your requirement and what is not without technical knowledge.
Best Regards, Chris
 
The following users thanked this post: Kim Christensen

Offline Infraviolet

  • Super Contributor
  • ***
  • Posts: 1110
  • Country: gb
"This is for university needs, and I'm in purchases, not in electronics design or manufacturing."
There should be plenty of students, grad students, professors, lab instructors and technicians on hand who can all solve this for you. Most of them will suggest a solution involving buying a quadrature encoder module, then custom designing a PCB (most of them will know how to do this) and ordering it cheap ( from JLCPCB/PCBWay/a more expensive USA/EU manufacturer ) which will easily fit up against the commercial module (same size, same screw hole positions probably) which will have either a microcontroller (I might consider ATTiny85 for this) or a set of digital logic gate/latch ICs on it. The custom PCB will then output the desired form of signal. Let the person who designs the custom PCB give you the exact part numbers they need for the custom PCB(RS/Farnell/Digikey/Mouser make searching for those easy), then just buy those things and handle the payment (likely <£8) to the PCB fab (they person who understands the PCB will have to be the one who prepares the PCB order before payment as they'll know about layer needs, silkscreen requirements, leaded/unleaded/HASL/ENIG... choices as appropriate for the design).
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf