• Hello ES! We could use some help to get us past the finish line on building the new knowledgebase for the forum.
    Can you donate? Please see our fundraising page. Thank you!

BAFANG M215 (BBS01 CAN bus), M315 (BBS02 CAN bus), M510, M560, M820, CR-A101 FOC Open Source EBiCS Firmware for GD32F303 processors

Today, i rode my bike about 3 h( it was bikepark like terrain) and twice happened the situation on which the motor was acting like i was using throttle but I did not. I had to restart the motor to stop that action. Once it occured after uphill and once after downhill. Besides it worked flawlessly.
 
In my case, the torque sensor drift went up to over 900, though that rarely happened. Right now, I've set the pedal threshold to 850
 
Hm, I think we should add a recalibration at runtime, if the idle value (cadence zero and PWM off for example) is not plausible.

We have a double check in resetting the torque counter. The torque has to be greater than the threshold and the PAS counter has to be smaller than the PAS timeout.

C:
    if(MS.torque_on_crank>tq_threshold&&PAS_counter<MP.PAS_timeout)torque_counter=0;//reset counter, if pressure on pedal and pedals rotating


So if you stop pedaling, the assistance will stop also. But especially when riding off-road, it's difficult to keep the pedals completely still enough to prevent a PAS pulse from being triggered. So the assistance is not switched off, if the idle signal is drifting above the threshold.
 
Last edited:
Hm, I think we should add a recalibration at runtime
I've added that feature to the v0.0084 now. The new calibration is executed, if the cadence is zero, the PWM is switched off and the idle value is more than 40mV off the first calibration at startup. Maybe the calibration is triggered, if you rest your leg on the pedal at a red traffic light, you have to try it, I have no M560 on my test bike at the moment. You can check the recent torque value in the calories field
https://github.com/EBiCS/BAFANG_GD3...0/latest_beta/EBiCS_for_M560_BL38_v0.0084.bin
 
Last edited:
Thank you for the feedback. Which version did you use? Can you look at the calories field, before switching off the system next time?
V0.0083
Question: dose this soft work with other display than dpc 245 because I want to change for dpc080? I bought dz41 and motor makes klicking sounds ...
 
Back
Top