Page 138 of 148

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

Posted: Mar 02 2019 2:50am
by haiyi911
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 ?

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

Posted: Mar 02 2019 3:46am
by florkk
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

Posted: Mar 02 2019 7:18am
by Blik86
Hi
How to check supports stock controller sensor temperature of the motor?
Perhaps you have a stock controller circuit supporting a motor temperature sensor?

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

Posted: Mar 02 2019 7:49am
by stancecoke
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

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

Posted: Mar 04 2019 3:39pm
by kkm
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.

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

Posted: Mar 09 2019 5:09am
by wrobi
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)

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

Posted: Mar 09 2019 7:49am
by stancecoke
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

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

Posted: Mar 10 2019 4:12am
by wrobi
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?

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

Posted: Mar 11 2019 8:34am
by casainho
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#/

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

Posted: Mar 11 2019 9:47am
by stancecoke
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

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

Posted: Mar 11 2019 11:59am
by kotofos
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?

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

Posted: Mar 11 2019 12:21pm
by casainho
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.

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

Posted: Mar 11 2019 1:17pm
by kotofos
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

Posted: Mar 11 2019 2:18pm
by casainho
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.

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

Posted: Mar 12 2019 4:19am
by Valopallo
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. ;)

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

Posted: Mar 15 2019 1:25am
by Valopallo
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?

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

Posted: Mar 15 2019 3:42am
by stancecoke
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

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

Posted: Mar 16 2019 6:44am
by Bash1303
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

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

Posted: Mar 18 2019 10:39am
by stancecoke
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

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

Posted: Mar 22 2019 4:11am
by kotofos
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?

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

Posted: Mar 23 2019 4:16am
by stancecoke
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

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

Posted: Mar 24 2019 2:40pm
by kipper28
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.

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

Posted: Mar 25 2019 2:46am
by kotofos
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?

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

Posted: Mar 25 2019 4:11am
by kipper28
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:

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

Posted: Mar 26 2019 9:48am
by casainho
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.