symptom:
I can run "RL" and "Lambda" detection in the "Motor Settings"->"FOC" tab successfully. During the "Lambda" detection process, the motor does spin.
The problem is when I try to
"Wizards" -> "Setup Motors FOC" then, after hearing some sound, "VESC Disconnected During Detection"
I checked the voltage for the MCU, there is no obvious drop during the detection. For my case, it's not a MOSFET related issue.
fix:
in conf_general.c
// Increase switching frequency for flux linkage measurement
// as dead-time distortion has less effect at higher modulation.
// Having a smooth rotation is more important.
#ifdef HW_HAS_DUAL_MOTORS
mcconf->foc_f_zv = 25000.0;
#else
mcconf->foc_f_zv = 40000.0; <<<<<<<------------change to your foc_f_zv, for my case 30000.0
#endif
I am confused by the "fix". If foc_f_zv can NOT be set to 40000.0 or exceed MCCONF_FOC_F_ZV, it means all the VESCs with this version (6.5) firmware should meet the same problem. They should not be able to use the "Wizards" -> "Setup Motors FOC".
Is this my specific issue?
My hardware is base on VESC_6_mk5. I changed the mosfet driver from DRV8301 to FD6288Q, INA from AD8418 to INA181.
VESC Lover