Rotary Encoder Pulses to DC voltage

Click For Summary
SUMMARY

This discussion focuses on converting rotary encoder pulses into a DC voltage that reflects the direction of rotation. Participants recommend using a microcontroller with a Digital-to-Analog Converter (DAC) for simplicity and efficiency. Suggested components include the 74F579 8-bit binary counter and the DAC0808 8-bit D/A converter. The integration of these components allows for accurate tracking of the encoder's position, providing a straightforward solution for robotics applications.

PREREQUISITES
  • Understanding of rotary encoders and their A and B pulse outputs
  • Familiarity with microcontrollers and their DAC functionalities
  • Knowledge of digital potentiometers and operational amplifiers
  • Basic concepts of binary counters and their integration with DACs
NEXT STEPS
  • Research microcontrollers with built-in DAC capabilities
  • Explore the functionality of the 74F579 8-bit binary counter
  • Investigate the DAC0808 8-bit D/A converter specifications
  • Learn about integrating quadrature encoders with digital circuits
USEFUL FOR

Engineers, robotics enthusiasts, and hobbyists looking to implement rotary encoders in their projects, particularly those interested in converting digital signals to analog voltages for position tracking.

Mindscrape
Messages
1,854
Reaction score
1
Does anybody know a good way to take the pulses from a rotary encoder and turn them into a DC voltage that would go up for clockwise turning and down for counterclockwise turning? I have the A and B pulses from the encoder, and that's about it as of yet. I also have these chips
http://www.lsicsi.com/pdfs/Data_Sheets/LS7183_LS7184.pdf
and was thinking I could do something similar to what the datasheet suggested: use a digital potentiometer to get a linear gain from an inverting op amp. The only thing is that the AD digital pot they listed doesn't have the resolution I want, and the part count is starting to get up there.

I know this must be pretty standard from the perspective of robotics, and I'm thinking that there must be a good way to get an analog readout of the shaft position that I just haven't come up with yet. Any suggestions?
 
Engineering news on Phys.org
I would take a micro-controller with a DAC function for this. It should be the simplest and quickest way to get this up and running.

I'm not sure what type of resolution you want, but 10-12 bit DACs should not be a problem to find in a mcu.
 
You could run the UP and DN clocks into independent integrators -- diode, resistor, capacitor -- with appropriate time constants, and then to the + & - inputs of an opamp. But it's probably too much of a kludge.

I don't know of a "pretty standard" robotics use for this. Motor controllers I've worked with do the tracking digitally, so I second mdjensen22's micro-controller suggestion. You might do some google-digging for early quadrature schematics and see if there's anything of interest.
 
Run the A and B outputs into the clock and D inputs on a D type flip flop. Q and /Q will switch states when the direction of rotation changes.
 
Mindscrape said:
Does anybody know a good way to take the pulses from a rotary encoder and turn them into a DC voltage that would go up for clockwise turning and down for counterclockwise turning?

The micro-controller suggestion is a good one.

Another option is to use an N-bit counter and a DAC. Many counting chips will count up or down. So, connect the outputs of your Quadrature Clock Converter to the up/down inputs of a binary counter. Then the binary counter feeds the DAC.

example parts that might work:
74F579 8-bit binary counter
DAC0808 8-bit D/A converter
 
asynchronous13 said:
The micro-controller suggestion is a good one.

Another option is to use an N-bit counter and a DAC. Many counting chips will count up or down. So, connect the outputs of your Quadrature Clock Converter to the up/down inputs of a binary counter. Then the binary counter feeds the DAC.

example parts that might work:
74F579 8-bit binary counter
DAC0808 8-bit D/A converter

Yeah, I think I will end up doing something like this because while I have a microcontroller handy, it only has an ADC, not a DAC. Plus I can get handy surface mount parts with counters and DACs this way. Thanks for all the suggestions everybody!
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 63 ·
3
Replies
63
Views
8K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
12
Views
2K
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K