Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I wish to be able to have a encoder quadrature signal that I could set the frequency to some specified values (from 10 to 60 Hz). I have a function gen that fulfills the freq requirements but it has only one output.

So the question: is there some kind of circuit (analog or IC) that I could use to add 90 degrees of phase to a signal generated by a function gen, and then use both as they were the outputs of the encoder. It means that the gain should be unitary as well.

If something got misunderstood please ask.

Thanks for any help!!!

share|improve this question
Whole bunch of inverters ought to do the trick! (Just kidding, don't try that.) – Nick Halden Sep 14 '12 at 15:59

3 Answers

up vote 2 down vote accepted

I would try following approach:

  1. Set the frequency of the function generator 2 times higher then the desired frequency (so 120Hz if you would like to have 60Hz)
  2. Build the divider by 2 with quadrature output with 74** logic chips. There are many solutions available, schematic of the one that could work is shown below *). It uses one chip with two D flipflops (for example 74??74) and one 74??86 chip with 4 xor gates (only 2 are used).

div /2 with quadrature output

*) I have just drawn it without any simulations or prototyping. It is not guaranteed to work, but you get the idea.

share|improve this answer
Hi there, @mazurnification. Thanks so much for helping. I've just tested your idea and it works as expected. Couldn't ask for better. Really appreciate the drawing. Thanks again! And thanks all of you other guys. – Bergamin Sep 17 '12 at 19:35

You don't really need 90° of phase shift across the whole frequency range you're interested in, you just need enough of a fixed delay so that the circuit you're driving can distinguish the two edges.

A simple R-C circuit followed by a buffer or gate should do the trick; if you use an XOR gate, you can use the other input of the gate to reverse the apparent direction of movement by switching it from low to high.

share|improve this answer

Like Dave says an RC filter will give you a delay, which emulates the quadrature signal. Use a Schmitt-trigger to follow the filter. Unless you use a potmeter for the resistor the RC time constant will be fixed, while your frequency varies. That means that the phase shift will vary as well. To make sure you don't get more than 180° shift you could calculate the RC time for about 90° at the highest frequency, then at the lower frequency it will be less than that. 90° at 60 Hz is 4 ms, then depending on the Schmitt-trigger's threshold levels the RC time constant should be around 5 ms. A 4.7 kΩ resistor + a 1 µF capacitor will do the trick, or 47 kΩ + 100 nF, for instance.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.