Hi,
I am having a lot of trouble trying to get this chip to spin atall. It vibrates slightly, and on my scope I can see the DRV applying a signal to all 3 motor phases, but it doesn't seem to apply enough torque to overcome the detente torque of the motor (which is very small...)
It has a start at spinning if I run it at very low voltage (6.6V), and gets up to ~2Hz on the rotor before stopping. Higher voltages result in current limiting sooner.
I am setting up the parameters via I2C, and then driving it with a PWM signal. I am successfully reading the parameters back from the EEPROM to confirm they are writing correctly.
For my application, I have to use STM32F0 chip.
The parameters are set as below:
#define WORD16(v) ((v) >> 8), ((v) & 0xFF)
uint8_t configVals[14]={
WORD16(0b0100000000000111),//Set Rm to 0.0679
WORD16(0b0000010100101111),//0x052F),//set Kt value to 0x05 4.6mV/Hz - 1000mv/1700rpm/V/60*7PP, 150uS advance time
WORD16(0b0000100011011010),//1.6A current in open loop,0.7Vcc/s
WORD16(0b0001101110011011),//6.9Hz/s2, 9.2Hz/s, 51Hz open-closed loop ,0.67s align time
WORD16(0b1011111110101110),//1.6A on overtemp, all locks enabled, 2A SW limit, 2.8A HWlim
WORD16(0b1110110001000000),//PWM input, 50KhZ, 3/2Kt,1/2Ktlim, induc+mechAVS en, AVS-VCC, brk on indres, closed loop, 0.37VCC/s,5% min duty,35V/us
WORD16(0b0000000000100101),//Score control 0.5, Dead time 240nS Fill these in from the Datasheet
};
As I say, I am writing and reading them back successfully.
My motor is a 1700kV motor, with a ~0.07ohm Rm. I'm actually using the one from the STMIHM07M1 dev kit for now to trial so that I can run it on my desk, unfortunately my prototype hardware currently has to be run from another ESC since I can't get this to work.
I can't install the EVM software on my computer; we have a lockdown on software install and the labview component is trying to access a whole world of stuff - an unreasonable amount of instalation. Is there an online parameter calculator or something available?
I'm getting back 0x08 and 0x09 for the fault registers, which is "no motor" and "current limit".
Perhaps you could generate the parameters for me for this motor that would "just work"?
Thanks
David