OpenSourceEBike / TSDZ2-Smart-EBike

Flexible OpenSource firmware for TongSheng TSDZ2 mid drive ebike motor
GNU General Public License v3.0
255 stars 131 forks source link

0.19 performance worse than 0.18 #112

Closed j0bro closed 4 years ago

j0bro commented 5 years ago

I am very hesitant to jump to conclusions and therefore am only describing a perceived correlation, but since the update to 0.19 I am experiencing some nasty issues with my bike:

Is any of these issue known or experienced by others?

casainho commented 5 years ago

I don't use 36V motor on my ebikes so I can't comment.

There was no changes on the code about the motor control so I hope the energy efficiency is the same.

leon927 commented 5 years ago

@j0bro Regarding the efficiency: if I remember correctly there were some improvements in the calculation of energy consumed so it will seem as it is draining the battery faster but actually there should be no difference in efficiency.

All other things you mention can be some mechanical problem that is not related to software. Or maybe related to having wrong motor type selected.

If you want to try out the 0.20.0 Alpha 8 I would love to hear some feedback from you before there is a stable release. 0.20.0 Alpha 8 is verified as much as 0.19.0 was and should be extremely stable with many improvements you might like. Soon there will be an Alpha 9 which is maybe the last version before the first official beta is released on the official project page.

j0bro commented 5 years ago

Hey thanks for your replies guys, much appreciated. I also have some insights back for you. Since I did think of a mechanical issue too at first I got in doubt when I saw that without motor assist, there was no apparent issue. I went on thinking it could be some on-off behaviour in the assist algorithm, making it 'feel' as if a gear is blocking.

In the end I went through the motor controller settings and saw the internal resistance value set to 130 (mOhm). I already suspected my battery (no name 18650 cells) to have degraded a bit, so the chemistry changed and with that the internal resistance. I changed the value to 180 (just a random choice) and already, the behaviour of the bike completely changed for the better. There is no apparent voltage sag, range estimation is stable, no more rattling noise, etc.

I will try to obtain the actual internal resistance value on my workbench and see if I get even better results with that.

leon927 commented 4 years ago

This can be closed.