Rydon said:
casainho said:
Rydon, please test the new version: https://github.com/OpenSource-EBike-firmware/TSDZ2-Smart-EBike/releases/tag/v0.19.0-beta1
Ok, is there any documentation for the menus in version 19?
casainho said:
When pedaling backwards, motor power is cut off. Note that the motor resistance is still there.
If you know the motor resistance is still there, what am I testing?
casainho said:
Can you please tell if you expect that motor goes to 0 velocity before goes backwards when user brakes with coast brakes?? I am thinking on the next step...
By velocity do you mean rpms? Yes, the motor completely stops before pedaling backward.
That motor I sent you that got stuck in customs was a coaster brake motor. They returned it after about 6 months. Should I try sending it again?
No documentation yet.
Maybe you are right, I should add the PWM disable BUT I am afraid it can burn the controller. The code to disable the PWM is being applied to regular TSDZ2 version that should not rotate backwards..
Yes, I mean the erps value seen on LCD3 (menu 12).
So, to resume. The motor is direct drive with the pedals and the bicycle as a free wheel on the wheel, with the coast brake.
1. Motor mode (torque and positive cadence): previous of when user decides to brake, the user is pushing forward the pedals and we have pedal cadence and torque
2. Motor stop (torque = 0 and cadence = 0): user decides to brake, the user quickly decide to stop pedaling and immediately next will push them backwards. Even if motor keeps pushing the pedals forwards, the user stop to do torque and cadence. Here I think motor assistant will stop and the motor may take a fraction of a second to stop: erps = 0
3. Motor stop but coast braking (torque positive or 0 and cadence negative or 0 - running backwards): user is pushing pedal backwards:
-- since it is pushing, there is torque signal and it is positive (??) -- can you please validate again?? check the rest value of torque sensor ADC and see if it increases or decreases when pushing backwards.
-- since the movement is small, the cadence value will be either 0 or we will have the indication of pedaling backwards. We can't trust on later, maybe we need to signal that it was backwards and consider that state until it runs again forwards.
I think may be tricky to detect when coast braking, because it is very small backward movement.
-- does the motor runs backwards when user is pushing pedals backwards?? does the motor stops for a fraction of time that we can measure it or it is so fast the transition from forward <-> backwards that we can not detect it?? because we can disable PWM at anytime but we should enable only when motor erps = 0.
Rydon, can you help on this questions??
About sending a motor for coast brake, I do not have any bicycle for development nor even with a coast brake. Maybe we should try to make the development for now like this.