KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)

Electric Motors and Controllers
haiyi911   1 W

1 W
Posts: 58
Joined: Oct 13 2017 5:35am

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by haiyi911 » Mar 02 2019 2:50am

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 ?
Attachments
asv.jpg
asv.jpg (13.18 KiB) Viewed 1460 times

florkk   10 mW

10 mW
Posts: 20
Joined: Oct 24 2016 12:39pm

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by florkk » Mar 02 2019 3:46am

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 ?

Blik86   100 µW

100 µW
Posts: 7
Joined: Aug 06 2018 12:03pm

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by Blik86 » Mar 02 2019 7:18am

Hi
How to check supports stock controller sensor temperature of the motor?
Perhaps you have a stock controller circuit supporting a motor temperature sensor?

User avatar
stancecoke   100 kW

100 kW
Posts: 1019
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

Post by stancecoke » Mar 02 2019 7:49am

haiyi911 wrote:
Mar 02 2019 2:50am
do you konw how to derive the formula
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.
Blik86 wrote:
Mar 02 2019 7:18am
How to check supports stock controller sensor temperature of the motor?
I don't know, how the stock firmware implements temperature sensing. We do it with the analog input on connector X4.
florkk wrote:
Mar 02 2019 3:46am
hello, it is possible to make bluetooth dongle for kt foc controller
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

kkm   1 mW

1 mW
Posts: 10
Joined: Sep 27 2018 3:22pm

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by kkm » Mar 04 2019 3:39pm

haiyi911 wrote:
Mar 01 2019 9:37am

on the road when i turn the throttle to the end,the motor may take a 3-4 seconds and increase slowly to the max speed,not a quick response.do you?
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.

wrobi   1 µW

1 µW
Posts: 2
Joined: Mar 09 2019 4:32am

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by wrobi » Mar 09 2019 5:09am

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)
Attachments
rps20190310_100132.jpg
rps20190310_100042.jpg
rps20190310_100042.jpg (88.08 KiB) Viewed 1316 times
Last edited by wrobi on Mar 10 2019 4:02am, edited 1 time in total.

User avatar
stancecoke   100 kW

100 kW
Posts: 1019
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

Post by stancecoke » Mar 09 2019 7:49am

wrobi wrote:
Mar 09 2019 5:09am
I disassembled for make some pic, attached below.
No attachment?!
Can you identify the label on the mikrocontroller? Is it the STM8S105C6T6?

regards
stancecoke

wrobi   1 µW

1 µW
Posts: 2
Joined: Mar 09 2019 4:32am

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by wrobi » Mar 10 2019 4:12am

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?

casainho   1.21 GW

1.21 GW
Posts: 3577
Joined: Feb 14 2011 2:43pm

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by casainho » Mar 11 2019 8:34am

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:
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 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!!!
I will link to this shop on wiki as this may be very important for some users!!

Image

https://www.electrifybike.com/store/c37 ... ducts.html#/
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

User avatar
stancecoke   100 kW

100 kW
Posts: 1019
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

Post by stancecoke » Mar 11 2019 9:47am

casainho wrote:
Mar 11 2019 8:34am
this shops sells the needed TSDZ2 and LCD3 already programmed with our firmware and connections!!!
Wow, that's brave... hopefully he has a good legal expenses insurance for product liability issues. :shock:
wrobi wrote:
Mar 10 2019 4:12am
This is a special edition for wheelchairs, because it have "-1" gear level for reverse.
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.
wrobi wrote:
Mar 10 2019 4:12am
Tried original KT app, and some BLE terminal. is it possible to use it only for factory setting?
As written before, I have no experience with the original KT-BT-Module...

regards
stancecoke

kotofos   1 µW

1 µW
Posts: 4
Joined: Mar 09 2019 8:30am

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by kotofos » Mar 11 2019 11:59am

Hi
in repo readme it is written
What doesn't work:
Block commutation during start-up
But what that actually mean? Isn't it normal to start motor in 6 step mode?

casainho   1.21 GW

1.21 GW
Posts: 3577
Joined: Feb 14 2011 2:43pm

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by casainho » Mar 11 2019 12:21pm

