At 22.2V and using the T-Motor Flame 80A I managed to get about 1250W of electrical power.
Even with field weakening enabled the Komar ‘saturates’ at 1040W…
More worryingly Kucher now freezes when I’m close to max throttle which means I can’t stop the motor unless I pull out the power cord!
Additionally, I enabled the pwm control to see if I can run through RCBenchmark and I get no response when I try to run it there. I have restarted Komar a few times.
Switching the field weakening flag is not enough to get it to work. I strongly advice you to return that option back to its default value to prevent damage to your hardware because keeping it on without proper tuning is highly dangerous.
Pulling the power cord is not necessary to stop the motor. If you are experiencing issues with software, disconnecting the interface cable (USB/UART) is an easier way to stop the motor.
USB is known to misbehave at high power levels especially if the cable is long and unshielded. Try using better/shorter cable, or use UART (it may not be directly accessible with your Komar though).
Please note that RCPWM interface won’t work if you have connected USB and run Kucher or if you enable the UAVCAN interface and send the setpoint via CAN.
On this subject, how can I get the Komar to produce a higher power output? What other settings can I change? The phase current never went above 65A. This can’t be the limit of the ESC (even at 22.2V).
Please advise in which mode do you run Komar: RPM control or voltage control mode? In the RPM control mode, besides the battery voltage, the maximum electrical speed is limited by m.max_eangvel.
If I got you right, the Overload counter is not increasing in your case. It means that it’s not the hardware limit.
If all of the above is fulfilled, the next step to increase the motor speed is to set field weakening mode as it described in the post.
This is the correct formula. Just pi because P is the number of poles. If there were a number of pole pairs, then there should be 2pi. Corrected. Thanks.
I will run a test shortly and send you a screenshot as requested. In the meantime can you please share a .step file of the bullet connector 3D-printed holder?
Additionally, do you have any more ideas why the ESC would not run in PWM mode?
Try to increase the hysteresis of the field weakening turn-on speed m.fw_eangvel_hys. Now it set to 100, try 200 or 300. Otherwise, as you can see from the video, the field weakening mode is immediately turned off.
I would also recommend configuring based on more realistic speed and current values. Typically, the field weakening mode is used to increase the motor speed by 5-10% during maneuvers or takeoff. In your case, the maximum electrical angular velocity without field weakening is approximately 8000 rad / sec. The field weakening mode should be switched on at the electrical angular velocity of 7500 rad / s. Therefore, I would recommend to set the maximum electrical angular velocity to 8500-9000 rad/sec. The hardware phase current limit of the Komar is 100 Amps. The m.max_current parameter is preferred to set to this value therefore.The m.max_id_current parameter set to 20% of m.max_current value, i.e. 20 Amps. You can increase it later if the max required speed is not reached.
Tried your suggested changes but without much change.
Did 3 runs: First with m.fw_eangvel_hys at 200 second with 300.
Third, I increased the m.max_id_current to 30.
Please see attached video containing all 3 runs.
Looking forward to your response.
The 3d model is available in the Komar repository on Github. You can download the assembly from the gallery in the step format as well. The assembly contains all the parts, including the phase connector.
@georgepaschalis the m.fw_eangvel_hys still is not enough to maintain the speed. Try to set it to a big value to confidently activate the field weakening mode, 1000 for instance. You will be able to decrease it later after the m.fw_bemf_ctl_ki and m.fw_bemf_ctl_kp tuning.
Ok after a lot of efforts I got some pretty good results.
At 22.2V I went from: 6500rpm and 1040W to 7100rpm and 1500W.
I found that the hysteresis of the field weakening m.fw_eangvel_hys started to have no effect at a values higher than 1600.
Had to increase the flux weakening current m.max_id_current to 50A and voltage amplification m.fw_volt_boost to 1.5.
Tuning the m.fw_bemf_ctl_ki and m.fw_bemf_ctl_kp had little- to no effect.
Thanks for the help!
See attached video and parameters of the latest run.
Regarding the following, please let me know once the firmware release is out.
We have managed to reproduce your issue. It looks like you have electromagnetic interference on the RCPWM control wires. Because of this, the firmware sets the emergency stop flag and stops the motor. We have fixed this issue in the firmware. The motor will now continue to spin if the correct RCPWM pulse arrives after a failure. We will try to release a new firmware version by next week.