Hi zx,
Using hall sensors is one method of controlling the motor. As a beginner, it is easy to understand.
Controlling the motor with hall sensors typically requires checking the hall sensor output and controlling the PWM input by MCU. Depending on the direction of the motor, the PWM sequence is different.
There are other methods that do not require hall sensors.
A good learning platform is the DRV8312-C2-KIT. The DRV8312 is a lower current version of the DRV8332. The kit can control motors using several control algorithms.
Using hall sensors is one method of controlling the motor. As a beginner, it is easy to understand.
Controlling the motor with hall sensors typically requires checking the hall sensor output and controlling the PWM input by MCU. Depending on the direction of the motor, the PWM sequence is different.
There are other methods that do not require hall sensors.
A good learning platform is the DRV8312-C2-KIT. The DRV8312 is a lower current version of the DRV8332. The kit can control motors using several control algorithms.