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

Electric Motors and Controllers
casainho   1.21 GW

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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by casainho » Jul 07 2017 4:21am

Thanks!!

I don't see where are the 2 phase current amplifiers... I would say that board don't have them and if so, than S06S controllers are better than that one.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).

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
KingQueenWong   100 mW

100 mW
Posts: 39
Joined: Dec 18 2016 7:07am

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by KingQueenWong » Jul 07 2017 8:15am

The SHUNT use the MOSFET's internal resistance.
20170707.jpg
20170707.jpg (150.98 KiB) Viewed 2740 times

casainho   1.21 GW

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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by casainho » Jul 08 2017 4:06pm

KingQueenWong wrote:The SHUNT use the MOSFET's internal resistance.
20170707.jpg
Never heard of such thing. Is there any application note about this?? I would like to read to understand more.

I must say I look at that brand/company as the MicroWorks on the EUC market and to Kunteng/BMSBattery as GotWay (like Samsung VS some unknown chinese company that also produces and sells Androids). I think Kunteng controllers may be less capable technically compared to that ones but will be much more stable on the market, unlike what happened with MicroWorks that I invested a lot of time on theirs boards and they just disappeared :-( -- so, I am not motivated to follow other paths unless the Kunteng or other very well known brand, like Kelly controllers. Still, I am curious about that controllers from Jinhui and if you go ahead and get together more technical information or firmware, I MAY get interest and join. For now I will focus on the Kunteng controllers.

About Kelly controllers, they very expensive and there is no information available about the microcontrollers they use, on the controllers version that do FOC. I think they are so expensive that they are not so popular/there isn't much information about them available in the web. They are popular in the sense they are on the market since long time.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).

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.

casainho   1.21 GW

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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by casainho » Jul 09 2017 4:11am

Found another user that shared pictures of that controller and sent a link to another EN shop and seems it is used on the citycoco (scrooser) -- I guess this product will have success and will stay on the market for long time, at least I hope.

https://endless-sphere.com/forums/viewt ... 30&t=89380

Controller and parts on EN shop: http://www.chinaglobalmall.com/products/547408992949
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).

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
KingQueenWong   100 mW

100 mW
Posts: 39
Joined: Dec 18 2016 7:07am

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by KingQueenWong » Jul 09 2017 8:36pm

I buy one and try to draw the schematic(Not finished all yet). :D :D :D
Attachments
2017071014996500955962d82fc1695.jpg
2017071014996501585962d86e0579c.jpg
2017071014996502335962d8b9569a2.jpg
2017071014996502895962d8f18b3f4.jpg
BMC-02A.PDF
(609.42 KiB) Downloaded 185 times

casainho   1.21 GW

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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by casainho » Jul 10 2017 6:39am

KingQueenWong wrote:I buy one and try to draw the schematic(Not finished all yet). :D :D :D
That's great!! Please put the source files on github after.

One think that I value as user, is the LCD of Kunteng controllers. That one do not have a specific connection for an LCD, right?? -- but I see TX and RX headers pins, including other 2: PA13 and PA14...
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).

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
KingQueenWong   100 mW

100 mW
Posts: 39
Joined: Dec 18 2016 7:07am

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by KingQueenWong » Jul 10 2017 11:03pm

I share something techniques about using the MOSFET's internal resistance as current sensing.
Attachments
AN606.pdf
(64.1 KiB) Downloaded 197 times
AN10322.pdf
(158.92 KiB) Downloaded 103 times
AND8093-D.pdf
(110.46 KiB) Downloaded 93 times
AND8210.pdf
(57.95 KiB) Downloaded 82 times
Current-Sensing.ppt
(601.5 KiB) Downloaded 131 times

User avatar
KingQueenWong   100 mW

100 mW
Posts: 39
Joined: Dec 18 2016 7:07am

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by KingQueenWong » Jul 10 2017 11:13pm

casainho wrote:
KingQueenWong wrote:I buy one and try to draw the schematic(Not finished all yet). :D :D :D
That's great!! Please put the source files on github after.

One think that I value as user, is the LCD of Kunteng controllers. That one do not have a specific connection for an LCD, right?? -- but I see TX and RX headers pins, including other 2: PA13 and PA14...
The controller may have a specific connection for an LCD.Actually,the LCD interface can be made to order.You could contact with the controller's seller to extend this featrue freely.The board have the ST's SWD interface,so i can burn my firmware by myself easily.
Last edited by KingQueenWong on Jul 10 2017 11:15pm, edited 1 time in total.

