0
\$\begingroup\$

What is an accurate manner to calculate the rotational speed of a bldc motor using hall sensors and microcontroller units, considering both floating point operations and length of the observed period (between rising and falling of the same sensor and then 180°, between two rising sensors and then 120°, or 1 electrical cycle and then 360°) ? I have found this application from microchip where a constant MINPERIOD and the time between two transitions of the same hall are used. Is it a good way? I am doubtful that without averaging with the other sensors the measurement is not really accurate or that maybe the measured period is too short, but I do not have experience with that.

\$\endgroup\$
0
1
\$\begingroup\$

Depends on what you want and how you will use the reading. Stable reading or accurate reading. Readings taken over a small arc of revolution will be more representative of what is happening but only over short time spans or arc distances, but result in a less stable reading. Extrapolate that angular speed to the entire rotation can introduce inaccuracy since individual variations over that small angular span are extrapolated and applied to the entire rotation which may not be true, though inertia helps even things out.

\$\endgroup\$
2
  • \$\begingroup\$ Ok, if we apply this concept to sensorless control by zero-crossing, it would be better measuring the time between two zero-crossings (t.e. between two phases) to better know where to close the next contact and using the period of 1 electrical rotation to calculate the speed (as measurement unit), right? \$\endgroup\$ – cyberdyne May 3 '20 at 15:21
  • 1
    \$\begingroup\$ @cyberdyne That seems reasonable. At the very least, doing so would reduce the number of calculations required since the measurement is directly applicable to the use, and it seems that time span would be a reasonable compromise between a more stable but less accurate reading over a longer interval for your purposes versus an unstable reading but more accurate reading over a shorter intervalfor your purpose. \$\endgroup\$ – DKNguyen May 3 '20 at 18:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.