kotofos wrote:
Mar 11 2019 11:59am
Hi
in repo readme it is written
What doesn't work:
Block commutation during start-up
But what that actually mean? Isn't it normal to start motor in 6 step mode?
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.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

kotofos   1 µW

1 µW
Posts: 4
Joined: Mar 09 2019 8:30am

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by kotofos » Mar 11 2019 1:17pm

So, what is current startup procedure? Can motor start from standstill?

casainho   1.21 GW

1.21 GW
Posts: 3577
Joined: Feb 14 2011 2:43pm

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by casainho » Mar 11 2019 2:18pm

kotofos wrote:
Mar 11 2019 1:17pm
So, what is current startup procedure? Can motor start from standstill?
Please give a look at the source code to understand.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

Valopallo   100 mW

100 mW
Posts: 43
Joined: May 29 2018 1:37pm

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by Valopallo » Mar 12 2019 4:19am

stancecoke wrote:
Sep 15 2018 4:10am
Offroad mode can be activated by the brake lever as known or by a "magic" touch to the smarthphone screen
More info about the "magic" touch please if it's still implemented into the app. Thanks. ;)

Valopallo   100 mW

100 mW
Posts: 43
Joined: May 29 2018 1:37pm

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by Valopallo » Mar 15 2019 1:25am

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?

User avatar
stancecoke   100 kW

100 kW
Posts: 1019
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

Post by stancecoke » Mar 15 2019 3:42am

Valopallo wrote:
Mar 15 2019 1:25am
I cannot seem to find anything from the java tool
Just uncheck the checkbox "enable rotor angle correction" This will disable FOC.

Image

regards
stancecoke

Bash1303   1 mW

1 mW
Posts: 19
Joined: Oct 01 2018 1:45am

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by Bash1303 » Mar 16 2019 6:44am

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

User avatar
stancecoke   100 kW

100 kW
Posts: 1019
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

Post by stancecoke » Mar 18 2019 10:39am

Bash1303 wrote:
Mar 16 2019 6:44am
Does the controller give the same power for the road and offroad mode?
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

kotofos   1 µW

1 µW
Posts: 4
Joined: Mar 09 2019 8:30am

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by kotofos » Mar 22 2019 4:11am

stancecoke wrote:
Jun 25 2018 11:21am
DarkDD wrote:
Jun 25 2018 9:00am
I am using a 1000W direct drive motor and not an S series controller but rather a KT48ZWSRMT...
The "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
Hi, will it have losses about same as in stock fw, or more than stock?

User avatar
stancecoke   100 kW

100 kW
Posts: 1019
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

Post by stancecoke » Mar 23 2019 4:16am

kotofos wrote:
Mar 22 2019 4:11am
Hi, will it have losses about same as in stock fw, or more than stock?
I don't know. Just try it.

regards
stancecoke

kipper28   1 µW

1 µW
Posts: 2
Joined: Mar 24 2019 2:18pm

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by kipper28 » Mar 24 2019 2:40pm

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.

kotofos   1 µW

1 µW
Posts: 4
Joined: Mar 09 2019 8:30am

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by kotofos » Mar 25 2019 2:46am

kipper28 wrote:
Mar 24 2019 2:40pm
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.
It should work.
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?

kipper28   1 µW

1 µW
Posts: 2
Joined: Mar 24 2019 2:18pm

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by kipper28 » Mar 25 2019 4:11am

kotofos wrote:
Mar 25 2019 2:46am
It should work.
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?
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:
Attachments
IMG_20190223_153801_resize.jpg
IMG_20190223_153801_resize.jpg (364.07 KiB) Viewed 925 times
IMG_20190223_144429_resize.jpg

casainho   1.21 GW

1.21 GW
Posts: 3577
Joined: Feb 14 2011 2:43pm

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Post by casainho » Mar 26 2019 9:48am

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

Image
casainho wrote:
Mar 26 2019 9:41am
Bafang 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:
Image

Initialization data:
Image

Drawing pixels data:
Image

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.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

Post Reply