Search results

  1. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    Hi Casainho , I have no plans to buy the SW102, my eyes like the big characters of the VLCD5 :( . I'm working now to make the current version stable. It is based on the v20 controller firmware with some small improvements like slower ADC conversion speed (like i suggested to you some days...
  2. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    Yes with the new board it will be possible to have both the throttle and the motor temperature control. The ESP32 fw will send to the controller new max current value based on motor themperature value. The final (i hope) board is arriving from PCBWay. As soon it arrives i will do a final test...
  3. M

    TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

    The rx interrupt should run with higher priority to avoid overrun problems. The tx interrupt instead could run slower without issues.
  4. M

    TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

    It is also better to add the following call at the end of the uart_init() function in order to run the TX interrupt with lower priority than the other interrupts. ITC_SetSoftwarePriority(UART2_TX_IRQHANDLER, 0x02);
  5. M

    TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

    In order to have accurate values from Torque sensor, you should decrease the ADC clock. Actually you have configured 8MHz but the STM8 datasheet states a maximum ADC clock frequency of 6MHz. You are now about 33% above the Max Freq. This is particularly important for a signal with weak current...
  6. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    A small update on the project. The test of the first version of the PCB Board went quite well. Some small problems have emerged in the design of the PCB board that I have already corrected and I have just ordered the new version with the necessary modifications. The board also is open source...
  7. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    Since the tests went well I decided to move on to phase 2 of the project which provides for a better integration of all the electronics inside the motor. Finally, despite the delays for COVID-19, the PCBs arrived from China. The small PCB board will be placed over the controller inside the...
  8. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    Yes, as soon as everything is tested and i have time i will start to add a wiki.
  9. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    I had to enable the STM8 bootloader using the usual "ST Visual Programmer" by changing the corresponding option byte because the bootloader is factory disabled. But you only have to do it once, and then, you are free to OTA update from the Android app. Care must be taken that, in normal...
  10. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    Finally the controller is arrived! All the tests went well and, after some minor adjustments, also the firmware update of the STM8 controller from the Android app works perfectly. I would say that at the moment I did not encounter any problems and I am confident that, once mounted on the...
  11. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    Yes https://github.com/TSDZ-ESP32
  12. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    On the controller side you should use the Official Open Source Firmware (casinhos data protocol) and actually the ESP32 translates the messages to the OEM LCD Protocol (I have the VLCD5 display). But there are no restrictions and you can easily change the ESP32 firmware to talk to any other...
  13. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    Hi, the interface is based on BLE. HC-05/06 are just repeaters. ESP32 instead is a poweful MCU. WIth HC-0X it would not possible implements OTA FW update, protocol conversion between Controller and Display and the DS18B20 temperature sensor. In future it would be possible add much more features.
  14. M

    New TSDZ2 Open Source firmware with Bluetooth interface

    Simulation test done successful. https://youtu.be/vp3WN9OPtdk Now i'm waiting a new spare controller to start the field test. When done, using an Android you will be able to: Monitor all the parameter sent by the controller. Setup all the motor parameters. Wireless update the module firmware...
  15. M

    New "TSDZ2 Torque Sensor Central Motor"

    Yes, i know, but i like to make experimens ad i already have an ESP32 board an the OEM Vlcd5 display.
  16. M

    New "TSDZ2 Torque Sensor Central Motor"

    Hi, i'm planning to add an ESP32 board between the motor controller and the display. The board will act as "man in the middle" between the two UARTs and will be able to add blutooth and WiFi capability to the Controller. I'm still really undecided about how to get power supply for the board. One...
  17. M

    TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

    Hello Buba, I've done a fork of your brach... Check also uart_receive_packag in ebike_app.c. Probably ui8_received_package_flag should be reset to 0 also when CRC check fails.
  18. M

    TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

    Hi Casainho, It was not my intention to raise an issue. In any case i was talking about the few parameters like motor_temperature_min/max, motor_type, battery_max_current etc.. which have an impact on the operation of the engine and that are already managed by the Controller Firmware. They are...
  19. M

    TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

    Hi Buba, glad to be helpful. And Yes, I have another thoughts :) Would it be possible to store all the configuration data on the controller side instead of on the LCD side? This could open up to new scenarios like running the bike without LCD. And also will simplify my project ... :) I'm...
  20. M

    TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

    Hello Buba, I don't want to sound insistent, and maybe I'm wrong or i'm missing something, but according to the ST documentation the STM8S105XX is a medium density device and has RWW capability. (Write is not blocking).
  21. M

    TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

    Hi Buba, as for the eeprom bug, I looked at the eeprom.c code and the problem is that the write operation is not performed correctly. For this device, the FLASH_ProgramByte call, does not wait the end of write operation, but return the control to the program immediately. For this reason, the...
Back
Top