+ Post New Thread
Results 1 to 2 of 2
  1. #1
    Newbie level 3
    Points: 587, Level: 5

    Join Date
    Jul 2012
    Posts
    3
    Helped
    0 / 0
    Points
    587
    Level
    5

    How to use hall sensor of BLDC motor to calculate rpm of motor

    Hi.........

    I want to build a bldc motor controller. I want to use the reading of hall sensor for rpm measurement also.

    Should I use interrupts of one of hall sensor and start timer and then do the calculations
    But what in case of overflow of timer

    Kindly suggest some other method

    Thank you..........

    •   AltAdvertisement

        
       

  2. #2
    Member level 1
    Points: 1,374, Level: 8

    Join Date
    May 2009
    Posts
    32
    Helped
    0 / 0
    Points
    1,374
    Level
    8

    Re: How to use hall sensor of BLDC motor to calculate rpm of motor

    You may use the hall sensor pulse change to trigger an interrupt.
    Then you can measure the time span between each interrupt.
    A little bit of basic math to get the frequency in RPM and done!

    In case of overflow you should think better about the timer clock.
    You should use a timer with at least 16-bit with a prescaler.
    Then you can drive it with a low frequency oscillator like 32.768Khz.

    But depending of your motor, you shouldn't need a separated oscillator assuming that you're going to use a MCU to do it.

    Also you can do different measurements, you measure the time between two hall sensors or the period of only one.
    In case of measuring between two hall sensors, the period will be shorter, thus you will probably have no overflows.



--[[ ]]--