cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Incremental Encoder signal with stm32h5

eva1000
Associate

Hello community ,

I am newby trying to do a small project  with STM nucleoh563zi  and stumble upon following brickwall .

I need to interface an Incremental encoder that produces 1000pulses per rotation and simply print it to com port  and i searched  as many resources as i could and all of them are pointing / deal with encoders with less pulses such as ky-040  and i tried to replicate and failed all the time .

could you please help me by suggesting me any  resource that can help an absolute beginner to learn to work with encoders with high number of pulses per rotation , 

any road map or suggestion , or simply a step by step guide would help me out a lot 

1 REPLY 1
TDK
Guru

The number of pulses per rotation should not be complicating things here. What example have you tried and what was not working with it?

 

There are lots of examples on how to use an encoder. None on H5, but the setup should be identical. Here is one:

https://github.com/STMicroelectronics/STM32CubeF4/tree/b8a21834c127ecc82c87c982d14de8cb3a65cf56/Projects/STM32469I_EVAL/Examples/TIM/TIM_Encoder

 

If you feel a post has answered your question, please click "Accept as Solution".