I for one would like to have more power with the OSF, but just the throttle. Pedaling feels awesome as it is. @astronaut maybe you have some tips how to make the throttle very responsive with no delay and a nice exponential curve?
The last weeks, I tried to improve the motor efficency for OSF for TSDZ8.
The main goal was to let OSF automatically calculate the best lead angle.
After many trials and errors, I hope having a solution (only for 860c version currently).
I put a new version (0.2.0) in github in a branch named test5 (do not try other branches named test1, ...test4, they probablu do not work).
It is here : GitHub - mstrens/OSF_860C at test5
There are many changes in this version in the way the rotating magnetic flux is generated like:
- increased resolution for all angles (use 16 bits instead of 8 bits)
- auto calibration of the positions of the hall sensors
- smoothing of the rotor angle when a hall transitions occurs
- a basis lead angle is calculated based on motor speed and on current
- a correction of lead angle is dynamically added in order to minimise Id (= unproductive current)
- more checks on max current (phase current, rms,...)
- Lot of code previously done in ISR at 19kHz has been moved to a new loop (systick at 1kHz): This new loop manages cadence sensor, torque sensor, wheel speed sensor, lead angle, security checks, ramp up/down).
Please note that:
- at this stage I did not focussed on improving the power delivered by the motor. I did not change limits from previous firmware and I even added some more security checks and those are based on dummy values. So, fine tuning is probably requited).
- this version does not use foc multiplier as lead angle is automatically optimised.
- I did not tested this version on the road but I made a few tests with a trainer. So be careful and test it at your own risk.
If you test it, please put your comments on this forum.
Thanks for the feedback.Hi @mstrens I tested newest version of your software and its working very smooth, and quite good but:
-the odometer and trip A/B don't show the km traveled, even though the current speed is displayed correctly.
-throttle doesn't stop after releasing the throttle, and the engine continues to run. To stop, I have to turn the engine off or use the brake sensor. It might be a problem with my throttle, so it would be good if someone else could check and confirm this.
Turning off/on again doesn't helped.
I did not test the maximum speeds because the road conditions were difficult.
Firstly, I did not say that the OSF is perfect. Secondly, I do not use the throttle lever, but in Torque mode, the motor is responsive and has a good curve. Sometimes all depends on configuring settings via SW102 (or other disp.) a lot.maybe you have some tips how to make the throttle very responsive with no delay and a nice exponential curve?
steet mode?does anyone have an idea what i could do? thanks in advance!
nope, I experience the same lack of power regardless if i'm in street mode or not. (or at least if i interpret street mode correctly, that is when i long press power+up to switch between a more limited mode vs default)steet mode?
post a Java table with the settings you had and we'll seenope, I experience the same lack of power regardless if i'm in street mode or not. (or at least if i interpret street mode correctly, that is when i long press power+up to switch between a more limited mode vs default)
post a Java table with the settings you had and we'll see
Sorry but I do not plan to make OSF for TSDZ16. I do not have such a motor and so I can't make devlopments for it. If tsdz16 uses the same microprocessor as TSDZ8, I expect someone could try to adapt osf for TSDZ16.hello mstrens, just wanted to ask you if you consider making osf for the newer motor tsdz16
I tested the latest version of OSF_TSDZ8_860C_SPIDER_3_V00_02.01 and it works very well. The engine runs smoothly and intuitively, with no bugs, and the odometer now works properly. The only thing that could be improved is increasing the available power to 1400-1500W, as the maximum power on a 53V battery was now around 1100-1150W (with max amperage 24A). I know this is more of a question for @mbrusa and a display software, but I think it could be increased to around 28-30A, especially since the motor doesn't overheat, and today, after driving about 10km, it was only around 20°C inside motor and at 5°C outside.3 weeks ago (see post on 21 nov here above) I published on github a version for 860C display containing many changes.
In the last weeks, I further made small changes in order to improve rotor positioning.
This new version is now available here : GitHub - mstrens/OSF_860C at test6_with_pll
I also updated the version foreseen for stock displays (VLCD5 and similar) in order to provide the same improvements as 860C version (see post of 21 nov for more details). This version is available here : GitHub - mstrens/OSF at test6_with_pll.
As for 860C version, FOC multiplier is not used anymore as lead angle is supposed to be automatically optimised.
Important note : this VLCD5 version compiles but has not been tested at all. At this stage, I hope that there is no (severe) bug. So be carefull if you try it.
Your feedback is welcome.
Do you mean what @HazzaHodgson modded (I tested the latest version of OSF_TSDZ8_860C_SPIDER_3_V00_02.01 and it works very well. The engine runs smoothly and intuitively, with no bugs, and the odometer now works properly. The only thing that could be improved is increasing the available power to 1400-1500W, as the maximum power on a 53V battery was now around 1100-1150W (with max amperage 24A). I know this is more of a question for @mbrusa and a display software, but I think it could be increased to around 28-30A, especially since the motor doesn't overheat, and today, after driving about 10km, it was only around 20°C inside motor and at 5°C outside
Best regards and thanks for your work, @mstrens
No, I meant this new version by @mstrens from here : GitHub - mstrens/OSF_860C at test6_with_pll I tested just 860c, version for vlcd is here : GitHub - mstrens/OSF at test6_with_pll but I havent testet it and I highly recommend you to change display to 860c osf its mch better than vlcd5.Do you mean what @HazzaHodgson modded (
Release TSDZ8 — Motor Launch Yes / Rider Launch Yes · 8hodgsonkh/OSF_860C ) or something else? I would like to have that too (for vlcd5)