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

Electric Motors and Controllers
User avatar
stancecoke   100 kW

100 kW
Posts: 1317
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 » Oct 25 2020 11:50am

tenten8401 wrote:
Oct 25 2020 11:34am
and link it to an ESP32 board and write the code myself for pedal assist and some others..
There are already several "precontrollers", no need to develop a new one...
e.g. https://github.com/jenkie/Arduino-Pedelec-Controller

I don't know, if the VESC is suited for a big direct drive....

regards
stancecoke

tenten8401   1 mW

1 mW
Posts: 16
Joined: Aug 23 2020 12:45am

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

Post by tenten8401 » Oct 25 2020 12:04pm

stancecoke wrote:
Oct 25 2020 11:50am
tenten8401 wrote:
Oct 25 2020 11:34am
and link it to an ESP32 board and write the code myself for pedal assist and some others..
There are already several "precontrollers", no need to develop a new one...
e.g. https://github.com/jenkie/Arduino-Pedelec-Controller

I don't know, if the VESC is suited for a big direct drive....

regards
stancecoke
The cheaper ones ($70ish) go up to 13S (60v spikes) lipo 50amp continuous which should be perfect for the hub motor I've got.. unsure about the higher voltage stuff though... I'm sure there's a vesc for higher voltages but I haven't looked.

Thanks for the precontroller link, I may have to take a look into that

User avatar
stancecoke   100 kW

100 kW
Posts: 1317
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 » Oct 25 2020 12:55pm

tenten8401 wrote:
Oct 25 2020 12:04pm
13S (60v spikes) lipo 50amp continuous
I thought about the motor coil inductance and resistance

regards
stancecoke

User avatar
Valopallo   10 W

10 W
Posts: 80
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 » Oct 26 2020 1:10pm

stancecoke wrote:
Oct 25 2020 10:22am
Have you checked the output of throttle singal wire, is it 0.8 ... 4.2 V?
Yes. No output voltage. Seems like PAS has given up also. I guess I have to buy two new ones. To rid the misery I might as well buy new S06S's and beef up my bike with 52V battery :D These (bmsbattery.com) controllers can run 52V without problem, yes?
BluOSEC@36V|AWD|2xS06S|15A rear DD|10A front geared|Hardtail|Tunturi


anotherkiwi   10 mW

10 mW
Posts: 24
Joined: Nov 03 2015 8:59am

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

Post by anotherkiwi » Oct 30 2020 4:00am

Does someone know where I can get the original KT Bluetooth software, or something better if it exists?

At KT I am directed to a Chinese page that wants me to install a download client on my computer, you know I am not going to do something like that...

cheers



caesareor   1 µW

1 µW
Posts: 2
Joined: Nov 03 2020 6:20am

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

Post by caesareor » Nov 03 2020 6:44am

Hello guys,

