KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
Hi ,stancecoke
Phase Asv =(phase a - voff + amplitude)/2*1.155-20
do you konw how to derive the formula,why it should be + amplitude)/2 and -20 ?
Phase Asv =(phase a - voff + amplitude)/2*1.155-20
do you konw how to derive the formula,why it should be + amplitude)/2 and -20 ?
- Attachments
-
- asv.jpg (13.18 KiB) Viewed 2557 times
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
hello, it is possible to make bluetooth dongle for kt foc controller? or i must buy orginal bl, if yes where i can buy it ?
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
Hi
How to check supports stock controller sensor temperature of the motor?
Perhaps you have a stock controller circuit supporting a motor temperature sensor?
How to check supports stock controller sensor temperature of the motor?
Perhaps you have a stock controller circuit supporting a motor temperature sensor?
- stancecoke 100 kW
- Posts: 1332
- Joined: Aug 02 2017 2:56pm
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
sorry, I don't know this excel-sheet. I think Casainho took the SVM-lookup-table somewhere from the internet. But you can easily calculate the duty cycles for the three phases from the rotor angle, there are many examples in the internet. You can look at my recent Lishui project at github, there are all necessary calculations for FOC implemented.
I don't know, how the stock firmware implements temperature sensing. We do it with the analog input on connector X4.
For use with our open source firmware it is described in the wiki. For use with the original KT-App, I don't know. I only know, that the KT-App is really poor.
regards
stancecoke
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
No, throttle "reaction rate" of this firmware is quite acceptable, although it is worse than the stock one. I talked about the throttle control mode. IMHO - Current/Torque mode It is good for the PAS only mode, but for "throttle only" is absolutely unsuitable (in my case). The last argument was a recent incident, when I was driving at a speed of 8 km/h over the stretch of ice, and my wheel suddenly spun up to the maximum rpm, losing traction. I had to install back a controller with stock firmware, where the control and algorithm of the throttle is implemented perfectly and correctly.And the stock algorithm is a bit like a “manual cruise mode” when you don't have to twist the throttle endlessly, compensating for changes in speed, from the slightest gust of wind in your face, or a change in terrain / road surface. It's great.
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
Hi everybody!
I have an electric wheelchair handbike which has got KT controller (model: Thunder). I disassembled for make some pic, attached below. Sorry, but I can't make photos from top side of pcb, because cables are too short and I don't want to break the solderings.
My question is how many chance I have to use open firmware on this device. As I see it's similar to s06s (6 FETs)
I have an electric wheelchair handbike which has got KT controller (model: Thunder). I disassembled for make some pic, attached below. Sorry, but I can't make photos from top side of pcb, because cables are too short and I don't want to break the solderings.
My question is how many chance I have to use open firmware on this device. As I see it's similar to s06s (6 FETs)
Last edited by wrobi on Mar 10 2019 4:02am, edited 1 time in total.
- stancecoke 100 kW
- Posts: 1332
- Joined: Aug 02 2017 2:56pm
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
No attachment?!
Can you identify the label on the mikrocontroller? Is it the STM8S105C6T6?
regards
stancecoke
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
Sorry! I had to reduce the image size.
I can't see the MCU because short cables. I will try it with an endoscope camera.
I have two more question:
1. If KT-LCD5 maximum gear level is 3 then it's limited by controller firmware or display firmware. This is a special edition for wheelchairs, because it have "-1" gear level for reverse. My problem is the maximum speed which is limited 20km/h. I tried to change P and C parameters, but doesn't help.
2. It looks like it have a BLE module, but very difficult to connect, and nothing data traffic. Tried original KT app, and some BLE terminal. is it possible to use it only for factory setting?
I can't see the MCU because short cables. I will try it with an endoscope camera.
I have two more question:
1. If KT-LCD5 maximum gear level is 3 then it's limited by controller firmware or display firmware. This is a special edition for wheelchairs, because it have "-1" gear level for reverse. My problem is the maximum speed which is limited 20km/h. I tried to change P and C parameters, but doesn't help.
2. It looks like it have a BLE module, but very difficult to connect, and nothing data traffic. Tried original KT app, and some BLE terminal. is it possible to use it only for factory setting?
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
I wish that same could happen with KT motor controllers firmware but I understand it is much more complex because TSDZ2 hardware combinations are way smaller and so less complex firmware and configurations...
This is a historic mark:
Time to time I get some donations, which I am being using to buy resources for my investigations and developments. I have not been grateful publicly or privately the donations because I have so little time that is not enough for the developments that are needed to be done.
This days I got a donnation with the following message:
I will link to this shop on wiki as this may be very important for some users!!

