HCTL 2022 Quadrature Decoder IC

Status
Not open for further replies.

Madhav Mantri

Newbie level 1
Joined
Mar 15, 2015
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
7
How to get the direction in which motor is moving if I am using HCTL 2022 IC with my STM32F303VG microcontroller and Faulhauber DC motors with encoders. I am using it to improve the performance of my control loop by decreasing the burden on my microcontroller.
 


you should not , the direcction is specified by the microcontoller , the whole idea of this IC is to save you from decoding the signals of encoder and find direction and count up and down !!

if you want to know direction fron the IC , the only solution is to do 2 reads separated by a delay and subtract the result
if result negative then direction is Forward and if positive then it is backward !!
 

The HCTL 2022 U/D output is reflecting the direction of the last input transition.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…