Using hardware timer encoder mode

Post here first, or if you can't find a relevant section!
Post Reply
samsonwilliams
Posts: 1
Joined: Thu Apr 25, 2024 9:18 am

Using hardware timer encoder mode

Post 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.
User avatar
Bakisha
Posts: 142
Joined: Fri Dec 20, 2019 6:50 pm
Answers: 5
Contact:

Re: Using hardware timer encoder mode

Post by Bakisha »

Try sketch from viewtopic.php?t=1962

It might work for you...
Post Reply

Return to “General discussion”