Question
STM32 Quadrature Encoder
Posted on February 21, 2017 at 21:50
Hello guys,
I would like to use an quadrature encoder for a motor control application on an STM32F303K8T6.
Unfortunately the hardware gives me the following configuration:ENCODER_OUT_A -> PA2 (TIM2_CH3)
ENCODER_OUT_B -> PA3 (TIM2_CH4)ENCODER_OUT_Z -> PA5 (TIM2_CH1)Is there any possibility to use CH3 and CH4 instead of CH1 and CH2 as timer count input
andCH1 as capture timer value input?The quadrature encoder generates 1024 per machanical revolution and get spinned up to 10krpm.
best regards
#motor-control #quadrature-encoder