Rotary Encoder Pulses to DC voltage

AI Thread Summary
To convert rotary encoder pulses into a DC voltage that reflects direction, using a microcontroller with a DAC is recommended for simplicity and effectiveness. The discussion highlights the potential of integrating A and B pulse outputs into a binary counter that can feed a DAC, allowing for accurate voltage representation of shaft position. Suggestions include using specific components like the 74F579 binary counter and DAC0808 for implementation. While some participants mention the complexity of using integrators, the microcontroller approach is favored for its straightforwardness. Overall, leveraging a microcontroller with DAC capabilities or a binary counter with a DAC is seen as the most efficient solution.
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!
 
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Back
Top