haiyi911 wrote: ↑May 20 2019 9:00am
the controller was powered off,rotating motor was easy.
You are lucky that the motor stops after releasing the throttle stick

. In my case (9-fet hailong-integrated controller) when you release the throttle (without pressing the brake lever), the motor never stops completely and rotates at a speed of 2.4 km/h with sufficient power (do not stop with your hands). Of course, if the switch inside brake lever has been activated, the motor stops completely. But still this is a problem. I remembered the old "bad workaround"
https://endless-sphere.com/forums/viewt ... d#p1387010
and changed
Code: Select all
adc.c
79: ui16_current_cal_b -= 1:
to
ui16_current_cal_b -= 2:
Now the motor (MXUS XF15R) stops completely without brake switch, but kt-lçd3 shows 9W power instead of 0W, when the controller is turned on and after the motor is completely stopped.
https://github.com/stancecoke/BMSBatter ... 0c313f9baf
Regarding the latest commits: I discovered a strange problem - with active driving, my stupid "throttle pressed when power on" protection
Code: Select all
main.c
while (ui8_adc_read_throttle ()> = ADC_THROTTLE_MIN_VALUE);
// ITC_SetSoftwarePriority (ITC_IRQ_TIM1_OVF, ITC_PRIORITYLEVEL_2);
is triggered, and I have to turn off the controller and turn it on again.
I could not understand what was the matter, until I realized that it was the watchdog that was triggered by restarting the firmware. Programmers know better, but I suppose that the processor is already a bit "overloaded" by interrupt handling or something similar..
Latest version without this trouble i checked (and may be +1-2 commts "up", not tested)
https://github.com/stancecoke/BMSBatter ... 0c313f9baf
Who can get debug logs when traveling - please check if there are "System initialized" messages if you didn’t turn off and on the controller again
Regarding the resonances of the rear gear motors ... I replaced the unnamed Chinese hall sensors (marked "613" on the case) in XF15R with Infineon TLE4935L (latch), the best option for motors with an unstable magnetic field (different gaps between magnets, chipped magnets and etc)). And shortened the signal wires from the hall PCB.
https://photos.app.goo.gl/1n3eJMYQQB9qTJN78
The result ... Not so much. The peaks of the resonance at a speed of 7.2 km/h and 11.4 km/h have decreased, but only that. There is almost no difference with the Bafang SWX02 motor ...
Friends who ask to ride my bike with the original or open source KT firmware, exclaim "Wow, did you buy at the nearest sex shop?". I take offense, install a cheap Chinese DMHC controller (STM8S903K3, "unprotected" (downloadable from controller) firmware) with its poor and primitive LCD display, and go further... Without vibrations and resonances ...