Hello, I have some questions about driving the motor in pwm mode.
First of all, I can guarantee that the IIC communication is normal and can perform normal read and write operations on the EEPROM.
After setting the recommended parameters of DRV10987TuningGuide, set the speed pin to a square wave with a duty cycle of ten percent. My motor can be started. However, there are the following problems: the jitter is large at startup, and the motor will gradually decelerate until it stops. After a while, it starts again, then gradually slows down to stop. This is a video link:
vc.bilibili.com/.../detail
After debugging, it is found that FaultReg_Reg will read the value 0x04. I thought that the kt value is not set correctly. I follow DRV10987TuningGuide to turn the motor by hand to measure the voltage and frequency of the two phases with oscilloscope. The kt is about 47mv/Hz. The above problem, I will configure CONFIG5, disable LockEn2 (Abnormal Kt), FaultReg_Reg can still read 0x04 (cleared before rereading). Here are my key parameter settings:
DRV10987Q_CONFIG1_Reg ---- 0x0659
DRV10987Q_CONFIG2_Reg ---- 0x2D3F
DRV10987Q_CONFIG3_Reg ---- 0x2440
DRV10987Q_CONFIG4_Reg ---- 0x4178
DRV10987Q_CONFIG5_Reg ---- 0x0009
DRV10987Q_CONFIG6_Reg ---- 0xB9E3
DRV10987Q_CONFIG7_Reg ---- 0x002A