User avatar
amberwolf   100 GW

100 GW
Posts: 27894
Joined: Aug 17 2009 6:43am
Location: Phoenix, AZ, USA, Earth, Sol, Local Bubble, Orion Arm, Milky Way, Local Group
Contact:

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by amberwolf » Jul 10 2017 11:15pm


User avatar
KingQueenWong   100 mW

100 mW
Posts: 39
Joined: Dec 18 2016 7:07am

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by KingQueenWong » Jul 10 2017 11:28pm

Temperature VS RDS(ON)/DCR
As the temperature rises, the RDS does not rise too much. This feature can help us to sense current well.If you choose a good mosfet and good heat sink,maybe the temperature impact the RDS very little.Maybe something compensation need to be added,which may casue better performance. :D :D :D
Attachments
123.jpg
123.jpg (12.8 KiB) Viewed 4081 times

casainho   1.21 GW

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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by casainho » Jul 13 2017 1:01am

Just found that Kunteng also sells the bluetooth module and as expected, it connects to the 5 wires LCD connector (UART TX and RX pins): http://www.szktdz.com/en/news_show.php?article_id=485

Image

Image
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).

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.

nollkolltroll   1 µW

1 µW
Posts: 2
Joined: Jun 24 2017 10:50am

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by nollkolltroll » Jul 14 2017 9:39am

I just received my second controller: https://www.aliexpress.com/item/24V-36V ... 0.0.TRjIRt
Opening it up, it looks exactly like the S06s on your bitbuckets-page, but it does have a few more wires connected, as the link describes.

I already have a S06s controller working on my bike, bought from electricbikeconversions.
I am now confident to dedicate one of the controllers to FW-development, don't want to risk getting stuck with a dead bike ;)
I won't get started just yet though, still having a holiday to get through first :D
Hope to be of some assistance in the future.

casainho   1.21 GW

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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by casainho » Jul 24 2017 9:43am

nollkolltroll wrote:I just received my second controller: https://www.aliexpress.com/item/24V-36V ... 0.0.TRjIRt
Opening it up, it looks exactly like the S06s on your bitbuckets-page, but it does have a few more wires connected, as the link describes.

I already have a S06s controller working on my bike, bought from electricbikeconversions.
I am now confident to dedicate one of the controllers to FW-development, don't want to risk getting stuck with a dead bike ;)
I won't get started just yet though, still having a holiday to get through first :D
Hope to be of some assistance in the future.
Nice!!
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).

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.

casainho   1.21 GW

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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by casainho » Jul 24 2017 9:46am

I was able to look at the Kunteng 18 mosfets controller (battery voltage 24-72V, maximum operating current 60A, maximum power 4320W) and I took some pictures and notes - see here: https://opensourceebikefirmware.bitbuck ... sfets.html

This controller uses the same microcontroller STM8S105C6T6 as BMSBattery S06S controller. The difference is that this version do not have the phase current sensor (although may be possible that there is a version that has the phase current sensor as we can see there is a place on PCB for it).

Image
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).

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.

casainho   1.21 GW

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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by casainho » Jul 28 2017 7:29am

Took me many days but finally is done:
- the makefile now builds separated source files that include debug information
- only the changed files are built

Before I couldn't debug code that were outside main.c file and so the main.c file had all the code, making it very hard to manage/code the full project. Also, every time I built the project, took some some because was building 2 times the same files and all the files... wasting of time... now everything is optimized :-)
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).

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.

casainho   1.21 GW

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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by casainho » Jul 28 2017 7:38am

BMSBattery is now selling S06S controller with bluetooth for 25.5€: https://bmsbattery.com/home/842-36v48v- ... s-app.html

Image
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).

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.

casainho   1.21 GW

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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by casainho » Jul 29 2017 8:52pm

I am starting to be short on programming memory on the STM8S105C6T6 -- it has only 32kbytes flash memory.

I am being working with the STM32F103C8T6 that officially has 64kbyts flash memory but in reality has 128kbytes of flash memory -- this is well documented over Internet: https://eggelectricunicycle.bitbucket.i ... flash.html

I tried to program STM8S105C6T6 with a file with a size slight higher than 32kbytes but it won't program and so this means only the 32kbytes are available.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).

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.

casainho   1.21 GW

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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by casainho » Aug 01 2017 3:42pm

I found another EBike controller that BMSBattery sells and that uses STM32F103 and does FOC. But for some reason this controller seems less popular that S Series controllers -- maybe due to higher price??

See all the information here: https://opensourceebikefirmware.bitbuck ... llers.html

Nanjing Lishui Electronics Research Institute Co., Ltd. -- http://www.lsdzs.com
• this controller can be bought from BMSBattery
• has a LCD connector that uses UART TX and RX pins for sending/receiving data
• there is a bluetooth module and app
• this controller does FOC and uses STM32F103C6T8 with 128kbytes flash memory
• Lishui provides an application to update the firmware seems an encrypted firmware file, possible for the proprietary Lishui bootloader

Image

Image
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).

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
KingQueenWong   100 mW

100 mW
Posts: 39
Joined: Dec 18 2016 7:07am

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by KingQueenWong » Aug 02 2017 5:59am

LD-LS13-F and LD-LS11-f is so cool.

-F suffix mean"FOC"
-C suffix mean"Square wave"
Attachments
production list.jpg
1.jpg
1.jpg (56.46 KiB) Viewed 3795 times
2.jpg
2.jpg (17.43 KiB) Viewed 3795 times

casainho   1.21 GW

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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by casainho » Aug 02 2017 6:32am

KingQueenWong wrote:LD-LS13-F and LD-LS11-f is so cool.
There are some things I don't like much:
- the controllers seems to be available on 250W or 500W only
-- the power resistors to measure phase currents should impose a limitation
- not sure if there is a 48V version as I can't find it on online shops
- no hall sensor support
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).

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
KingQueenWong   100 mW

100 mW
Posts: 39
Joined: Dec 18 2016 7:07am

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by KingQueenWong » Aug 02 2017 7:02am

casainho wrote:
KingQueenWong wrote:LD-LS13-F and LD-LS11-f is so cool.
There are some things I don't like much:
- the controllers seems to be available on 250W or 500W only
-- the power resistors to measure phase currents should impose a limitation
- not sure if there is a 48V version as I can't find it on online shops
- no hall sensor support

Only LD-LS06-F,LD-LS33-F,LD-LS34-F support larger than 48V,they are FOC controllers.

casainho   1.21 GW

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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by casainho » Aug 02 2017 11:15am

KingQueenWong wrote:Only LD-LS06-F,LD-LS33-F,LD-LS34-F support larger than 48V,they are FOC controllers.
So you think that LSW-675 works with 24V, 36V or 48V??

Only LSW-675 is kind of cheap, the others are somehow expensive. The LSW-675 + LCD: 63€ VERSUS S06S + LCD: 35€!! I think BMSBattery is just selling LSW-675 because is the only one that works well with the Q75 motor, that seems to be the smaller and lighter motor they have.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).

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: 1049
Joined: Aug 02 2017 2:56pm

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by stancecoke » Aug 02 2017 3:04pm

Great work! I'm plannig to test it!
can you tell me, if the KT36 is the same as the S06S?
The KT36 is easily available in Germany.

Regards
stancecoke

casainho   1.21 GW

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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by casainho » Aug 02 2017 7:29pm

stancecoke wrote:Great work! I'm plannig to test it!
can you tell me, if the KT36 is the same as the S06S?
The KT36 is easily available in Germany.
Thank you.
I am pretty sure that link links for a controller that is the same as S06S!!

I would like to ask you a favor: please share/promote this project on german forums, like pedalecs or others in your language -- I believe this can be of interest of many. Thank you.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and displays (Bafang 850C color, SW102 Bluetooth and KT-LCD3).

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
KingQueenWong   100 mW

100 mW
Posts: 39
Joined: Dec 18 2016 7:07am

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Post by KingQueenWong » Aug 03 2017 1:33am

I order a LD-BL03-F controller,include a battery case and a controller ,which cost only $42 all .
I contact with this distributor:https://item.taobao.com/item.htm?spm=a1 ... 6491121354
Attachments
001.jpg
001.jpg (21.36 KiB) Viewed 3759 times

Post Reply