Page 4 of 158

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 07 2017 4:21am
by casainho
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.

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 07 2017 8:15am
by KingQueenWong
The SHUNT use the MOSFET's internal resistance.
20170707.jpg
20170707.jpg (150.98 KiB) Viewed 3285 times

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 08 2017 4:06pm
by casainho
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.

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 09 2017 4:11am
by casainho
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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 09 2017 8:36pm
by KingQueenWong
I buy one and try to draw the schematic(Not finished all yet). :D :D :D

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 10 2017 6:39am
by casainho
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...

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 10 2017 11:03pm
by KingQueenWong
I share something techniques about using the MOSFET's internal resistance as current sensing.

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 10 2017 11:13pm
by KingQueenWong
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.

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 10 2017 11:15pm
by amberwolf

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 10 2017 11:28pm
by KingQueenWong
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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 13 2017 1:01am
by casainho
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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 14 2017 9:39am
by nollkolltroll
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.

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 24 2017 9:43am
by casainho
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!!

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 24 2017 9:46am
by casainho
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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 28 2017 7:29am
by casainho
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 :-)

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 28 2017 7:38am
by casainho
BMSBattery is now selling S06S controller with bluetooth for 25.5€: https://bmsbattery.com/home/842-36v48v- ... s-app.html

Image

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Jul 29 2017 8:52pm
by casainho
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.

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Aug 01 2017 3:42pm
by casainho
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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Aug 02 2017 5:59am
by KingQueenWong
LD-LS13-F and LD-LS11-f is so cool.

-F suffix mean"FOC"
-C suffix mean"Square wave"

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Aug 02 2017 6:32am
by casainho
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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Aug 02 2017 7:02am
by KingQueenWong
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.

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Aug 02 2017 11:15am
by casainho
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.

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Aug 02 2017 3:04pm
by stancecoke
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

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Aug 02 2017 7:29pm
by casainho
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.

Re: OpenSource firmware BMSBattery S/Kunteng KT controllers

Posted: Aug 03 2017 1:33am
by KingQueenWong
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