Lebowski
10 MW
Based on demand I've decided to start with adding field weakening to my controller. This should (fingers crossed
) allow the motor to spin faster than what you would expect from the Kv and battery voltage.
Before starting with this though I had another look at the loop filter coefficient. Some people reported the controller having difficulties when giving suddenly full throttle, especially for high erpm motors with high inductance. The controller would interrupt power delivery and go into recovery, before continuing delivering power. Kind of like a hickup so to speak.
Since for good field weaking you need a high erpm motor with high inductance, I decided to have another look at the loop filter coefficients. Goal was to be able to have the motor spin up under full throttle with no hickups. The I used is my small RC motor with added (external) inductance. The motor itself is about 15 uH, but with an external 80uH the total was 95 uH. The max rpm (14k) together with 7 pole pairs means the max erpm was set at 100k-erpm.
With the standard (autocompleted) settings the motor did indeed conk out a few times when spooling up. The main culprit was found to be in the filtering menu (h in the main menu)
option b here has a default of 100Hz which turns out to be way too low. Experimenting showed it should be as high as possible, which in practise means it should be set to 10% of the value of f_sample (option h in menu a). This will become the new default value starting from version 2.50 (which will,if all goes well, be the first version with field weakening).
Looking at the internal variable output of the controller (mainly the signal amplitude, e, see manual slide 20) and speed (phi_int, b) some ringing was visible which was reduced by changing the loop filter coefficient to
Again, these will (most probably) be the new defaults for version 2.50
The setup shown above performed equally well for the RC motor with added inductance (total 95uH) and without added inductance (15uH). Of course for both cases the motor inductance in the FOC menu has to be correct, so I re-calibrated when I removed the external inductance. I tried the new settings with my 10kW scooter hub and was found also to be good.
Before starting with this though I had another look at the loop filter coefficient. Some people reported the controller having difficulties when giving suddenly full throttle, especially for high erpm motors with high inductance. The controller would interrupt power delivery and go into recovery, before continuing delivering power. Kind of like a hickup so to speak.
Since for good field weaking you need a high erpm motor with high inductance, I decided to have another look at the loop filter coefficients. Goal was to be able to have the motor spin up under full throttle with no hickups. The I used is my small RC motor with added (external) inductance. The motor itself is about 15 uH, but with an external 80uH the total was 95 uH. The max rpm (14k) together with 7 pole pairs means the max erpm was set at 100k-erpm.
With the standard (autocompleted) settings the motor did indeed conk out a few times when spooling up. The main culprit was found to be in the filtering menu (h in the main menu)
Code:
a) autocomplete
b) throttle current filter -3dB freq: 4100 Hz
c) error current 50% step response time: 5.005 msec
d) induction position filter 45 degree delay speed: 3.19 k-erpm
e) drive 2 speed filter 50% step response time: 228.4 msec
z) return to main menu
option b here has a default of 100Hz which turns out to be way too low. Experimenting showed it should be as high as possible, which in practise means it should be set to 10% of the value of f_sample (option h in menu a). This will become the new default value starting from version 2.50 (which will,if all goes well, be the first version with field weakening).
Looking at the internal variable output of the controller (mainly the signal amplitude, e, see manual slide 20) and speed (phi_int, b) some ringing was visible which was reduced by changing the loop filter coefficient to
Code:
a) autocomplete
phase control loop, drive 3
b) 1st order: 480
c) 2nd order: 48.0000
d) 3rd order: 0.5999
phase control loop, drive 2
e) 1st order: 480
f) 2nd order: 48.0000
g) 3rd order: 0.0299
amplitude control loop
h) 1st order: 200
i) 2nd order: 3.0000
j) 3rd order: 0.0000
k) maximum amplitude: 100 %
z) return to main menu
Again, these will (most probably) be the new defaults for version 2.50
The setup shown above performed equally well for the RC motor with added inductance (total 95uH) and without added inductance (15uH). Of course for both cases the motor inductance in the FOC menu has to be correct, so I re-calibrated when I removed the external inductance. I tried the new settings with my 10kW scooter hub and was found also to be good.