cancel
Showing results for 
Search instead for 
Did you mean: 

Hall Sensor in Steval IPM 30B

hu88
Associate II

I am trying to control BLDC motor with Steval IPM30 B and Nucleo L476RG as controller. In sensor less mode it is working fine but when I am using Hall Sensor it is not rotating at all and its showing speed feedback error at the starting only. How to solve it.

Also what will be the switch configuration in Hall Sensor circuit in IPM30B.Which switches should be ON .

Screenshot 2024-12-03 122241.png

Looking forward to your response.

7 REPLIES 7
GMA
ST Employee

Hello @hu88,

 

Verify that UVW and H1/2/3 are correctly connected.
Once HALL sensor connected, check with a scope that H1/2/3 are toggling as expected.
To ease HALL sensor usage, you can use HALL sensor profiler as described in documentation available through "Workbench tool">About>Documentations>Documentation>"User manual" tab>"Motor Profiler Application Note" link, chapter 5.

Switch configuration depends on the HALL sensor output technology. 
SW9 for pull-up (2-3 +3.3V)
SW13-14-15 for pull-down (open for no pull down)
SW16 for Hall sensor supply
SW10-11-12 (closed for no extra RC filtering)

 

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
hu88
Associate II

Thanks for the reply.

Switch configuration is now clear and we are able to get hall sensor pulses. We have probed it in oscilloscope by rotating the motor manually and observed the pulses.

But when I am trying to run motor it just don't rotate only. As soon as  i hit run motor speed feedback error comes within a second.

I have used profiler to get the hall sensor parameters. I have put the same parameters.

Please tell how to trouble shoot this error. Does changing these hall sensor parameters will have any effect ?

Screenshot 2024-12-04 111822.png

GMA
ST Employee

Hello @hu88,

Did you try using Motor HALL sensor profiler?

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
hu88
Associate II

Yes I used Motor Hall Sensor profiler. 

Is there any starting issue. In sensor less control the operation is smooth. But in hall sensor as speed feedback the motor doesn't even rotate a single turn and speed feedback issue comes.

I tries to tune it also but its having no effect. Even if i give extreme values of PI gains, its having no effect.I think its just a small detail which is missing.

Should I try higher value of capacitance in the filter? or this is a sensor related or tuning issue?

hu88
Associate II

I tried to rotate the same motor using STEVAL Spin 3201 with same hall sensors setting. It is rotating very smooth even at low speed(because max voltage is 45 volts in ST spin3201, so max velocity I can reach is 600RPM, otherwise the max velocity of motor is 3000RPM).

So the hall sensor and motor is correct. Either I am having problem in hardware of board or the program which is being generated.

Please provide some help or suggestions.

GMA
ST Employee

Hello @hu88,

 

Could you check that, when boards are connected, that +5V is present on +5V HALL Sensor pin?
According to board schematics, IPM30B HALL +5V is coming from E5V L476RG board. E5V is the regulator output of VIN input, and by default it is not connected.
If +5V is not present, could you add a wire on X-NUCLEO-IHM09Mx bridge to connect c7_18 (+5V) pin to MC25 (+5V IPMB Pin 25). Red wire:

GMA_1-1733837426093.png

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA
hu88
Associate II

Hey, sorry for the late reply. 

I checked and 5V is coming at the pin 4 of hall sensor connector, in the starting only I made that arrangement.

Hall sensor signals are also 5V peak-to-peak square wave, so that is not the problem.

I am using ST MC workbench 6.3.0, is it anything to do with version ??