https://www.electrifybike.com/store/c37 ... ducts.html#/
This is a historic mark:
Time to time I get some donations, which I am being using to buy resources for my investigations and developments. I have not been grateful publicly or privately the donations because I have so little time that is not enough for the developments that are needed to be done.
This days I got a donnation with the following message:
I am spreading this because this shop because other than being friendly for the developent of our OpenSource firmware for TSDZ2 (that can be applied for other ebike motor controllers, or any BLDC motor controller), this shops sells the needed TSDZ2 and LCD3 already programmed with our firmware and connections!!!Sold a few FOS firmware products on my Website http://www.electrifybike.com/store/c37/ ... ducts.html I will be contributing 10% of sales to the developers for a period of time.
I will link to this shop on wiki as this may be very important for some users!!

https://www.electrifybike.com/store/c37 ... ducts.html#/
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware
Developer of OpenSource knowledge and technology for ebikes: Wireless Ebike boar ANT+ and Bluetooth, Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.
If you like my work, please consider making a donation to help my developments: paypal.me/jorgecasa
- TSDZ2 OpenSource firmware
Developer of OpenSource knowledge and technology for ebikes: Wireless Ebike boar ANT+ and Bluetooth, Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.
If you like my work, please consider making a donation to help my developments: paypal.me/jorgecasa
- stancecoke 100 kW
- Posts: 1332
- Joined: Aug 02 2017 2:56pm
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
Wow, that's brave... hopefully he has a good legal expenses insurance for product liability issues.

I think, that our firmware could work with your controller, but of course we have no reverse function implemented.
I'm not sure if you could use your KT-LCD5 with an obviously "special" firmware. Perhaps you would have to buy a "normal" one.
Be aware, that all you are doing is at your own risk and that there is no way back to stock firmware, once you flashed the custom one.
As written before, I have no experience with the original KT-BT-Module...
regards
stancecoke
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
Hi
in repo readme it is written
in repo readme it is written
But what that actually mean? Isn't it normal to start motor in 6 step mode?What doesn't work:
Block commutation during start-up
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
No it is not.
When I had 6 steps working and then switching the PWM for next mode, I got an issue with the current controller, were it would fail and keep increasing and then burn mosfets.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware
Developer of OpenSource knowledge and technology for ebikes: Wireless Ebike boar ANT+ and Bluetooth, Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.
If you like my work, please consider making a donation to help my developments: paypal.me/jorgecasa
- TSDZ2 OpenSource firmware
Developer of OpenSource knowledge and technology for ebikes: Wireless Ebike boar ANT+ and Bluetooth, Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.
If you like my work, please consider making a donation to help my developments: paypal.me/jorgecasa
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
So, what is current startup procedure? Can motor start from standstill?
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
Please give a look at the source code to understand.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware
Developer of OpenSource knowledge and technology for ebikes: Wireless Ebike boar ANT+ and Bluetooth, Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.
If you like my work, please consider making a donation to help my developments: paypal.me/jorgecasa
- TSDZ2 OpenSource firmware
Developer of OpenSource knowledge and technology for ebikes: Wireless Ebike boar ANT+ and Bluetooth, Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.
If you like my work, please consider making a donation to help my developments: paypal.me/jorgecasa
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
More info about the "magic" touch please if it's still implemented into the app. Thanks.stancecoke wrote: ↑Sep 15 2018 4:10amOffroad mode can be activated by the brake lever as known or by a "magic" touch to the smarthphone screen

