In the current era of rapid development of motor technology, mastering practical debugging skills is like holding a key to unlock the door to efficient motor operation. Today, we will hold a knowledge feast around three-phase motors, covering motor parameter testing, in-depth analysis of SDK libraries, and practical demonstrations of adjusting parameters in real objects. Whether you are a professional expert in the field of motors or a passionate beginner enthusiast, you can gain something from this sharing. Without further ado, let's embark on this journey of technological exploration immediately! Please watch the video~

In the journey of motor debugging, accurately obtaining motor parameters is like building a stable bridge for subsequent work, which is crucial. Next, let's talk in detail about the testing methods for phase inductance, phase resistance, and pole pairs of three-phase motors.
Three phase motor phase inductance and phase resistance testing
The digital bridge is our powerful tool. First, set the parameters to 250mv and 1kHz, and select the inductance and resistance settings. After everything is ready, use the clamp of the digital bridge to clamp either end of the three-phase motor for testing. To ensure the accuracy of the results, we repeated the test three times and took the average value, which is the average line inductance and line resistance of the motor. The calculation of phase inductance and phase resistance is also very simple. Phase inductance is half of the line inductance, and phase resistance is half of the line resistance.
Three phase motor pole pair test
Use an adjustable power supply, set the parameters to around 5V and 200ma, and then clamp the two ends of the motor with the power supply clamp. Mark the current position of the rotor and gently twist it with your hand. During the twisting process, you will feel a resistance that changes from large to small. The number of times the resistance is felt during one rotation of the rotor is the number of pole pairs of the motor. Through such testing, we can comprehensively understand the basic parameters of the motor and make sufficient preparations for subsequent debugging.
After mastering the motor parameters, let's delve deeper into the secrets of the YS32 series chip motor SDK library. This SDK library is like a treasure trove, where key parameter categories work together to precisely control the operation of the motor.
PWM Parameter
Mainly responsible for controlling parameters related to pulse width modulation. By setting these parameters reasonably, the driving signal of the motor can be accurately adjusted, achieving precise control of the motor speed and torque.
Motor Parameter
This is a set of parameters closely related to the characteristics of the motor itself, covering important information such as the rated power, rated speed, and pole pairs of the motor. Understanding these parameters allows us to better match the motor and control algorithm, ensuring that the motor operates at its optimal state.
HardSource select or enable
These parameters are like switches in a circuit, used to select and enable hardware resources. For example, we can choose which ADC channel to use to collect the motor's current signal and which peripherals to enable specific functions. Reasonably configuring these parameters can fully leverage hardware performance, improve system stability and reliability.
Udc Protect Parameter
Regarding the parameters of DC bus voltage protection. The stability of the DC bus voltage is crucial during the operation of the motor. When the voltage is too high or too low, it may cause damage to the motor and controller. Setting Udc Protect Parameter can monitor the DC bus voltage in real time and trigger the protection mechanism when the voltage is abnormal, ensuring the safe operation of the system.
RPM Parameter
Used to set and monitor the speed of the motor. We can set the target speed of the motor by setting the RPM Parameter according to actual needs. At the same time, the system will provide real-time feedback on the actual speed of the motor, allowing us to understand the operating status of the motor in a timely manner and make necessary adjustments.
Work mode
The YS32 series chip motor SDK library provides multiple working modes such as current loop, voltage loop, power loop, and speed loop. Different working modes are suitable for different application scenarios.
Current loop mode: mainly controls the current of the motor, can quickly respond to current changes, and is suitable for situations with high requirements for current control.
Voltage loop mode: Directly control the voltage, simple to implement, suitable for some scenarios that do not require high control accuracy.
Power loop mode: focuses on the power output of the motor, which can optimize the energy utilization efficiency of the motor.
Speed loop mode: used for precise control of motor speed, widely used in equipment that requires constant speed operation.
We can flexibly choose the appropriate working mode according to actual needs to enable the motor to perform at its best.
After understanding the motor parameters and SDK library parameters, the next step is the practical demonstration of adjusting parameters in real objects. This is a key step in transforming theoretical knowledge into practical operation. Through practical operation, we can more intuitively feel the impact of parameter adjustment on the operation status of the motor.
Preparation before debugging
Before starting debugging, we need to prepare an oscilloscope, current clamp, and demonstration demo. Oscilloscope is like our "eyes" for observing the internal world of a motor, through which we can observe the current waveform of the motor in real time; Current clamp is a specialized tool used to measure the current of a motor, which can be easily clamped onto the motor wire to accurately measure the magnitude of the current; The demo is our platform for motor control and debugging, which integrates YS32 series chips and related circuits, providing us with a complete debugging environment.
Three phase motor phase current test
Connect the oscilloscope and current clamp, then clamp any one of the U, V, and W phases of the three-phase motor with the current clamp, and start the demonstration demo. At this point, through the oscilloscope, we can observe the current waveform of this phase in real time. The current waveform is like a "diary" that records the operating status of a motor. By observing the shape and characteristics of the waveform, we can determine whether the motor's operating status is good.
If the current waveform tends towards a sine wave, it indicates that the motor is in good working condition, with high efficiency, low current noise, and smooth rotation, just like a healthy person's heartbeat is steady and regular. However, if the waveform of the phase current is chaotic and shaking significantly, and the motor also vibrates, it indicates that the parameters in the current SDK library do not match the motor, just like a sick person's body indicators are abnormal. At this point, we need to adjust the parameters. The parameters that usually need to be adjusted include observer PLL parameters, current loop KP parameters, current loop KI parameters, etc.
Parameter adjustment skills
The debugging sequence is very important when adjusting parameters. We suggest setting the SDK library to voltage loop mode first. In this mode, first limit the range of current, set the maximum duty cycle, and then set a ramp up time. Then, based on the parameters of the motor, predict an observer PLL parameter, current loop KP parameter, and current loop KI parameter. When adjusting parameters, follow the principle of going from small to large, and only adjust one parameter at a time. Just like a doctor treating a patient, it is necessary to gradually investigate the problem, identify the cause, and then provide targeted treatment. During the debugging process, we need to constantly observe the current waveform until we achieve the desired effect.
After completing the debugging of the voltage loop mode, we will switch to the desired mode. According to the voltage loop mode, adjust the parameters that have been tested, set the minimum and maximum phase currents and duty cycle, and then adjust the parameters of the target mode. In this way, the motor can operate stably and efficiently in different modes.
That's all for the content about three-phase motor parameter testing, SDK library explanation, and physical parameter tuning demonstration. I hope these practical knowledge can become your capable assistant on the road of motor debugging, allowing you to be more adept in practical operations. If you have any other questions or would like to further explore related content, please feel free to leave a message in the comment section for discussion. Looking forward to meeting everyone again in the next technical sharing!