vshitikov said:Putting back the original firmware works ... As the firmware posted on the eco-cycles website does not contain option bytes.
r0mko said:Why not buy a XH18?Tommyspar said:Hello Guys, I hope you can help me.
I just build a GT Avalanche with the TSDZ2 but I hate the big VLCD5 Display. Is it possible to use the SW102 Display with Stock Firmware if Yes what I have to do ?
EAD0C744-2D97-4EFC-BB4C-22A65D443693.jpeg
Tommyspar said:r0mko said:Why not buy a XH18?Tommyspar said:Hello Guys, I hope you can help me.
I just build a GT Avalanche with the TSDZ2 but I hate the big VLCD5 Display. Is it possible to use the SW102 Display with Stock Firmware if Yes what I have to do ?
EAD0C744-2D97-4EFC-BB4C-22A65D443693.jpeg
Because I don’t like it I want the SW102
Sw102 coupled with the torque only fork that r0mko has built is awesome. Really awesome.silvocross said:I all,
I'm a really happy TSDZ2 user and I have to thank all developers for their great job on the open source code.
I am using the TSDZ2 build 0.57 together with an SW102 v0.8 from Casainho on my E-MTB and it works really well. I now built a second bike for my girlfriend and sice I don't have any additional advanced Display I flashed the mbrusa FW on it and I am impressed about the eMTB mode: it works perfectly while offroading.
I saw some activities from Buba back in july 2019 trying to include this mode, but having a look at the latest ebike_app.c code I am not able to find this feature anymore.
I would like to have this mode on my bike but I still want to have the additional functionalities coming with the SW102 Display, is it planned to work on this feature again or shall I create my own fork for this?
Thanks a lot
Silvio
ilu said:Tommyspar said:r0mko said:Why not buy a XH18?Tommyspar said:Hello Guys, I hope you can help me.
I just build a GT Avalanche with the TSDZ2 but I hate the big VLCD5 Display. Is it possible to use the SW102 Display with Stock Firmware if Yes what I have to do ?
EAD0C744-2D97-4EFC-BB4C-22A65D443693.jpeg
Because I don’t like it I want the SW102
It's not possible to use SW102 with stock firmware, you need the OSF.
Everyone, please stop discussing on this thread other displays and firmware, move away to other threads otherwise you are are hurting this project.Tommyspar said:ilu said:Tommyspar said:r0mko said:Why not buy a XH18?
EAD0C744-2D97-4EFC-BB4C-22A65D443693.jpeg
Because I don’t like it I want the SW102
It's not possible to use SW102 with stock firmware, you need the OSF.
Did someone try it because Eco Cycles told me it works with the Stock Firmware !
I would accept a contribution pull request if you would implement emtb where the user could change the points of the curve on the display and not with fixed hardcoded values like on v0.20.silvocross said:I would like to have this mode on my bike but I still want to have the additional functionalities coming with the SW102 Display, is it planned to work on this feature again or shall I create my own fork for this?
hetm4n said:Casainho Stopping the engine after stopping pedaling is probably identical, I can not distinguish it.
That is very good information. So, can you please confirm that the coast brake version is working well in terms of braking? How do you compare with original firmware in terms of braking?plpetrov said:Casainho,
I tested both 0.57.1 and 0.57.2. Switched several time between them just to be sure that my observations are correct:
0.57.1 In terms of coaster braking is very good. The motor stops quickly with very low coater brake effort at slow cadence. At high cadence I could not feel any difference between 0.57.1 and 0.57.2. Both will stop as soon as I stop pedaling.
0.57.2 In terms of coaster braking behaves like the firmware version without the overrun issue fixed. Will require bigger coater brake effort at slow cadence. May be two or three time bigger than 0.57.1. At high cadence I could not feel any difference between 0.57.1 and 0.57.2. Both will stop as soon as I stop pedaling.
casainho said:I would accept a contribution pull request if you would implement emtb where the user could change the points of the curve on the display and not with fixed hardcoded values like on v0.20.silvocross said:I would like to have this mode on my bike but I still want to have the additional functionalities coming with the SW102 Display, is it planned to work on this feature again or shall I create my own fork for this?
Soon this change will make no difference as the current available processing power will mostly full used to be able to increase the cadence over 90 RPM while not sacrificing the energy efficiency.r0mko said:casainho said:Can you give technical details of changes on each point? And how did you validate?
I would like to re-use but it will only be possible by understanding what changes you did and why, as also how you did validate.Calling ebike_app_controller twice as often as before.r0mko said:
- Made overall response faster
I'm not sure whether it broken something important related to time/power calculation/etc. But it feels as noticeably reduced lag between applying force on pedals and getting assist. Since the ebike_app_controller() function claimed to execute in 35ms, this interval should be ok. Also I made current ramp 16 times steeper that original:Code:if((ui16_TIM3_counter - ui16_ebike_app_controller_counter) > 50) // every 50ms
Yes, I would like to be able to fine tune this value on the display but was not a priority. Did you try a lower value like 7 or 6? Going in that direction the motor will start to brake, so, less torque for the same current.r0mko said:Changed MOTOR_ROTOR_OFFSET_ANGLE 10 -> 8. Perhaps this should be adjusted for every single motor sample, but for me this led to noticeable increase of torque at low-mid RPM at the same current. With this setting motor can't get past 620 ERPS, and the current is quite low. So I've lost a bit of assist at high RPM, but got some increase in efficiency at normal and low RPM.r0mko said:
- Made motor a bit low-end biased by sacrificing some performance at crazy high RPM
What does not make sense to me here is that you are decreasing the motor reaction time by increasing the value of PWM_DUTY_CYCLE_RAMP_UP_INVERSE_STEP and on the other side try to decrease the motor reaction time as ramp up current value.r0mko said:Increased PWM_DUTY_CYCLE_RAMP_UP_INVERSE_STEP 20->40. This made the motor spin up slower without load (at low RPM, where jerk and bucking happens the most and during gear shift). Despite the fact that bucking still happens, it is so gentle that is almost not noticeable.r0mko said:
- Jerks and bucking are still present sometimes, but they became much gentler
- Shifting gears made softer, introducing less stress to transmission
I think the user should calibrate first the torque sensor and have a correct measurement of weight on the pedals, then, the emtb curve is applied and the user will clear understand that the emtb curve will apply an increasing assist factor when the user increases the pedal weight.silvocross said:OK, I'll take a deeper look in the next days on this. Thankscasainho said:I would accept a contribution pull request if you would implement emtb where the user could change the points of the curve on the display and not with fixed hardcoded values like on v0.20.silvocross said:I would like to have this mode on my bike but I still want to have the additional functionalities coming with the SW102 Display, is it planned to work on this feature again or shall I create my own fork for this?
casainho said:That is very good information. So, can you please confirm that the coast brake version is working well in terms of braking? How do you compare with original firmware in terms of braking?plpetrov said:Casainho,
I tested both 0.57.1 and 0.57.2. Switched several time between them just to be sure that my observations are correct:
0.57.1 In terms of coaster braking is very good. The motor stops quickly with very low coater brake effort at slow cadence. At high cadence I could not feel any difference between 0.57.1 and 0.57.2. Both will stop as soon as I stop pedaling.
0.57.2 In terms of coaster braking behaves like the firmware version without the overrun issue fixed. Will require bigger coater brake effort at slow cadence. May be two or three time bigger than 0.57.1. At high cadence I could not feel any difference between 0.57.1 and 0.57.2. Both will stop as soon as I stop pedaling.
Let's see if we can find the 2 possibilities that will work for users like you and the other for users like hetm4n.
The improvement on the torque sensor, let's see if we can improve after.
First I tried 5 and got very substantial increase of low-end torque, but very weak assist at high RPM. I decided to go further and set value to 0, but got very high current and weak assist at any RPM. The sound of the motor has also changed, it became louder. Then I set it to 7, this value gave a nice push at low end but virtually no assist over 560 ERPS, so I decided to stick to 8, which appears to be a sweet spot for a 36V motor at 48V and experimental high-cadence setting for motor type. The only validation and testing equipment was the motor current display vs. subjective perceptions, so you decide whether or not to consider this as a solid evidence.casainho said:Yes, I would like to be able to fine tune this value on the display but was not a priority. Did you try a lower value like 7 or 6? Going in that direction the motor will start to brake, so, less torque for the same current.
For adding this feature to fine tune, it is also need documentation to explain the user how to do it and how to test/validate - how did you do it?
casainho said:What does not make sense to me here is that you are decreasing the motor reaction time by increasing the value of PWM_DUTY_CYCLE_RAMP_UP_INVERSE_STEP and on the other side try to decrease the motor reaction time as ramp up current value.
Ramp up current value is applied on top of PWM_DUTY_CYCLE_RAMP_UP_INVERSE_STEP, so, are you sure the current ramp really increased? because I don't think it is possible, I did that implementation and validation test for both of them.
The stock firmware, how does it compare in terms of the braking?plpetrov said:What you mean by original firmware? The stock one or your firmware before the implementation of the overrun issue fix and the implementation of the negative torque functionality?
Do you think it will make sense to test also the 0.57.3 with the coaster brake?
In the middle of so many messages, I missed it.plpetrov said:Anything on the e: 8 Comms issue that I experienced? Once it is shown on the display the motor assis is gone. However all the rest is working fine. I see all information from the motor on the display e.g. like data from the different sensors, I can control the lights, I can edit the configuration.
I have not used the stock firmware since last year, so I am not sure how objective I can be in my conclusions. However:casainho said:The stock firmware, how does it compare in terms of the braking?plpetrov said:What you mean by original firmware? The stock one or your firmware before the implementation of the overrun issue fix and the implementation of the negative torque functionality?
Do you think it will make sense to test also the 0.57.3 with the coaster brake?
If you think coast brake works well, so I think there is no point to test even older firmware versions.
casainho said:The error "e: 8 Comms" happens when the communication fails for over 1 second and it is a safe measure, like if user is pressing assist level but communications fail like the wires brake or something. I tried to use a lower value like 0.5 seconds but I got issues with SW102 and then I had to increase to 1 second.
Yes, that is a fatal error and motor will stop working until you restart the system.
Makes sense that the issue increases to you with high assist levels / high battery current because the higher the battery current the higher the interference on the communications cables -- I would say you can have some less then good contacts on the connectors for the display (maybe some oxidation due to water on the connector/wires??) or maybe the solution can be to take further the battery cable and the display cable... maybe you twisted them together??
agphil said:I'm trying to compile the 850C display firmware with Eclipse under Windows 10, and it cannot find the header files located in the 860C_850C\src folder when compiling the common files, I get the following error:
In file included from ../../common/src/fault.c:1:
../../common/include/screen.h:8:10: fatal error: main.h: No such file or directory
8 | #include "main.h"
If I make a copy "main.h" in the folder common\include, it works but the same thing happens for all the header files.
I tried everything and cannot find a solution
@casainho or other, any ideas what I'm missing?
plpetrov said:Hello! I want to do the same both for the display and the motor. I remember seeing some posts related but I never saw an end to end manual how to prepare the development environment. Is it possible to get some help from those who have done it? I would prefer to base my attempt on a proven experience in order to avoid issues related with versions or configurations. This will be a nice addition to the wiki also.
@agphil Thank you very much for the link. It is the perfect starting point. The only dilemma I have is on which operating system to set the environment. I use OSX as a guest operating system and I am running Linux and Windows as a virtual machines only. Any suggestions or recomendations?agphil said:@plpetrov I followed the steps listed there and was able to build the motor firmware:
https://github.com/OpenSource-EBike-firmware/TSDZ2_wiki/wiki/Development
Concerning the displays, one step missing is to set up Cygwin and the CDT, I think I'm close to be able to build the display firmware if the compiler could fine the header files.I'm willing to update the wiki development page when I have every thing working.
plpetrov said:@agphil Thank you very much for the link. It is the perfect starting point. The only dilemma I have is on which operating system to set the environment. I use OSX as a guest operating system and I am running Linux and Windows as a virtual machines only. Any suggestions or recomendations?agphil said:@plpetrov I followed the steps listed there and was able to build the motor firmware:
https://github.com/OpenSource-EBike-firmware/TSDZ2_wiki/wiki/Development
Concerning the displays, one step missing is to set up Cygwin and the CDT, I think I'm close to be able to build the display firmware if the compiler could fine the header files.I'm willing to update the wiki development page when I have every thing working.
plpetrov said:@agphil Thank you very much for the link. It is the perfect starting point. The only dilemma I have is on which operating system to set the environment. I use OSX as a guest operating system and I am running Linux and Windows as a virtual machines only. Any suggestions or recomendations?