BluOSEC@36V|AWD|2xS06S|15A rear DD|10A front geared|Hardtail|Tunturi
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
I'm planning to put another motor to the front. I have S06S -controlling the rear DD motor and KT36ZWS controlling the front geared hub. I want to use separate batteries for each of them and share the signal wires from throttle, PAS and brake for both controllers. The instructions state that KT36ZWS controller cannot use FOC so it must be disabled. I cannot seem to find anything from the java tool so I assume this must be done straight from the code. How?
BluOSEC@36V|AWD|2xS06S|15A rear DD|10A front geared|Hardtail|Tunturi
- stancecoke 100 kW
- Posts: 1332
- Joined: Aug 02 2017 2:56pm
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
Just uncheck the checkbox "enable rotor angle correction" This will disable FOC.
regards
stancecoke
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
Hello,
I would like to ask regarding the offroad mode.
Does the controller give the same power for the road and offroad mode? Or is it posibble to have road mode with 250w and offroad with more?
Best regards
I would like to ask regarding the offroad mode.
Does the controller give the same power for the road and offroad mode? Or is it posibble to have road mode with 250w and offroad with more?
Best regards
- stancecoke 100 kW
- Posts: 1332
- Joined: Aug 02 2017 2:56pm
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
Yes, the offroad mode disables the speed limit only. The power depends on your battery-current settings. The 250W limit is only relevant for the long-term capacity of the motor.
regards
stancecoke
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
Hi, will it have losses about same as in stock fw, or more than stock?stancecoke wrote: ↑Jun 25 2018 11:21amThe "ZWS"-type is the block commutating one. In this, the phase current sensor is missing. You have to solder in the sensor or you have to buy a "SVP"-type. Or you can disable the "simplyfied FOC" and work with a static advance angle, but this will cause some losses and will heat up the controller and the motor unnecessarily.
regards
stancecoke
- stancecoke 100 kW
- Posts: 1332
- Joined: Aug 02 2017 2:56pm
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
I don't know. Just try it.
regards
stancecoke
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
Hi!
I have KT26 (ZWS) controller without plug to the connect for the LCD3. Now I want to use KT-LCD3 with it. I'm disassembled it and pulled out 4 wires for the connection LCD3 (Power+, GND, Rx, Tx). Can i reprogramming this controller (used STM8S105C6T6) with java application? LCD3 will be worked with him? Thank you.
I have KT26 (ZWS) controller without plug to the connect for the LCD3. Now I want to use KT-LCD3 with it. I'm disassembled it and pulled out 4 wires for the connection LCD3 (Power+, GND, Rx, Tx). Can i reprogramming this controller (used STM8S105C6T6) with java application? LCD3 will be worked with him? Thank you.
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
It should work.kipper28 wrote: ↑Mar 24 2019 2:40pmHi!
I have KT26 (ZWS) controller without plug to the connect for the LCD3. Now I want to use KT-LCD3 with it. I'm disassembled it and pulled out 4 wires for the connection LCD3 (Power+, GND, Rx, Tx). Can i reprogramming this controller (used STM8S105C6T6) with java application? LCD3 will be worked with him? Thank you.
You should have ordinary LCD3 with generic firmware. Please be cautious about wiring to not fry display.
And see FAQ about ZWS controllers.
Btw, do LCD3 works now, on stock firmware?
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
I don't know firmware version of my LCD3, but it has P, C and L (?!) parameters. About ZWS - I already know that I must disable FOC. Is there anything else I should do? LCD3 doesn't work now (controller has stock firmware). If it was working, I wouldn't be writing this in the first place.

My pacient:
Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW
Don't you guys want to help develop the firmware for SW102 Bluetooth graphic LCD so it will work for KT motor controllers and connect to mobile app?? -- I just got the information needed to drive this LCD and here are my tecnhical notes about this LCD: https://github.com/OpenSource-EBike-fir ... wiki/SW102


casainho wrote: ↑Mar 26 2019 9:41amBafang 850C color LCD and Bafang SW102 LCD with Bluetooth
I decided to give a try on the Bafang SW102 LCD with Bluetooth, following the same approach I did to make working the 850C LCD.
Men, my eyes are hurting!! The PCB traces are so small!! But victory, I was able to solder 4 tiny wires and record the LCD signals. Seems to be like SPI communication and I got always a repetition of data so I think we can now replicate the LCD initialization and drawing of pixels (this LCD has 64X128 pixels).
Wires I had to solder to connect to logic analyzer:
Initialization data:
Drawing pixels data:
Next step is to create a project using Nordic samples for GCC compiler. Test flash and debug session and finally initialize and wrote something on the LCD.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware
Developer of OpenSource knowledge and technology for ebikes: Wireless Ebike boar ANT+ and Bluetooth, Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.
If you like my work, please consider making a donation to help my developments: paypal.me/jorgecasa
- TSDZ2 OpenSource firmware
Developer of OpenSource knowledge and technology for ebikes: Wireless Ebike boar ANT+ and Bluetooth, Flexible OpenSource firmware for EBikes: TSDZ2 mid drive motor, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.
If you like my work, please consider making a donation to help my developments: paypal.me/jorgecasa