2025-08-22 12:56 AM
Hello,
I’m testing a motor with integrated Hall sensors for which I don’t have the datasheet and that I can’t disassemble. From the tests I’ve done, it appears to be a 4-pole motor with Hall sensors spaced 120 mechanical degrees apart.
I first tested the motor in voltage mode without using the Hall sensors: it runs smoothly, doesn’t overheat, and spins correctly, so the pole count seems right. Then, I moved jumpers 5, 6, and 7 to connect the Hall signals to the microcontroller, powered them at 5 V with jumper 3, and checked the H1, H2, H3 sequence with an oscilloscope. The signals are present and in sequence.
However, when I try to start the motor, it needs a manual push to get going and then it immediately ramps up to maximum speed. Also, I don’t see any speed feedback on the Motor Pilot, and I can’t change the target speed. If I try enabling polling of HALL_SPEED or HALL_EL_ANGLE from the registers, I get the following log error:
[WARNING] - MotorControlRegistersBank: Accessing register [3857] HALL_SPEED resulted in error[5]. Changing register's access accordingly to avoid getting this error again
What am I doing wrong?
I’ve attached some screenshots. Thanks in advance to anyone who can take the time to help.
2025-09-02 5:36 AM
There is a parameter missing in your project for Hall sensing. It is the placement electrical angle. Without this parameter, the firmware will not function properly. Additionally, the two parameters HALL_SPEED and HALL_EL_ANGLE are not managed by the firmware for the 6-step algorithm. Therefore, they should not be available in the Motor Pilot, sorry for this inconvenient.
Best regards.
Fabrice