Skip to main content
bendkhilarwa
Associate III
Apr 9, 2016 2:45 PM UTC
Question

Timer, motor _speed

Posted on April 09, 2016 at 16:45

Hello,

I wanna calculate the motor speed using timer of STM32F4. I wanna know the time spended in one revolution.  So , who would  explain for me how can I do that . thanks a lot.
    This topic has been closed for replies.

    11 replies

    Tesla DeLorean
    Guru
    Apr 15, 2016 9:11 PM UTC
    Posted on April 15, 2016 at 23:11

    Ok, if there are two states, you should probably remember what the last state was, so you can determine if it actually changed, and only increment when it changes, not just when it is in the static high state.

    The timers can be configured to count pulses on certain pins. It would be under External Count mode. See also other examples posted to the forum.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..