cancel
Showing results for 
Search instead for 
Did you mean: 

Hi i need your help please How to measure RPM with hall effect secsor ? i will use this task to measure the speed of a bike

MSaye.1
Associate
 
2 REPLIES 2
RomainR.
ST Employee

Hello MSaye.1 (Community Member)

All STM32 embed many general purpose timer and they offer plenty of input captures with filtering feature to precisely measure time per revolution of a wheel (from Hall effect sensor).  

You should take a look at STM32Cube HAL library for TIMER for Input Capture example.

Let look the applications note below, they will help you.

Section 2.3 Timer input capture mode.

https://www.st.com/resource/en/application_note/an4013-stm32-crossseries-timer-overview-stmicroelectronics.pdf

Section 1.3 STM32 timer peripheral basic operating modes

https://www.st.com/resource/en/application_note/an4776-generalpurpose-timer-cookbook-for-stm32-microcontrollers-stmicroelectronics.pdf

Best regards,

Romain,

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Javier1
Principal

You are going to like this https://www.youtube.com/watch?v=xqzWQgpqHmI

google: stm32 timer encoder mode.

we dont need to firmware by ourselves, lets talk