Skip to main content
BoboyeOkeya
Associate III
November 2, 2021
Question

Hall Sensor Interface on a General timer

  • November 2, 2021
  • 2 replies
  • 862 views

Hi All,

Can anyone point me to a material to use in configuring a general timer on stm32 to interface with the 3 hall sensors from a bldc motor and How to estimate the speed from it?

This topic has been closed for replies.

2 replies

KnarfB
Super User
November 3, 2021

A terse description is in the G4 series reference manual RM0440.

hth

KnarfB

cedric H
Technical Moderator
November 12, 2021

Hello @BoboyeOkeya​ ,

This is something we do in the X-CUBE-MCSDK available here : https://www.st.com/en/embedded-software/x-cube-mcsdk.html

I would advise you to generate a project with Hall sensor enabled. You will have access to the generated code and be able to look at the timer configuration and see how we build the software algorithm to access to the angle and the speed.

Regards

Cedric