2024-11-15 04:15 AM
Hello,
We have a 5 pole pair magnet rotor and we have been using STEVAL-CTM009V1 development kit along with NUCLEO-G474RE development board.
First, we did a preliminary testing with a sensorless control (observer+PLL) and after understanding the aspects of the Start-up Profile under Sensorless Startup Parameters in Workbench we got the motor to spin smoothly although the start was a little jerky and the direction of rotation wasn't consistent but took of quite well after 50rpm all the way upto the defined speed.
Second, we now tried to spin the motor with Hall sensor as Speed Sensing Mode and clicked "Start" button under the Control from Motor Pilot. While there was about 0.14A of current drawn from the power supply when we started the control, absolutely no action in the Motor. Waited for a while, before stopping or resetting the operation, and rotated the rotor manually by hand and now Speed Feedback Error showed up. Obvious to note, the motor still didn't spin. Just so you know, we got the Hall angle placement right (mechanically and electrically). Got each of the sensor checked and they are working fine too. They are also connected to appropriate 2,3 & 4 Pins respectively of CON8 on STEVAL-006V1. Also to note, this exact motor was spun using a different controller to validate and verify the unknowns from the Motor side and resolve if any. Motor is fine.
Few observations and settings that remained constant during both of the above 2 operations:
1. A constant whirring sound in the motor as soon as the control was started from the Motor Pilot irrespective of sensored or sensorless control.
2. Open loop was unchecked.
3. Modulation Flags: None.
4. Control Mode: Speed Control
What are we missing? How do we get it running with Hall Sensors? Let me know if you need any info from our end to understand the issue better.
Thanks.
2024-11-18 07:08 AM
We followed the steps as mentioned in the documentation mentioned below suspecting an issue with the hall sensor displacement angle.
(Launch Workbench 6.1.2 -> About -> Documentations -> User Manual -> Hall sensor feedback processing)
Upon following the given instructions, we found the waveforms from the hall sensor and the BEMF conforming to the correct sequence as per the documentation. (Refer image "Phase Bemf vs Hall 1")
Further, we tried the run motor from the controller and the outputs of the U, V, W phases were observed from the power board and it was found that all the PWM waveforms generated from the three phases weren't modulating as observed in sensorless mode. (Refer images "PWM-Sensorless" and "PWM-Sensored" for sensorless and Hall Sensor Mode respectively)
Additionally, the motor failed to run in the other two 'Modulation Flag' settings i.e. Over Modulation and Discontinuous PWM.
The motor being run just fine in sensorless mode fails to run in Hall Sensor Mode. Please let us know what needs to be done to correct this issue.
Thank you.
2024-11-18 07:55 AM
Hello @AkhilDP and welcome to ST community,
First do U, V, W phases and H1, H2, and H3 Hall sensor output are correctly connected?
You can check the HALL signals output with your scope spinning the shaft by hand.
If signals are all active and with a good dynamic, could you generate a project with STO-PLL Sensor Less as main speed sensor and Hall sensor as auxiliary sensor, and when motor is spinning, verify that both STO-PLL and HALL ELectrical ANGLE are aligned (Motor Pilot "Graph&Record" display).
If they are not in phase, you can use Motor Pilot HALL profiler to compute HALL sensor parameters ("5.2.5. Start Hall sensor profiling" chapter in STM32 MC Motor Pilot Start-up guide).
2024-11-19 12:04 AM
Hello @GMA.
We have verified phases U, V, W and Hall Sensors H1, H2, H3 are correctly connected. We did check hall Signal output while spinning it by hand and found them to be correct according to the requisites mentioned in this documentation (Launch Workbench 6.1.2 -> About -> Documentations -> User Manual -> Hall sensor feedback processing). Refer image "Phase Bemf vs Hall 1" (in previous post). The Yellow waveform represents Phase U and Red waveform represents Hall 1 signal outputs.
We proceeded with generating a project with STO-PLL as the main and Hall sensor being the auxillary sensor as you suggested. The graph generated using Motor Pilot "Graph & Record" is displayed below.
But to configure and run the motor pilot HALL profiler, the workbench doesn't show any option to change the current sensing topology to 'Three shunt resistor mode' from Insulated Current Sensors.
What are we missing?
2024-11-19 02:34 AM
Hello @AkhilDP,
According to the electrical angle graph, HALL sensor signals are not connected as expected: angle is increasing for STO-PLL and decreasing for HALL sensor then it means that HALL does not report the same rotation direction.
Motor Profiler tool does not support ICS Curernt sensing topology.
2024-11-20 11:34 PM
Hello @GMA ,
Did a few trials and upon changing the Hall Sensor sequence and repeating the same exercise and below is the graph attached.
This is reporting the same rotation direction.
Also, agreed that Motor Profiler tool doesn't support ICS topology. The Workbench itself doesn't have that drop-down to select Shunt while we followed the steps as you suggested (5.2.5. Start Hall sensor profiling" chapter in STM32 MC Motor Pilot Start-up guide). Now, what is the solution to this? Are there any workarounds?
Just so you, know we are using STEVAL-CTM009V1 kit of which the Power Board is STEVAL-CTM004V1. This is enabled with Shunt as per the datasheet and schematics.