Page 1 of 1

Using hardware timer encoder mode

Posted: Thu May 02, 2024 10:35 am
by samsonwilliams
I'm trying to use a Nucleo L432KC board with a quadrature encoder, and I want to use the dedicated hardware timers to decode the encoder pulses.

I've got some experience with Arduino and Teensy, but this will be my first STM32 project, and I'm a little confused as to how all the stm32duino/stm32cube/other HAL stuff fits together. Can somebody point me in the right direction as to the simplest way to utilize the encoder mode on hardware timer TIM2?

Thanks.

Re: Using hardware timer encoder mode

Posted: Fri May 03, 2024 8:25 am
by Bakisha
Try sketch from viewtopic.php?t=1962

It might work for you...