stancecoke
Minor legend
Have you tried to do a factory reset (calibrate torquesensor)?The only thing I can think of is that reading/writing 3203 on Ebics is accessing a damaged part of my controller’s EEPROM.
Have you tried to do a factory reset (calibrate torquesensor)?The only thing I can think of is that reading/writing 3203 on Ebics is accessing a damaged part of my controller’s EEPROM.
Yes, I’ve tried it. Most parameters get reset, but not 3203. The values I tried to write appear there, but they aren’t actually stored in the controller. I also tried loading the original firmware header into the controller and setting the rest of the values to FF (to overwrite the existing data). After loading a normal EBiCS firmware, the problem is still there. BESST and BESST Pro can’t read this data either when using the EBiCS firmware. With the original firmware, this parameter block reads and writes normally.Have you tried to do a factory reset (calibrate torquesensor)?
Hm, I have to check this, but I can't test it with a M560, as I don't have one any longer.but they aren’t actually stored in the controller.
Most likely, there’s no need for further testing. My controller is indeed behaving strangely. For example, it keeps supplying voltage to the display (any display, any firmware) even after being turned off — the display then shows error 30 due to a lack of data.Hm, I have to check this, but I can't test it with a M560, as I don't have one any longer.
Hm, this has no effect on the values, that EBiCS is using for the 3203 parameters. EBiCS is using the default parameters from the config.h on the very first install. After that it reads the values from the virtual EEPROM.In the end, I managed to write the “3203” parameters using the original firmware and then flashed the rest with Ebics.
I tried it on the M215, as it is on my workbench at the moment and the CAN communication is identical to the M510/M560 branch. For me it works as expected. The values can be read and written and the last setting is present after a restart of the controller.I'll check it later!

I tried pressing hard on the pedal while simultaneously turning on the motor. At first, the motor would only start with a strong pedal press, but after just a few pedal turns, it would start with the slightest touch of the pedal.The torque signals drifts a lot obviously. If you restart the system, the offset is calibrated again, that solves the issue of course.
We have two possibilities:
1. increase the threshold to a value even higher than 800
2. Recalibrate the offset from time to time at runtime, if there is obviously no force on the pedal. We would need to find a condition that lets us identify this situation reliably.
Can you write down the torque value from the Calories field without load on the pedal in the various situations? (right bin file required, see #569)but after just a few pedal turns
This is a feature of the torque sensor. If you turn on the motor with strong pedal pressure, the sensor shows 740 mV up to this pressure, and then the voltage rises sharply to, say, 2500 mV. After a few pedal revolutions, the sensor resumes normal operation.Can you write down the torque value from the Calories field without load on the pedal in the various situations? (right bin file required, see #569)
?! You say, the torquesensor itselfs does a recalibration at runtime?!After a few pedal revolutions, the sensor resumes normal operation.
Yeah. I don't know what the reason is.?! You say, the torquesensor itselfs does a recalibration at runtime?!
I never checked that.
That would be a contradiction to your experience with the self acceleration.
Therefore, I asked you to write down the values in the calories field in the various situationsI don't know what the reason is.
I got a new M315 controller now, as expected it's the same controller as on the M215.So I have to get a new controller before I can start testing on the real M215 motor
The code is in the M510+M560 branch already:Could you put a version of ebics on github with the added ability to adjust the throttle progression?
The parameters are defined in the config.h and applied during the initialisation. The only parameter that is directly defined in the main.c is the shift factor.There's no PI parameter adjustment in main.c?
It was easy to fix, it's working now.PAS is not working yet, I have to check this now.
Is it correct, that the BBS01 has a max cadence of just 75/min at 39V with no load?! I get this with the original Bafang firmware and with EBiCS also....tests on the roller trainer.
I found, that the original controller of the M215 (that I got as defective with a burnt controller) was labelled with 48V/12A, so I guess the motor is wound with more turns than the 36V version. At 49V the motor reaches a max cadence about 90/min without load.the BBS01 has a max cadence of just 75/min at 39V with no load




No volunteers here? I thought the BBS01/BBS02 is still quite popular in the DIY community!so if you want to try it,
Yes, I need some time to try it. I am moving to a new house. So I will.No volunteers here? I thought the BBS01/BBS02 is still quite popular in the DIY community!
I've changed the title and the first post of this thread.Also I suggest add the M315/BBS02S CAN to your titles
BAFANG M215 (BBS01 CAN bus), M315 (BBS02 CAN bus), M510, M560, M820, CR-A101 FOC Open Source EBiCS Firmware for GD32F303 processors
