stancecoke
Minor legend
OK, thanks.Yes it's normal. No throttle for the M820.
I'll make it available on my controller, it's just one wire that has to be added.
The throttle makes testing much easier.
OK, thanks.Yes it's normal. No throttle for the M820.




Next finding: the MT6816 encoder is configured to UVW mode on the M820, not to ABZ mode like on the M510/560.The z-signal of the encoder is on PC8 instead of PB8 and the number of pole pairs is 7, not 5.


Done, the motor runs.I can simply reuse the algorithms from the CRA101.C hub motor controller branch, hopefully.
Even so, the controller freezes. Can you explain how to do a memory dump?Perhaps you have to change two more bytes:
View attachment 387990
If this doesn't work, we would need a complete flash dump. This can be easily done by a STLinkV2 and the STM32Utility.
Here a more detailed descriptionCan you explain how to do a memory dump?




I got ISIS cranks for the M820 today, so I went for the first test ride on the road. It works so far, but the PAS/Torque timeout is not reliable, the chainring turns much too long, after stopping pedaling. I have no idea what causes this issue yet. The iq setpoints drops to zero immedeatly, but the PI control can't bring the actual motor current to zero. I'll have to tune the PI control parameters obviouslyWith the EBICS firmware



Thanks for all of this, but I will not have time to test it 'till Saturday... during the week I'm out of town for working.But maybe good enough for early Beta testers![]()
In Europe it is allowed, as long as you are pedaling. There are many commercial bikes out there, that are working this way.to disable the throttle while pedaling (according to regulations, the throttle shouldn't function during pedaling either).
A throttle, on the other hand, is not strictly required on a pedelec—but contrary to persistent rumors, it is not prohibited either. As mentioned, the only prohibition is on being able to draw power from the motor on an electric bicycle that does not require registration or licensing (i.e., a pedelec) without pedaling.
This means that on such a vehicle, regardless of the throttle position (if one is present)—including at full throttle—the motor must either drop back to the start-up assist speed or shut off completely (in systems without start-up assist) when the rider is not pedaling.
Translated with DeepL.com (free version)
It is activated by pedaling. With the moment you stop pedaling, the motor stops also. There are millions of bikes on the roads, that are releasing the motor power just by turning the cranks. All simple PAS systems without torquesensor are working this way.Every source I’ve checked consistently states that the assistance must be activated strictly by pedaling.
(h) pedal cycles with pedal assistance which are equipped with an auxiliary electric motor having a maximum continuous rated power of less than or equal to 250 W, where the output of the motor is cut off when the cyclist stops pedalling and is otherwise progressively reduced and finally cut off before the vehicle speed reaches 25 km/h;
One major issue is a very long overrun after stopping pedaling
This issue is knownIt works so far, but the PAS/Torque timeout is not reliable, the chainring turns much too long, after stopping pedaling
That's because the pedals are turning when the chain wheel is turning. So the controller thinks you are pedaling. But this is easy to solve...Walk Assist does not seem to have any speed limiting.
Also, right now, the 'walk assist' mode operates without having to hold down the button, which is more convenient, but it's also against the regulations."
I've fixed both now. The walk assist starts only, if the level is set to walk mode and the down button is pressed. The speed is limited to 6kph.Walk Assist does not seem to have any speed limiting.

in throttle operation it looks much better:Looks like too low P and/or too high I gain




Then your display is not sending the button down flag with the CAN protocol. The button down pulls down the voltage on the On/Off button pin to a certain value so this analogue voltage would have to be checked. I simply returned to the old logic, where you don't have to hold the button, but just have to switch to the walk mode level.Walk Assist not working – The icon appears, but no response when holding or releasing
I guess, you didn't increased the decay parameter from the default setting? I've set the default value to 255 now and have the integral part is reset as soon as the iq setpoint is zero.Overrun unchanged
I've set the PI control parameters a little less agressive.Power delivery roughness
Yes, and you can return to the original Bafang firmware at any time.Can I just install the firmware with Besst Tools?
