Search results

  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...
  16. kaziq

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

    TME or Mouser, I don't remember. Here it is in stock: https://eu.mouser.com/ProductDetail/Infineon-Technologies/BSP321PH6327XTSA1?qs=sGAEpiMZZMv4z0HnGdrLjowd7j8d0xvC703%252B0xdCv5k%3D It doesn't have to be the exact one. Any similar P-Mosfet (enhancement mode) transistor should be fine. The...
  17. kaziq

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

    Created pull request for just the pixel offset.
  18. kaziq

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

    Okay. Splitting is a lot of work, and I only have one display, so I wouldn't be able to test if all of them still work afterwards. For now I could just remove the SSD1306 commands from the 1.3 inch SPI sections, but I'm not sure if it won't break other displays (1.3 inch SPI that use SSD1306).
  19. kaziq

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

    You mean without the make_release.sh modifications? It's not even a line of code. It's a single character change, from "ssd1306_command(0x00);" to "ssd1306_command(0x02);", so a whole lot of trouble to fork and pull request just for that :D But I will do it if you want. I also noticed that...
  20. kaziq

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

    Sorry, I did not understand any of that :) What do I do again?
  21. kaziq

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

    I found the cause of the 2-pixel offset on my display. It looks like some of the 1.3 inch displays are internally connected with the 2-pixel offset, and the software must accommodate for that. The SH1106 controller supports 132 pixels of width, but the display has 128, so I think they connected...
  22. kaziq

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

    I unpacked and compared the binary files for 1.3 and 0.96 - some bytes are different, although the file size is identical. I also tried a debug version that I have compiled when debugging the previous issue - still the same 2-line offset. I bought the display here...
  23. kaziq

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

    Nope. Definitely 1.3 inch. Both 1.3 and 0.96 SPI produce the same output. With I2C versions the display stays black, and the nRF board does not seem to start (led stays red).
  24. kaziq

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

    Yep, just reflashed 1.3" SPI to make sure. The lines are still there.
  25. kaziq

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

    I decided to flash the OS firmware to test the display, and the modified transistor circuit works fine. The motor powers up, and works :) I have one problem though with the OS display: The image seems to be shifted up by two pixels, and there are two lines of garbage on the bottom. The lines...
Back
Top