Search results

  1. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    Wasn't this the problem someone had with the options-file? Try flashing the stock option-bytes file.
  2. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    Ok, then I'm out of ideas but I would start with disabling the odometer compensation while troubleshooting because with it on you will always get no speed displayed for a short while everytime you try a new setting. Once you get the speed display working you can enable it again.
  3. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    Yes, but if it's a very small number (like 26) it will not generate a speed high enough to be shown. The display does not show numbers lower than 3.5km/h or 3.8 or something like that. You would need a really fast rotating wheel to reach 4km/h if the wheel circumfence is 26mm. You would need to...
  4. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    That is your problem. 26mm wheel circumference is a very small wheel. If your wheels are 26inch in diameter my guess is that your wheel circumference is around 2050mm. If you do not want to try to measure it yourself you could use this table for reference: https://www.bikecalc.com/wheel_size_math
  5. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    What did you configure as wheel circumference in the Java configurator?
  6. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    It'll start working after a while. The odometer compensation will display 00.0km/h until it has compensated for the time it has shown other stuff (like the 99.9% battery it shows everytime you turn in on).
  7. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    I do not have access to the java configurator right now so I cannot check the ini-file. Your config.h could help. However my guess is that you accidently blanked LIGHTS_CONFIGURATION_2 in the java configurator. I think if that is not set to anything this would happen when you try to compile.
  8. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    52v battery means 14s, not 16s. Change that and battery bars should be correct. Also change capacity to 655W (50.4v*13Ah). On the second tab, check "Throttle on street mode". E02 in Eco-mode means you switch to off-road mode. Read manuals for more info on display settings. You also might want...
  9. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    For me reading my options byte show option byte as 0x20 and only AFR5 is different than stock settings. Weird since option_no_prot should set it to 0x00 and stock was 0x28. EDIT: Just tried programming my stock option file (my own backup that has option byte as 0x28) which went fine with no...
  10. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    STVP 3.4.1 here. For me the file from eco-bikes and the one I backuped from my motor (48V) before doing anything else to it is identical. All bytes 0x00 except for byte 2 that is 0x28. The option_no_prot.ihx on the other hand has all bytes as 0x00 which changes the settings of AFR5 and AFR3...
  11. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    If you install the ST Visual Programmer you can load the option files into it and see what the differences mean. EDIT: Actually, if you've followed the instructions in the wiki you should have it installed already.
  12. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    What happens if you manually flash the option_no_prot.ihx file instead (you'll find it in C:\TSDZ2-Smart-EBike-1-master\src\controller). It's the options file the configurator uses. If that produce the same result as flashing with the configurator you could compare the stock-options-file and...
  13. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    You don't need to stop but you need to stop pedaling for 2 seconds or more and I think most people do that frequently when biking.
  14. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    Not being sure if all my changes to the code are what everyone wants I cloned the repository and pushed my changes to my own version of the repository if anyone else would like to give it a try and/or if emmebrusa wants to cherrypick some of the changes for the main repository. This is the...
  15. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    An update on the matter of the internal battery pack resistance. Calculating the internal resistance and showing it is very possible, however the value varies as there seems to be a delay in the voltage fluctation when current changes. I actually did some filtering to try to minimize this in...
  16. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    I don't expect it to make a major difference but perhaps if a value is calculated in several steps and many steps have rounding errors then I guess the end result will suffer more. It's just something I noticed, probably not really a problem. No, this is only a problem when doing integer division.
  17. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    Correct, however don't expect a major difference (if any). The changes I suggested (and made) should make enough difference that changing the wheeldiameter shouldn't matter much (or at all). My changes increase the source values by a factor of 10 by multiplying one value with 10 instead of...
  18. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    I did a test ride this morning and nothing seems broken. My internal battery pack resistance seems to be around 170mΩ. It needs some work still if this should be autoadjusting as current drops quicker that voltage so everytime you stop pedaling the number increases but for measuring it works.
  19. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    I believe this code is a fork of original development at some point of time and now they are just different projects (mbrusa can correct me if I'm wrong). My addition (when finished, still a work in progess) I can contribute with as a pull request (if I remember correctly, it's been A LOT of...
  20. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    :) Yes this is fun. There's a lot to learn still but I try to figure out stuff as I go. Are you sure about that? That was my first concern so I hade a look at the code and it's populated like this: ui16_display_data_factor = OEM_WHEEL_FACTOR * ui8_oem_wheel_diameter; The largest wheel diameter...
  21. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    It's a work in progress, due to bad weather I've only done limited testing but I did take bike for a short test drive and after the drive in reports 161milliOhms. Will try more tomorrow if time allows. Keep in mind that this version does not use the value. It just calculates the value everytime...
  22. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    I will actually have a go at modifying the firmware to calculate the internal resistance for me and display it. I have a pretty good idea on how to do it. I will of course share the code if I'm successful. EDIT: The code is ready for testing now but due to rain and thunder I will not try it out...
  23. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    I believe the purpose of the internal resistance value is to prevent the battery bars to flash between two states. Let's say you have just enough voltage to show 4 out of 6 bars and then you start pedaling pulling 10A from the battery. With an internal resistance if 0.2ohm that will drop the...
  24. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    Keep in mind that I'm pretty new to this motor and this firmware (only got my STLinkV2 this monday) so this is just me speculating and guessing but I think what you just wrote pretty much sums up how it works. The %-left feature I think should be considered a bonus-feature. Probably requested...
  25. K

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    I haven't checked the code but I suspect the % battery left is using the capacity (TARGET_MAX_BATTERY_CAPACITY) and it resets the %-counter if the voltage is above what is defined with LI_ION_CELL_RESET_SOC_PERCENT. Default is 4.05V which on a 13s-battery means 52.65V. However, the bars seems...
Back
Top