Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] How to detect direction of a rotary encoder?

hafrse

Full Member level 3
Full Member level 3
Joined
Aug 6, 2007
Messages
180
Helped
1
Reputation
2
Reaction score
4
Trophy points
1,298
Activity points
2,450
Need some advice on how to build a circuit that generates short to GND only when the encoder is rotated clockwise by using the CLK and DT outputs, the square wave pluses generated from the encoder will be feed into a pitch control circuit (Pitch CLK P1.jpg) together with the grounded detection when the encoder is rotated clockwise (Pitch DIR P2.JPG)

Thanks!
 

Attachments

  • p1.jpg
    p1.jpg
    55.6 KB · Views: 55
  • p2.jpg
    p2.jpg
    19.3 KB · Views: 52
Last edited:
The inputs I have in this vintage device (tape recorder) is Direction detect (Ground when the encoder is rotated clockwise) and clock input (please see the previous images)
--- Updated ---

May be the Pitch Direction is actually to be connected to the DT output of the encoder. Will try that tomorrow
 

Attachments

  • p1full.jpg
    p1full.jpg
    579.4 KB · Views: 50
  • p2full.jpg
    p2full.jpg
    679.7 KB · Views: 46
Last edited:
There should be a 90-degree phase difference between CLK and CLKBAR signals in Optical decoders. Leading Phase or Lagging Phase give Rotation Direction.
 
Sounds like you obtain digital output... Yet maybe if you convert to an analog waveform, here's a dirt-simple rising-falling detector to tell you what direction it's going. Values need adjusting to desired response.

rising-falling detector capacitor integrator op amp 10Hz.png

--- Updated ---

Link runs my schematic in Falstad's animated interactive simulator:

tinyurl.com/2dc56con
 

    hafrse

    Points: 2
    Helpful Answer Positive Rating
Solved, just connected the CLK output to the Pitch CLK input and the DT output to the Direction DET input :)
 

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top