Can anyone help me building a Magnetic encoder interfacing circuit ?
Magentic encoder is connected to behind of a DC motor , how can i interface it with uC using H-bridge and count the steps ?
Can anyone help me building a Magnetic encoder interfacing circuit ?
Magentic encoder is connected to behind of a DC motor , how can i interface it with uC using H-bridge and count the steps ?
For 'decyphering' the encoder, it is more typical to act on the rising and/or falling edge of A (or both A and B signal).
When you detect a rising/falling edge then it is just a matter of checking the state of the other signal to determine if you have to increment or decrement the counter.
For a '1x' decoding you act on the rising edge of A.
For a '2x' decoding you act on both rising/falling edges of A.
For a '2x' decoding you act on both A and B rising edges.
For a '4x' decoding you act and both rising/falling edges of both A and B signals.
There are also single-chip Magnetic Encoder with different interface options. Here are applications described for motor control: https://www.ichaus.biz/wp_boost_performance !