-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E07 overcurrent shows up often #99
Comments
The E7 overcurrent error has been present since version 4-update-3 for 860C, and has now been added to the stock display version as well. |
Have you had any other unwanted E07 errors? |
Oh, it's not good to reuse values like this. I don't see immediate reason why I will eventually figure out the root cause of the issue and let you know. |
Yes sharing an error code is not a good idea but I have to do it. |
Just from the good practices point of view the check should be explicit: But anyway: Btw, although it doesn't matter, I think it would be more logical if TSDZ2-Smart-EBike-1/src/ebike_app.c Lines 1677 to 1687 in 0e553a5
and then:
I think 4s is plenty time for the motor to stop, so I don't think this is the culprit of my issue. |
I'm worried about E07 overcurrent. |
Update to the latest comment. |
I am not getting the error anymore. In the meantime I did some software customizations and further changed settings. I also installed new battery pack :) Last few rides I did were with the following settings and there was no error: But maybe I can still help. - I dug out two configurations which I think can give some clues. On my next ride, I will try that offending setting again to see if the error reappears. |
I tried the last known bad setting and i didnt get the error. I probably should try again, but this time without any of my code customizations. I don't believe in "slow mosfet" or noisy ADC theory (the margin is 8amps ( I have some "PWM theory". The PWM is maxed out at 255. If you slow down motor faster than pwm ramps down then the produced current might be higher than current limit. This could possibly happen while pedaling approaching a hill or braking. Would that happen in practise? I don't know. Above 70rpm cadence the deceleration is set to maximum, minimizing the chance of that happening. But maybe there is some other scenario when PWM is temporarily higher than it should be and high current is generated. I think few times when the error happened for me was around the speed limit (25kph) when the motor stops and starts often and I was at high cadence. This could be a clue, but I don't remember if that was the only times. For some reason, the speed limit was not working with my customizations. I need to figure that one first. |
I don't think so either, but keep in mind that the adc value is not filtered. In the stock display version, at the first report of E07, I decided to change for max current + 8A. The reports of E07 received for the stock display version, I think are all caused by "error motor check", including yours.
Yes, I also think that if the motor slows down faster than the PWM, the current increases. There are some strange settings in your screenshots... |
I was able to reproduce E07 again. I have an impression it was happening only around speed limit. Can others confirm? |
We need to have confirmation whether the error is E07 or E09 (see update). |
Sometimes it enters E07 when pedaling and stays there until restart.
There is fairly large amount of complexity around Battery maximum power. But this shouldn't even exist. Max Battery power is a marketing term and not physical limitation. Current is always the limit. (And why would we allow more current at lower voltage??).
If anything, battery max power could be converted to (secondary) battery current limit only once! - based on rated battery voltage (cells x 3.6V) - not startup voltage readings.
I am not sure if the problem is there, but it's likely. If I have a high battery voltage after charging, the limit will be low. That would explain why at the end of the ride I was not getting the error anymore.
I may try setting battery power higher so it doesn't have a influence.
The text was updated successfully, but these errors were encountered: