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

Electric Motors and Controllers
Valopallo   100 mW

100 mW
Posts: 40
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 13 2018 2:25am

Lot of questions; Is the PAS assistant at the 0 assist lvl by default @ original kt s06s firmware? So, to get the PAS working I must either have a display with buttons to turn it on or configure the firmware? And for this, I must use the open source fw? So can I test PAS without display or just the throttle? I'm also wondering where to get "the correct phase and Hall sensor assignment" from the original fw before flashing open source fw.

User avatar
stancecoke   10 kW

10 kW
Posts: 968
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 13 2018 3:12am

haiyi911 wrote:
Oct 12 2018 12:30pm
hi,all
i have some problem while "run sdcc batch"
There are no parenthesis allowed in the path to the firmware folder. Please rename the path.

regards
stancecoke

User avatar
stancecoke   10 kW

10 kW
Posts: 968
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 13 2018 3:21am

Valopallo wrote:
Oct 13 2018 2:25am
Is the PAS assistant at the 0 assist lvl by default @ original kt s06s firmware?
I don't know exactly, but I think there will be a default value different from zero. But the original firmware doesn't work with any PAS without adjusting parameter C1 with the LCD display.
Valopallo wrote:
Oct 13 2018 2:25am
I'm also wondering where to get "the correct phase and Hall sensor assignment" from the original fw before flashing open source fw.
If the motor runs smooth and quiet with the throtte, the assignment is OK!

I recomment to use the new BluOsec app with our firmware, as it offers all information you need for debugging your peripheral devices!

regards
stancecoke
Last edited by stancecoke on Oct 13 2018 5:42am, edited 1 time in total.

Valopallo   100 mW

100 mW
Posts: 40
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 13 2018 4:07am

Ok. Thanks. I must flash the opensource firmware hoping that PAS is working as it should.
stancecoke wrote:
Oct 13 2018 3:21am
If the motor runs smooth and quit with the throtte, the assignment is OK
Yes, motor runs smoothly with throttle building up speed when more throttle is turned. But about the noise, I have no reference whatsoever how the motor should sound. There is a sound of course but it doesn't sound anything too loud or alarming so I guess it's fine.

haiyi911   1 W

1 W
Posts: 55
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 » Oct 13 2018 11:08am

stancecoke wrote:
Oct 13 2018 3:12am
haiyi911 wrote:
Oct 12 2018 12:30pm
hi,all
i have some problem while "run sdcc batch"
There are no parenthesis allowed in the path to the firmware folder. Please rename the path.

regards
stancecoke
I have renamed the path. there are some other problems, maybe Start_Compiling.bat run badly?
Last edited by haiyi911 on Oct 14 2018 10:52pm, edited 1 time in total.

User avatar
stancecoke   10 kW

10 kW
Posts: 968
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 14 2018 2:37am

haiyi911 wrote:
Oct 13 2018 11:08am
maybe Start_Compiling.bat run badly?
can you translate the chinese messages?
please tell us which commit you are using and post the whole log from the console window. You can ingore the red lines from the -clean part, they don't matter.

regards
stancecoke

haiyi911   1 W

1 W
Posts: 55
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 » Oct 14 2018 9:03am

stancecoke wrote:
Oct 14 2018 2:37am
haiyi911 wrote:
Oct 13 2018 11:08am
maybe Start_Compiling.bat run badly?
can you translate the chinese messages?
please tell us which commit you are using and post the whole log from the console window. You can ingore the red lines from the -clean part, they don't matter.

regards
stancecoke
I know very little about eclipse or sdcc,i guess many Options is setted wrong.thanks
Last edited by haiyi911 on Oct 19 2018 12:21am, edited 3 times in total.

User avatar
Xnyle   10 W

10 W
Posts: 72
Joined: Sep 03 2018 1:05pm

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

Post by Xnyle » Oct 14 2018 11:10am

Ignore the file not found messages, as the script only tries to delete old stuff that isn't there.

sdcc must be in your path though (as the readme states, read it!) The whole build process is rather bodged together as nobody really cares from the moment on that it's running.

If you're unsure, use the Java Configurator first and only if you understand what's going on try to build via Eclipse.

User avatar
Xnyle   10 W

10 W
Posts: 72
Joined: Sep 03 2018 1:05pm

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

Post by Xnyle » Oct 14 2018 11:17am

Regarding the Java Configurator and the App:

