Search results

  1. M

    Optimized TSDZ2 Firmware

    Yes, my idea is to start with 1us and then increase the value step by step to verify if the current decrease. Maybe i would just try to decrease 1 step to verify if 1us is just at the borderline. I don't want to burn my controller :)
  2. M

    Optimized TSDZ2 Firmware

    You are right, normally, starting from a from a fixed steady state, you could gradually decrease the dead time until you measure a temperature or a current consumption rise. Unfortunately i don't have a spare controller and motor to do any test. As soon i have spare time, without disassembling...
  3. M

    Optimized TSDZ2 Firmware

    I've found in the OEM hex binary the instruction where the PWM1 DTR register is updated. Was simple because the DTR address is only in one place of the hex file
  4. M

    Optimized TSDZ2 Firmware

    Hi @casainho, i've found that the OEM firmware uses a "Dead Time" value of 0x31 (about 3,1us) but you used a value of 1us. Did you take a test to choose this value ? In my latest version just released I increased the value to 1.5us. For now I have only taken a test ride and it is too early to...
  5. M

    Optimized TSDZ2 Firmware

    Hi beemac, the loop calculation are correct, only just change the > with >= to run every loop with the correct frequency.
  6. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    New version released. Everything must be updated, Android App, ESP32 and Controller. The files are always on Github: https://github.com/TSDZ2-ESP32/TSDZ2-ESP32-Wiki/tree/master/bin - Android: TSDZ2_ESP32v2.1.9.apk - ESP32: TSDZ2-ESP32-Mainv1.1.7.zip - STM8: TSDZ2-v13.zip This version contains...
  7. M

    TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

    Yes, not add but just move at the end! The correct code should be the following __asm push cc // save current Interrupt Mask (I1,I0 bits of CC register) sim // disable interrupts (set I0,I1 bits of CC register to 1,1)...
  8. M

    TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

    To solve the power glitch just change the following asm block in motor.c and move the pop cc instruction at the end of the block (it should be the last instruction). It should fix the problem. As soon i have free time i will also do the change and verify the fix. [code] __asm...
  9. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    Good idea! I did not know that the bootloader could also be activated with a soft reset.
  10. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    https://opensourceebike.github.io/TSDZ2_wireless-schematic.png
  11. M

    TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

    Hi Marco, I have an idea what could be causing the overheating at high power. I'm not sure but I think it's worth a try. Unfortunately, in the next days I will not have the opportunity to do any tests. The changes are very limited, in case write me in private if you want to give it a try.
  12. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    Thanks, but at the moment I have little free time that I could devote to the development of the Firmware for the new controller
  13. M

    TSDZ2 OSF for all displays, VLCD5-VLCD6-XH18, LCD3, 860C-850C-SW102.

    You are right. In my latest firmware, FW has no threshold based on motor rpm. But unlike previous versions, it adds a time offset instead of an angular offset. This means that the angle that is added varies and increases with the motor rpm. This contrasts the back EMF generated by the motor...
  14. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    This the first time Pcbway give this warning. Since the component code is correct and all the previous orders went well, i think also it isn't a problem.
  15. M

    Optimized TSDZ2 Firmware

    Yes i understand but there are not to many parameters shared between motor.c and ebike_app.c. Just target current, target duty cycle, ramp-up, ramp-down, and measured current if i remember well.
  16. M

    Optimized TSDZ2 Firmware

    At least initially, to avoid unwanted errors i suggest you to port the full motor.c code. If you get only some portion of the code and you mix with the existing code, you are more likely to make mistakes. E.g. - you should ensure both half PWM routines run in less than (PWM Time / 2) even in...
  17. M

    Optimized TSDZ2 Firmware

    Regarding my third post about the technical details, i found a TI document addressing the same problem. https://www.ti.com/lit/an/slaa561/slaa561.pdf?ts=1617799384043&ref_url=https%253A%252F%252Fwww.google.it%252F In my experiment I calculated the optimal lead time for a fixed load (no load)...
  18. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    Nice work. Well done :thumb:
  19. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    Yes Ground signal is a common reference.
  20. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    No you can't. The +batt green wire cannot be connected to the DS18B20 themperatiure sensor. It will be burned. +Batt is at battery voltage.
  21. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    10pcs 2.4G wifi receiver antenna Bluetooth remote control model aircraft antenna built-in gold-plated silver plated ipx https://a.aliexpress.com/_uGlK3B
  22. M

    Optimized TSDZ2 Firmware

    Exactly, with the first two steps you will get precision in the angular rotor position calculation. With the step 3 you will calculate the correct spatial (angle) and timing (hall delay) absolute references to reach the best efficecy. All the 3 steps are necessary to have the best result.
  23. M

    Optimized TSDZ2 Firmware

    To do a better test you should run te motor with a fixed duty cycle instead of a fixed target current. And the changes as of post nr. 2 are the most important. About software changes, there are many delicate aspects to consider. In particular, the prority and the concurrency of the different...
  24. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    You most likely have a problem with Hall sensors. In the video it appears that the Hall sensor cables coming from the motor have been cut and soldered and the connector looks damaged.
  25. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    This control was added with the latest versions and therefore the error cannot appear with the old version. When it appears it means that no message has arrived to the ESP32 in the last 500ms. As soon as a message arrives then the error is reset. I know that you have wired everything externally...
Back
Top