Skip to main content
MSaye.1
Visitor II
December 15, 2022
Question

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

  • December 15, 2022
  • 2 replies
  • 1186 views

..

    This topic has been closed for replies.

    2 replies

    RomainR.
    ST Employee
    December 20, 2022

    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
    December 20, 2022

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

    google: stm32 timer encoder mode.

    hit me up in https://www.linkedin.com/in/javiermuñoz/