Any volunteers around proficient in writing handbooks? The App can do so many things now on the fly but I doubt anyone will understand it without first investing a ton of time understanding the basics (about what the controller/motor is actually doing).

A few well made schematic bundled with screenshots could really make a huge difference for beginners.

I'm to lazy to do that though :wink:

User avatar
stancecoke   10 kW

10 kW
Posts: 968
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 14 2018 12:10pm

haiyi911 wrote:
Oct 14 2018 9:03am
I know very little about eclipse or sdcc,i guess many Options is setted wrong.thanks
compiling is OK now, the flashing tool is found, too. Now it seems that you have a problem with the STLink. Check if the STLink drivers are installed properly by windows in the device manager. Please make sure that you use very short wires from the STLink to the controller. There were many reports, that it doesn't work with longer wires.
If you need a longer cable from your computer to your bike, please use an USB extension cable.
https://www.ebay.com/itm/5M-5-Meter-USB ... rk:12:pf:0

regards
stancecoke

User avatar
stancecoke   10 kW

10 kW
Posts: 968
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 14 2018 1:32pm

Xnyle wrote:
Oct 14 2018 11:17am
The App can do so many things now on the fly
First a big thank you to you, Xnyle, the project has benefited a lot from your efforts :!:

I've copied the tutorial-pages to the wiki at github and translated the (very few...) BluOsec information from the german wiki to page 05 The BluOsec Android App.
Anyone with a github account can edit the wiki pages, so everybody is welcome to improve the documentation.
I will quit the tutorial at bitbucket now.

@casainho: can you please update the link in your signature to the github wiki!

regards
stancecoke

haiyi911   1 W

1 W
Posts: 55
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 » Oct 15 2018 11:22am

yes,compiling is OK ,but there are two warnings,are they be ok?
Attachments
211.png

haiyi911   1 W

1 W
Posts: 55
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 » Oct 15 2018 11:25am

Xnyle wrote:
Oct 14 2018 11:10am
Ignore the file not found messages, as the script only tries to delete old stuff that isn't there.

sdcc must be in your path though (as the readme states, read it!) The whole build process is rather bodged together as nobody really cares from the moment on that it's running.

If you're unsure, use the Java Configurator first and only if you understand what's going on try to build via Eclipse.
Thanks! i will try although it's hard for me.

User avatar
stancecoke   10 kW

10 kW
Posts: 968
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 15 2018 12:01pm

haiyi911 wrote:
Oct 15 2018 11:22am
yes,compiling is OK ,but there are two warnings,are they be ok?
you can ignore the warnings!

regards
stancecoke

haiyi911   1 W

1 W
Posts: 55
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 » Oct 16 2018 1:03am

i have downloaded the main.hex file.first,i just try and the motor run not smothly.then i try again that motor donnot run any more(mosfets and lm317 are hot) :roll:

User avatar
stancecoke   10 kW

10 kW
Posts: 968
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 16 2018 1:53am

Please tell us, what kind of motor you are using and post the content of your config.h

regards
stancecoke

haiyi911   1 W

1 W
Posts: 55
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 » Oct 17 2018 8:37am

stancecoke wrote:
Oct 16 2018 1:53am
Please tell us, what kind of motor you are using and post the content of your config.h

regards
stancecoke
the motor:36v250w,Waterproof Hall Sensor,i donnot konwn the reduction ratio.i didnot change the config.h
Last edited by haiyi911 on Oct 19 2018 11:04am, edited 1 time in total.

User avatar
stancecoke   10 kW

10 kW
Posts: 968
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 17 2018 9:20am

OK, this seems to be the default setup. Do you use a 48V battery? If you use a 36V battery you have to set
- undervoltage limit to 111
- serial cells to 10

If you use a 6FET controller set
- Battery current cal a to 10 (for this old commit)

If the motor is noisy at start up, play around with motor specific angle, start with 212 and vary the value in +/- 5 steps.

regards
stancecoke

p.s. if you change to the recent commit, please read the wiki carefully

regards
stancecoke

crun   10 mW

10 mW
Posts: 29
Joined: Jun 22 2016 7:11pm

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

Post by crun » Oct 18 2018 12:05am

mutetus wrote:
Sep 13 2018 7:22am
I also now have LCD7 with usb port for bluetooth-module,
Could you post a photo of the internals if you have itchy screwdriver finger?

Any other info about LCD7 or the BT interface?

qrisonline   100 µW

100 µW
Posts: 8
Joined: Oct 09 2018 1:42pm

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

