Recent content by kaziq

  1. kaziq

    EasyDIY OpenSource display for EVs: TSDZ2 and Bafang M500/M600 EBike motors

    @casainho I looked at the code, and I can see the ble_init function, that has almost everything disabled. The only enabled line is ble_stack_init, which also has almostall of it disabled. Does BT actually work in this software? I am using EV_Display_Bluetooth_Ant repository, which is now...
  2. kaziq

    EasyDIY OpenSource display for EVs: TSDZ2 and Bafang M500/M600 EBike motors

    I finally assembled the display and installed it on my TSDZ2 ebike. It seems to work fine, but I haven't got it outside yet. @casainho, I have some questions about the display configuration. I tried some button combination that didn't work. Then I found out that I need an app, so I found the...
  3. kaziq

    EasyDIY OpenSource display for EVs: TSDZ2 and Bafang M500/M600 EBike motors

    I had the same issue. Today I finally had a chance to sit down on it, and found the cause. The cause of blank screen on 0.20.0 version for TSDZ2 (1.3 inch SPI) is that the RS pin has been changed. On the schematics and in version 0.10.0 it is on P1.15, but in version 0.20.0 it is on the P0.10...
  4. kaziq

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    I guess if you connect 5V from TSDZ2 to 3.3V output from STLink you will burn STLink.
  5. kaziq

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    My stlink (cheap clone) connects to my TSDZ2 controller only when battery is connected and the display is turned on. Won't do anything otherwise. Have you tried that?
  6. kaziq

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    I have similar cable in my set, and my lights work fine. Just answering "if that cable really is used for lights" - yes, it is. But I have no idea what could be wrong in your setup.
  7. kaziq

    Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

    I tested mine (new) by laying it on the bench, connecting a 48V power supply, attaching one crank arm (without screwing in), and turning with my hand. It should start assisting after half of a turn, or even less. It's not a proper test, as that would need attaching a load of some kind, but it...
  8. kaziq

    EasyDIY OpenSource display for EVs: TSDZ2 and Bafang M500/M600 EBike motors

    I remember hearing a long time ago that stlink can be officially "upgraded" with a special software, that changes it into a j-link. Wonder if that would help in this case. I tried it once, but returned to stlink, because the j-link firmware didn't support the UART pins in Nucleo dongles. Don't...
  9. kaziq

    EasyDIY OpenSource display for EVs: TSDZ2 and Bafang M500/M600 EBike motors

    I don't know. For me it worked perfectly with stlink-v2. It's hard to tell what went wrong with the Admiralrofl's case. I think you should add a warning, that in some cases the board may lock up, and an Olimex or Segger J-Link may be required.
  10. kaziq

    EasyDIY OpenSource display for EVs: TSDZ2 and Bafang M500/M600 EBike motors

    I just checked the notes I have made when I flashed the bootloader, and they say I used the "mass_erase" command. So it looks like you somehow enabled the access port protection (AP) function, and stlink will not work for you (you need to use "nrf52_recover" command, which stlink does not support).
  11. kaziq

    EasyDIY OpenSource display for EVs: TSDZ2 and Bafang M500/M600 EBike motors

    Later when I'm home I will try to reflash bootloader into my board and tell you the exact procedure that works for me.
  12. kaziq

    EasyDIY OpenSource display for EVs: TSDZ2 and Bafang M500/M600 EBike motors

    I think the warning applies to nrf52_recover command. For me the mass_erase worked fine with STLink-V2. I have never seen an error like this, perhaps the STLink-v2 locked the chip somehow (which the text you linked suggests)? Have you tried reconnecting the power to everything? EDIT: I don't...
  13. kaziq

    EasyDIY OpenSource display for EVs: TSDZ2 and Bafang M500/M600 EBike motors

    The easiest way for Windows is to use PuTTY. Download from here: https://www.putty.org/ In the Host Name field type localhost In the Port field type 4444 In the Connection type field select Telnet It should open a console where you will be able to type the commands.
  14. kaziq

    EasyDIY OpenSource display for EVs: TSDZ2 and Bafang M500/M600 EBike motors

    @ben5763 I am quoting my post from page 4: The images didn't quote properly, so you will have to go to page 4 if you want to see them. The resistor values in my schematic are for 48V motor. They should work for 36V too, but the BTS4140 replacement transistor should have lower Vgs(th), around...
  15. kaziq

    EasyDIY OpenSource display for EVs: TSDZ2 and Bafang M500/M600 EBike motors

    The power to the motor does not go through the display - the tiny wires wouldn't handle that kind of current. That would be a very bad design :) I think the MOSFET just powers the CPU inside the controller, or drives another transistor in the controller that powers the CPU, or just signals the...
Back
Top