Waynemarlow
🚴♂️ Mega poster
The M560 is a powerful motor on single track steep trails and rarely are you able to use its full power other than on fire roads and road.
Thank you for the feedback. Which version did you use? Can you look at the calories field, before switching off the system next time?I had to restart the motor to stop that action.
if(MS.torque_on_crank>tq_threshold&&PAS_counter<MP.PAS_timeout)torque_counter=0;//reset counter, if pressure on pedal and pedals rotating
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 fieldHm, I think we should add a recalibration at runtime
V0.0083Thank you for the feedback. Which version did you use? Can you look at the calories field, before switching off the system next time?
There should be no impact of the used display on the motor behaviour. As long as the display uses the known CAN protocol.bought dz41 and motor makes klicking sounds ...
Hi, @stancecokeI still have the “faulty” sensor. I’ll be able to prepare the motor for testing this issue within a week. It will be an M560 motor with an M510 controller. I assume the mechanical part from the M560 won’t interfere with reproducing the problem.
As the BL3 uses a different start address for the interrupt vector table, you have to recompile the code with different settings. You have to change two files. It's just a matter of a few seconds, if you have installed the tool chain.Could you tell me if there’s any way to adapt the latest version of your firmware for the BL3 bootloader?
I installed dz41 display to M600 and it is ok but with m560 , the motor produced that clicking sound and it was felt a sort of stuggering. Can you explain this - are there different can bus protocols for m600 and 560?There should be no impact of the used display on the motor behaviour. As long as the display uses the known CAN protocol.
I just need to know that there’s a strange menu option in the DZ41 settings, after which the M560 controller burned out, turning to ash with minimal motor activity. I’m actually working on restoring it right now.I installed dz41 display to M600 and it is ok but with m560 , the motor produced that clicking sound and it was felt a sort of stuggering. Can you explain this - are there different can bus protocols for m600 and 560?
The commands that are implemented in EBiCS yet are identical to the original Bafang ones, otherwise they won't work with the display and the Canable tool. Maybe some commands from the original systems are still missing or are not documented at all since now. To see what is different in the DZ41 communication, we would have to sniff on the traffic on the CAN bus with the Canable and a tool like Cangaroo.I’d guess that EBICS CAN communication methods still differ from the original ones
I've just commited the necessary changes for BL3 and the generated bin file to the Github repo:I will provide a version later.
So, I installed the “problematic” torque sensor on the new M510 controller - the one with the BL3 bootloader. The issue repeated exactly: with EBiCS, I have no problems with Walk Mode and the throttle, but the assistance fades out right after startup. The cadence is displayed correctly on the screen.I compared this motor with another M510 running on EBiCS. I found that the controllers are completely identical, so I didn’t touch them.
However, there’s a slight difference in the torque sensor’s marking. After replacing the torque sensor, I got a motor that works fully with EBiCS. Let me remind you again that the “non‑working” torque sensor worked perfectly with the stock firmware.
I can also recall another strange thing about this torque sensor. There were 2–3 cases when, after calibration and a few runs in “Walk Mode,” the motor’s calibration got reset. But this didn’t happen again after multiple calibrations.
Did you test with the v0.0084? If yes, please try the official v0.008 from the latest release first. The 0.0084 will do exactly what you are showing in the video. If the cadence is the zero and the PWM is off, the output will be set back to 740mV.So, I installed the “problematic” torque sensor on the new M510 controller
Hmm… we could give it a try. Do you know which pins exactly these are on the connector?The best would be, if you could read the voltage on the torque output wire of the sensor with a multimeter.
We had the pinout in the other thread: #33Do you know which pins exactly these are on the connector?

Lol, I couldn’t solder the wires to the controller with my Chinese soldering iron - obviously, they used high‑melting lead‑free solder there.The best would be, if you could read the voltage on the torque output wire of the sensor with a multimeter.
Yes, have you tested the v0.008? You should get the same reading as on the multimeter in the calories field.the readings I’m getting are completely normal.
Yeah, I flashed v0.008. The readings in the “calories” field match the multimeter readings, aside from a slight margin of error.Yes, have you tested the v0.008? You should get the same reading as on the multimeter in the calories field.
Then the bike works without issues with the v0.008?The readings in the “calories” field match the multimeter readings
The bike works the same way as on all subsequent EBiCS versions:Then the bike works without issues with the v0.008?
This is related to exact this one single torque sensor?! Strange. If the torque readings are OK in the calories field on v0.008, it must be an issue with the PAS signal... Is the cadence shown correctly, if the motor stops? The PAS signals are strange on this bafang sensors, as we have 3 wires with PAS information. The "normal" quadrature PAS on pins 1+2 and the processed signal with double frequency on pin 4.But we want to get to the bottom of this, right?