Post by qrisonline » Oct 19 2018 4:25am

Hi,

I installed the firmware on a KT36 controller. Board is a KTE-SVP5-A. I dit not change any config settings at first but had no response on the LCD3 display.
When I run it in DIAGNOSTICS and connect it with USB serial to the PC I can see the parameters run by.
When I select the LCD3 and connect the LCD the display shows all zero's and I can up/down the assist levels. But I see no battery status (is empty).
When I use the BLUOSEC setting and hook up the blutooth adapter I see nothing happen in the bluosec app.

Also the motor does not run when i press the throttle. MOSFETS do not get warm or show any activity.

I imported the project in eclipse and am able to compile it.

What would be the best test scenario and wat should I check to get this running?

User avatar
Xnyle   10 W

10 W
Posts: 72
Joined: Sep 03 2018 1:05pm

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

Post by Xnyle » Oct 19 2018 8:13am

Did you pair your BT device and select it in the App (swipe right for config pane)?

After that you should see something no matter how incorrect you configured the controller.

Next you should read the whole paramter documentation in the wiki and change your config.

haiyi911   1 W

1 W
Posts: 55
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 » Oct 19 2018 10:04am

stancecoke wrote:
Oct 17 2018 9:20am
OK, this seems to be the default setup. Do you use a 48V battery? If you use a 36V battery you have to set
- undervoltage limit to 111
- serial cells to 10

If you use a 6FET controller set
- Battery current cal a to 10 (for this old commit)

If the motor is noisy at start up, play around with motor specific angle, start with 212 and vary the value in +/- 5 steps.

regards
stancecoke

p.s. if you change to the recent commit, please read the wiki carefully

regards
stancecoke

i have tried again and again,something maybe be still wrong.so could you send me your .hex?
i use a 36V battery and just connect the throttle,the battery,the hall and motor.
where can i choose the ride mode on the tool- "OSEC Parameter Configurator. jar"
Attachments
91.png
91.png (197.31 KiB) Viewed 942 times
图片1.png

Gaston   10 µW

10 µW
Posts: 5
Joined: Feb 26 2018 7:59am
Location: POLAND

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

Post by Gaston » Oct 20 2018 1:57am

Hello Stancecoke,

Is the KT-LCD5 supported ? I think KT-LCD5 was mentioned as supported however I don't see it listed, should I just select KT-LCD3 in the PC interface ?
The KT-LCD3 is just too big and too nice to be left on the bike parked outside the night (or at train station) - there are already some report of Forums (cyclurba) of vandalism !
So can KT-LCD5 be added as supported screen ?

In fact just to select assistance level, walk mode and switch the light on and off, the support of KT-LED would be great too ( some have speed display via led).

User avatar
stancecoke   10 kW

10 kW
Posts: 968
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 20 2018 3:50am

haiyi911 wrote:
Oct 19 2018 10:04am
i have tried again and again,something maybe be still wrong.
the motor specific angle is not 212 as recommented in your screenshot?!

Please download the latest commit of the firmware from github. The (latest commit of) BluOsec App will only work with this release.

If this doesn't help please switch to Diganostics mode and look at the first number that is sent, with this we can see what the controller is doing:
https://opensourceebikefirmware.bitbuck ... ndex6.html
haiyi911 wrote:
Oct 19 2018 10:04am
where can i choose the ride mode on the tool- "OSEC Parameter Configurator. jar"
The former ride modes are defined in a different way now.
Throttle and PAS are supported by default as long as you don't choose "torquesensor".
To have throttle response with no limitation, you have to set "Speed limit" and "Without PAS" to 100 kph e.g.

regards
stancecoke
Last edited by stancecoke on Oct 20 2018 4:02am, edited 1 time in total.

User avatar
stancecoke   10 kW

10 kW
Posts: 968
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 20 2018 3:56am

Gaston wrote:
Oct 20 2018 1:57am
Is the KT-LCD5 supported ? I think KT-LCD5 was mentioned as supported however I don't see it listed, should I just select KT-LCD3 in the PC interface ?
Yes, the LCD5 uses the same protocol as the LCD3, so it works also.
Gaston wrote:
Oct 20 2018 1:57am
In fact just to select assistance level, walk mode and switch the light on and off, the support of KT-LED would be great too ( some have speed display via led).
Xnyle offered to implement functions via the LCD display in the german forum already, please just contact him per PM. Iguess the LED Displays are using the same protocol.

regards
stancecoke

Post Reply