I'm new here. I compiled and flashed the firmware on a KT36/48SVPRD-HRD01 controller. I get no error at compiling (with proven setting: THR-PAS,KT36-48svpr,12s,26inch,Q128h + Diagnostics), the hex file is created just fine, I flashed it with the STVP. I get the message that the program memory was written and checked successfully.
However when I power it (36V battery) and try to run it with the throttle (I don't have PAS yet because the parts are not installed on the bike) nothing happens. I connected a HM-10 bluetooth module to the LCD pins. All that I am getting on the terminal app is this character� when I short the blue and red wires of the LCD.

The controller/motor combination was working fine with the factory firmware (I checked it even after I soldered programing pins)

Any ideas about what I should try to troubleshoot it?

tenten8401   1 mW

1 mW
Posts: 16
Joined: Aug 23 2020 12:45am

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

Post by tenten8401 » Nov 03 2020 10:51am

caesareor wrote:
Nov 03 2020 6:44am
Hello guys,

I'm new here. I compiled and flashed the firmware on a KT36/48SVPRD-HRD01 controller. I get no error at compiling (with proven setting: THR-PAS,KT36-48svpr,12s,26inch,Q128h + Diagnostics), the hex file is created just fine, I flashed it with the STVP. I get the message that the program memory was written and checked successfully.
However when I power it (36V battery) and try to run it with the throttle (I don't have PAS yet because the parts are not installed on the bike) nothing happens. I connected a HM-10 bluetooth module to the LCD pins. All that I am getting on the terminal app is this character� when I short the blue and red wires of the LCD.

The controller/motor combination was working fine with the factory firmware (I checked it even after I soldered programing pins)

Any ideas about what I should try to troubleshoot it?
Did you try adjusting the under voltage setting? It may think the battery is too low

User avatar
stancecoke   100 kW

100 kW
Posts: 1317
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 » Nov 03 2020 1:37pm

tenten8401 wrote:
Nov 03 2020 10:51am
I get no error at compiling (with proven setting: THR-PAS,KT36-48svpr,12s,26inch,Q128h + Diagnostics) ...
I connected a HM-10 bluetooth module to the LCD pins. All that I am getting on the terminal app is this character�
OK, the controller should send the status message in any case. Are you sure, the HM-10 is working properly? Have you set the right BAUD rate? Have you tried to swap Rx and Tx?

Perhaps you should try a simple UART to USB converter for debugging with your laptop first...

regards
stancecoke

geofft   1 kW

1 kW
Posts: 367
Joined: Nov 09 2012 9:41am
Location: Berkshire UK

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

Post by geofft » Nov 03 2020 2:39pm

tenten8401 wrote:
Nov 03 2020 10:51am
caesareor wrote:
Nov 03 2020 6:44am
Hello guys,

I'm new here. I compiled and flashed the firmware on a KT36/48SVPRD-HRD01 controller. I get no error at compiling (with proven setting: THR-PAS,KT36-48svpr,12s,26inch,Q128h + Diagnostics),
Just a couple of things worth mentioning with those settings. The throttle min/max numbers were for a special setup and probably won't suit your throttle. Something like 50/180 would probably be better start numbers for a 'standard' hall throttle. Also, as already mentioned, those battery under/overvoltage settings won't suit your battery, something like 110/150 might be a better start point. Don't take too much notice of the voltage calibration setting, I don't think it has any function in the code nowadays.
Last edited by geofft on Nov 11 2020 4:09am, edited 1 time in total.
BBS02 V2 48v 750w, 12s lipo.
Q128H (36v 201rpm), KT36/48SVPR 6-fet, LCD3, 48v 12s lipo.

caesareor   1 µW

1 µW
Posts: 2
Joined: Nov 03 2020 6:20am

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

Post by caesareor » Nov 04 2020 10:42am

tenten8401 wrote:
Nov 03 2020 10:51am

Did you try adjusting the under voltage setting? It may think the battery is too low
I tried to compile it with 100 as under voltage setting. Same result.
stancecoke wrote:
Nov 03 2020 1:37pm

OK, the controller should send the status message in any case. Are you sure, the HM-10 is working properly? Have you set the right BAUD rate? Have you tried to swap Rx and Tx?

Perhaps you should try a simple UART to USB converter for debugging with your laptop first...

regards
stancecoke
I also thought about the baud rate and looked for a setting in the android app but couldn"t find it. I didn't try to swap RX and TX because I checked them and the wiring is exactly as in the wiki. I can give it a try. I also ordered a UART to USB. I'll keep you guys posted.

User avatar
stancecoke   100 kW

100 kW
Posts: 1317
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 » Nov 04 2020 11:39am

caesareor wrote:
Nov 04 2020 10:42am
I also thought about the baud rate and looked for a setting in the android app but couldn"t find it.
You have to check it with the USB-UART converter connected to the HM10 by sending the command AT+BAUD?

regards
stancecoke

tenten8401   1 mW

1 mW
Posts: 16
Joined: Aug 23 2020 12:45am

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

Post by tenten8401 » Nov 12 2020 2:28pm

Been running the firmware for a few weeks now, seems to be working great so far except for 2 times now it just doesn't stop accelerating. Both times were on the same hill with a low-ish battery, brake handles took like 6 seconds to stop the motor and by then I was off the bike..

Going to see if I can get a log and a sure way to reproduce it because it's been great for like 60 miles of riding except for those 2 incidents

Vbruun   100 W

100 W
Posts: 124
Joined: Sep 26 2019 8:42am

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

Post by Vbruun » Nov 14 2020 10:35am

Hello

I am having trouble with a t09s controller from topbikekit running the OSEC firmware.

I am trying to wire in a pas sensor but No matter what I do, I don't see Any pas activity in the app.

The controller was not marked from the factory and the diagram on topbikekit Does not match the wires on my controller, so now I ask:

What pins on the board should a PAS SENSOR be wires between?

Thank you

User avatar
Valopallo   10 W

10 W
Posts: 80
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 » Nov 20 2020 8:48am

Aeron wrote:
Jun 25 2019 9:26am

If you are interested, I'll let you know how the 6fet I have behaves @52V (stock amps, I'm like you and don't want to up the amps for now).
Hi. I'm trying to do the same thing. I'm running 2wd with 2xS06S 6fet controllers and planning to run these with 52V battery. I have not modified the controllers because they are still at the delivery but I wanted to know have you managed to make the 6fet KT controller to work with 52V and what modifications should I make(if any) and what components to check when my controllers finally arrive?
BluOSEC@36V|AWD|2xS06S|15A rear DD|10A front geared|Hardtail|Tunturi

mehmetoz1980   1 µW

1 µW
Posts: 1
Joined: Nov 23 2020 5:17pm

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

Post by mehmetoz1980 » Nov 23 2020 7:31pm

hi,thanks in advance to those who helped

with this opensource firmware;

can it do them?

1-Highly reactive throttle handle(quick response)

2-Powerful starts with maximum torque for throttle mod (in other words; if you give full throttle,the front wheel can rise from the ground.)

3-Torque simulation mod for throttle(I know it's for pas mod)

I know it will be a difficult throttle handling with these 3 settings :D

I used golden motor magic pie 5.these 3 settings were available

i got used to it, i miss it,because the controller has failed.

I like the front wheel getting off the ground and the sudden reaction. :D

I don't want to buy a new magic pie controller.both expensive and limiting setting


I know I can go to higher speeds and higher powers with this 48v 1000watt magic pie 5 motor.

So I am looking for an external controller.

i bought this controller, 48volt 40A sinewawe,I am waiting for the delivery.
https://tr.aliexpress.com/item/40010931 ... 4c4dkEmxFq

kt48svprl-lcd-c@d

User avatar
Valopallo   10 W

10 W
Posts: 80
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 » Nov 26 2020 4:16am

How much current capabilities does these S06S controller wires have to have for the controller to work properly;

Throttle: +5V, GND, signal
Brake: +5V, GND, signal
HALL: +5V, GND, white, green, yellow, blue -signals
PAS: +5V, GND, signal
Display/bluetooth: +5V, GND, RX, DX, blue

I'm planning to use 55mm length strip of flat IDE cable (28AWG) to jump these wires inside my controller housing. It seems 28AWG holds 1.4A current(chassis wiring) but how much these wires need to carry?
BluOSEC@36V|AWD|2xS06S|15A rear DD|10A front geared|Hardtail|Tunturi

geofft   1 kW

1 kW
Posts: 367
Joined: Nov 09 2012 9:41am
Location: Berkshire UK

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

Post by geofft » Nov 26 2020 9:37am

Valopallo wrote:
Nov 26 2020 4:16am
How much current capabilities does these S06S controller wires have to have for the controller to work properly;

Throttle: +5V, GND, signal
Brake: +5V, GND, signal
HALL: +5V, GND, white, green, yellow, blue -signals
PAS: +5V, GND, signal
Display/bluetooth: +5V, GND, RX, DX, blue

I'm planning to use 55mm length strip of flat IDE cable (28AWG) to jump these wires inside my controller housing. It seems 28AWG holds 1.4A current(chassis wiring) but how much these wires need to carry?
The throttle/brake/hall/pas connections are all voltage sensitive signal lines, current in these will be just a few mA, shouldn't give you any trouble.

You need to be a little more careful with the display connections however. Not sure which display you are using, I can only speak for the LCD3 display where the +ve, GND and blue carry the supply for the display and controller drive circuits (not the mosfet supply). This could be quite significant, you may need to 'double up' in the ribbon cable on these lines to be safe.

The only other issue may be induced noise between the signal lines where they are running side by side in the ribbon cable but over a short 55mm length I wouldn't think that would be a problem. Maybe route the ground lines between the signal lines to reduce this possibility?
BBS02 V2 48v 750w, 12s lipo.
Q128H (36v 201rpm), KT36/48SVPR 6-fet, LCD3, 48v 12s lipo.

qwerkus   10 kW

10 kW
Posts: 598
Joined: Jul 22 2017 4:00am

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

Post by qwerkus » Nov 26 2020 5:45pm

stancecoke wrote:
Oct 25 2020 10:22am
It is well known, that the Kunteng Controllers have bad resonances with the cheap china directdrives. That's a hardware issue, you can't fix it with software settings.
[....]
regards
stancecoke
That's interesting. I have KT + 212 motor and experienced similar grinding noises ... until I flashed the open source firmware. Had to manually tweak correction angle, but now it runs smoother and quieter now than with stock firmware. Still have to figure out the torque sensor thing though.
What "resonances" issue are your referring to ?

User avatar
stancecoke   100 kW

100 kW
Posts: 1317
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 » Nov 27 2020 4:16am

qwerkus wrote:
Nov 26 2020 5:45pm
What "resonances" issue are your referring to ?
Just search keywords like 'vibrations' or 'resonances' in this thread or in the german Pedelecforum. You will get many hits.

regards
stancecoke

qwerkus   10 kW

10 kW
Posts: 598
Joined: Jul 22 2017 4:00am

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

Post by qwerkus » Nov 27 2020 11:50am

stancecoke wrote:
Nov 27 2020 4:16am
qwerkus wrote:
Nov 26 2020 5:45pm
What "resonances" issue are your referring to ?
Just search keywords like 'vibrations' or 'resonances' in this thread or in the german Pedelecforum. You will get many hits.

regards
stancecoke
Thanks, did that and found a few reports indeed though it seems to be quite random. Some DD work just fine while other seem to be hopelessly plagued by resonances. And in some case like mine, the open source firmware seem to help. I wonder if the key is a higher switching frequency. For an instance, I had similar problems with a vesc + DD hub, and upping the frequency from 20k to 35k solved the issue.

fp23   1 µW

1 µW
Posts: 2
Joined: Nov 14 2020 6:35pm

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

Post by fp23 » Nov 30 2020 2:32pm

Hello Guys,

first of all. Thanks for this incredible smart thread. I found it while deep into research. I have a very similar controller to the BMS 12? something, but its from another chinese supplier. Layout seems to be identical, but the X4 Pad is already wired to some green wire going into a thing.

I will just order a controller from the BMS store if there is no solution, but maybe you know this issue already. If not, can you tell me what controller you are using or if this one (https://bmsbattery.com/home/1026-s12sn- ... ller-.html) has a free X4 Pad for linear regen braking.

Or can you give me a hint where to change the code if i can use another pad or maybe the torque sensor, because i ditched my pedals at some point in my progress :) The Controller seems to be exactly the same as the BMS ones.

I read through all of this thread and didn't find a solution so i hope you guys are still willing to help.

Big thank you in advance and best regards,
fp - please be kind, and don't judge me by my lötskills
Attachments
STLink.JPG
STLink.JPG (269.62 KiB) Viewed 71 times
Controller4.jpg
Controller4.jpg (225.77 KiB) Viewed 71 times
Controller5.jpg
Controller5.jpg (115.61 KiB) Viewed 71 times

User avatar
stancecoke   100 kW

100 kW
Posts: 1317
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 » Dec 01 2020 10:50am

fp23 wrote:
Nov 30 2020 2:32pm
but the X4 Pad is already wired to some green wire going into a thing.
Do you have any idea, what this thing is doing? :-)

There is no alternative on the PCB for an analog input. Only if you solder a wire directly to the last free processor pin, see this post:

viewtopic.php?f=30&t=87870&p=1355574&hi ... n#p1355574

regards
stancecoke

Post Reply