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

Electric Motors and Controllers
honya96
100 W
100 W
Posts: 170
Joined: Mar 05, 2015 9:38 am
Location: Czech Republic

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

Post by honya96 » Feb 02, 2018 2:09 pm

stancecoke wrote:
Feb 02, 2018 1:54 pm

But you can look for another unused pad, that's labeled with x... and check the voltage on that. If you find one with 0V, you can try to find the pin it is connected to.
Seems like better solution, if we find pad which we both have at 0V so it will work stock for everyone.

User avatar
stancecoke
1 kW
1 kW
Posts: 450
Joined: Aug 02, 2017 2:56 pm

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

Post by stancecoke » Feb 02, 2018 2:11 pm

yes, that's the better solution...

regards
stancecoke

p.s.
honya96 wrote:
Feb 02, 2018 12:49 pm
From what i see its going through smd capacitor to pin 13
I think this is not a capacitor but the pull up resistor, as pin13 is VDDA (the analog power supply, see datasheet) = +5V....
so you can remove this component, if we don't find another available AIN pin.

edit: on my 6FET there is a unused pad "XS" that's connected to AIN3, pin 19.

honya96
100 W
100 W
Posts: 170
Joined: Mar 05, 2015 9:38 am
Location: Czech Republic

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

Post by honya96 » Feb 02, 2018 2:58 pm

To X4 there is 104 resistor to GND and 222 resistor to 5V

X5,6,7 is over 5v only X8 is 0.9v (original blue cruise wire) and empty XS1 is 0v

I cant see any other "X" pad

The pin for regen has to be AIN 6,5,4..?

User avatar
stancecoke
1 kW
1 kW
Posts: 450
Joined: Aug 02, 2017 2:56 pm

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

Post by stancecoke » Feb 02, 2018 3:06 pm

see my last edit, XS is AIN3 / Pin 19 on the 6FET, can you check this with your board and your XS1

regards
stancecoke

honya96
100 W
100 W
Posts: 170
Joined: Mar 05, 2015 9:38 am
Location: Czech Republic

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

Post by honya96 » Feb 02, 2018 3:25 pm

stancecoke wrote:
Feb 02, 2018 3:06 pm
see my last edit, XS is AIN3 / Pin 19 on the 6FET, can you check this with your board and your XS1

regards
stancecoke
XS(1) to pin 19 is 0.9Mohm, looks like pin 19 is empty or going under the stm8 same on my bms battery 12fet

What is your voltage on x4? Have you tested with 12fet?

User avatar
stancecoke
1 kW
1 kW
Posts: 450
Joined: Aug 02, 2017 2:56 pm

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

Post by stancecoke » Feb 02, 2018 3:33 pm

Can you find the Pin on the µC XS1 is connected to on your board?
honya96 wrote:
Feb 02, 2018 3:25 pm
What is your voltage on x4? Have you tested with 12fet?
The voltage is 0V on the open X4 on the 6FET. I have no Kunteng 12FET. My 12FET is a Lishui....

regards
stancecoke

honya96
100 W
100 W
Posts: 170
Joined: Mar 05, 2015 9:38 am
Location: Czech Republic

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

Post by honya96 » Feb 02, 2018 3:51 pm

stancecoke wrote:
Feb 02, 2018 3:33 pm
Can you find the Pin on the µC XS1 is connected to on your board?
honya96 wrote:
Feb 02, 2018 3:25 pm
What is your voltage on x4? Have you tested with 12fet?
The voltage is 0V on the open X4 on the 6FET. I have no Kunteng 12FET. My 12FET is a Lishui....

regards
stancecoke
So, I will try to find any pin from AIN which is near 0v

I Can try on bmsbattery 12fet also so we may find one working for all. But it will take some time...

12fet board is simplier, see here. I wonder why its not connected all the same :roll:
https://drive.google.com/folderview?id= ... Jx5EFpt4z5

When I receive another 18fet I can teardown the first one a bit so I see the traces better. And take lots of photos....

User avatar
stancecoke
1 kW
1 kW
Posts: 450
Joined: Aug 02, 2017 2:56 pm

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

Post by stancecoke » Feb 03, 2018 4:26 am

honya96 wrote:
Feb 02, 2018 3:51 pm
So, I will try to find any pin from AIN which is near 0v
there are no more possibilities, as we know the function of all AIN pins, see the schematic.

AI0,AI1,AI2 --> MOSFET low side
AI3 --> "XS" on 6FET
AI4 --> Throttle
AI5 --> Current Phase B
AI6 --> Battery current unfiltered
AI7 --> "X4"
AI8 --> Battery current filtered
AI9 --> Battery voltage

You can try to solder a wire directly to AI3 if you have a really steady hand :D But to be honest, I don't know if we get in trouble with using AI3, as there is the alternative function "TIM1_ETR" on this pin...

Perhaps we should use the existing wires for the linear regen: With pulling the brake lever slightly, use the normal throttle signal as linear regen signal. I don't know if you like this option to handle brake lever and throttle syncronously, it's easy to implement this in the code....

regards
stancecoke

honya96
100 W
100 W
Posts: 170
Joined: Mar 05, 2015 9:38 am
Location: Czech Republic

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

Post by honya96 » Feb 03, 2018 5:21 am

Well, if its easy also I suggest doing the x4 regen as an option in java app + we will document somewhere how to get it working on 18fet and 12fet.

Brake signal + throttle regen can be option too but its not for me, I need left hand rear brake for doing wheelies. I am braking slightly while holding throttle so I have connected my lever brake signal in series and active only when both levers pushed.

Maybe adding a switch to deactivate brake signal while doing wheelies will be ok, so I can try it too if it will be just optional.

User avatar
stancecoke
1 kW
1 kW
Posts: 450
Joined: Aug 02, 2017 2:56 pm

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

Post by stancecoke » Feb 03, 2018 6:30 am

I checked the voltage on the open X4 at my 6FET again, there are 5V on it, too. With a ~10k Poti connected to gnd and +5V and the wiper to X4, it should work with the 18FET as well! Sorry for that confusion :oops:
It works with the poti, but it doesn't work with the thumbthrottle, as it can't pull the voltage down...
So i will try it on AIN3...

Image

regards
stancecoke

casainho
100 kW
100 kW
Posts: 1209
Joined: Feb 14, 2011 2:43 pm

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

Post by casainho » Feb 03, 2018 10:43 am

stancecoke wrote:
Feb 03, 2018 6:30 am
I checked the voltage on the open X4 at my 6FET again, there are 5V on it, too. With a ~10k Poti connected to gnd and +5V and the wiper to X4, it should work with the 18FET as well! Sorry for that confusion :oops:
It works with the poti, but it doesn't work with the thumbthrottle, as it can't pull the voltage down...
So i will try it on AIN3...
I wounder what are the differences on the S06ST torque sensor version, that has an input for throttle and another analog input for the "throttle" of the torque sensor........
Developer of the Flexible OpenSource firmware for EBike motor controllers: https://opensourceebikefirmware.bitbucket.io/

honya96
100 W
100 W
Posts: 170
Joined: Mar 05, 2015 9:38 am
Location: Czech Republic

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

Post by honya96 » Feb 03, 2018 11:03 am

@Stancecoke - try to get it working on X4 by easiest mod. possible so anyone can use it. AIN 3 looks empty on 12 and 18 fet and not everyone can solder to it.

casainho
100 kW
100 kW
Posts: 1209
Joined: Feb 14, 2011 2:43 pm

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

Post by casainho » Feb 03, 2018 11:07 am

My notes for S06ST torque sensor version:

The green wire from the torque-signal goes to the pad that's marked with "X4" on the circuit board (board revision KTE-6S3-B). The pad is connected via a RC-filter to pin 15, AIN7.

https://opensourceebikefirmware.bitbuck ... sion).html
Developer of the Flexible OpenSource firmware for EBike motor controllers: https://opensourceebikefirmware.bitbucket.io/

User avatar
stancecoke
1 kW
1 kW
Posts: 450
Joined: Aug 02, 2017 2:56 pm

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

Post by stancecoke » Feb 03, 2018 12:33 pm

Yes, that's the configuration on my S06ST. The problem is, that the linear hall-sensor is not able to pull down the voltage, pehaps we can pull it down with a e.g. 1k resistor from X4 to gnd, and the Hall sensor is able to pull it up against this resistor, I'll try...
But maybe it is better to remove the pullup on the PCB....

regards
stancecoke

honya96
100 W
100 W
Posts: 170
Joined: Mar 05, 2015 9:38 am
Location: Czech Republic

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

Post by honya96 » Feb 03, 2018 1:25 pm

stancecoke wrote:
Feb 03, 2018 12:33 pm
Yes, that's the configuration on my S06ST. The problem is, that the linear hall-sensor is not able to pull down the voltage, pehaps we can pull it down with a e.g. 1k resistor from X4 to gnd, and the Hall sensor is able to pull it up against this resistor, I'll try...
But maybe it is better to remove the pullup on the PCB....

regards
stancecoke
And maybe easy enough for everyone if we document which resistor it is. I will try it now.

honya96
100 W
100 W
Posts: 170
Joined: Mar 05, 2015 9:38 am
Location: Czech Republic

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

Post by honya96 » Feb 03, 2018 1:55 pm

Done, 0.047v at x4 with 18fet

1. Going to back side
2. Capacitor to ?
3. Back to front
4. 2.2K resistor in line to X4
5. Removed 2.2k to 5v
6. 100k to GND
7. Directly to X4
Attachments
20180203_195526-274x693.png

User avatar
stancecoke
1 kW
1 kW
Posts: 450
Joined: Aug 02, 2017 2:56 pm

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

Post by stancecoke » Feb 03, 2018 2:02 pm

honya96 wrote:
Feb 03, 2018 1:55 pm
Done, 0.047v at x4 with 18fet
Great!! Then the thumbthrottle should work now as a "break pedal" :-)

I tried a 1K as pulldown between X4 and gnd, this works also, but shifts the voltage level a little...
So the user can decide, which way he wants to go to use regen throttle...

Is the motor running with regen activated now?

regards
stancecoke

honya96
100 W
100 W
Posts: 170
Joined: Mar 05, 2015 9:38 am
Location: Czech Republic

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

Post by honya96 » Feb 03, 2018 2:13 pm

Done on 12fet also, arrow to which needs to be removed.

12fet has no 100k to GND so maybe better to remove on 18fet also.

Will try if the 18fet works now :)
Attachments
20180203_201136-479x270.png

User avatar
stancecoke
1 kW
1 kW
Posts: 450
Joined: Aug 02, 2017 2:56 pm

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

Post by stancecoke » Feb 03, 2018 2:24 pm

honya96 wrote:
Feb 03, 2018 2:13 pm
12fet has no 100k to GND so maybe better to remove on 18fet also.
You can keep the 100k pulldown, it's good to have defined conditions, if x4 is left open!

regards
stancecoke

honya96
100 W
100 W
Posts: 170
Joined: Mar 05, 2015 9:38 am
Location: Czech Republic

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

Post by honya96 » Feb 03, 2018 3:04 pm

Working!! :) Can't wait to test the brake on road.

casainho
100 kW
100 kW
Posts: 1209
Joined: Feb 14, 2011 2:43 pm

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

Post by casainho » Feb 06, 2018 4:21 am

I received my new toys (didn't pay taxes):
1x S12S
2x S06S-BL (with Bluetooth)
1x torque sensor

Now my all my 3 ebikes have a torque sensor only and this means I will need to improve the torque sensor code as currently is far from perfect.

The Bluetooth version of S06S, because I hope to start play with it when the firmware is stable.

Image
Developer of the Flexible OpenSource firmware for EBike motor controllers: https://opensourceebikefirmware.bitbucket.io/

casainho
100 kW
100 kW
Posts: 1209
Joined: Feb 14, 2011 2:43 pm

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

Post by casainho » Feb 06, 2018 8:08 am

Anyone knows what is the max current of this controllers?

The LCD accepts 8 bits to represent the motor current and I think each bit represents 0.25A, meaning it would be 255 * 0.25 = 63.75 amps.

Should we consider the motor max current possible to be 63.75 amps?
Developer of the Flexible OpenSource firmware for EBike motor controllers: https://opensourceebikefirmware.bitbucket.io/

Buk___
1 kW
1 kW
Posts: 480
Joined: Jul 28, 2017 5:59 pm

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

Post by Buk___ » Feb 06, 2018 10:51 am

casainho wrote:
Feb 06, 2018 8:08 am
Anyone knows what is the max current of this controllers?

The LCD accepts 8 bits to represent the motor current and I think each bit represents 0.25A, meaning it would be 255 * 0.25 = 63.75 amps.

Should we consider the motor max current possible to be 63.75 amps?
I have the S12SN controller from BMSB and a KT-LCD3 display. I don't think that my display shows Amps. It has a Watts display which I have seen show > 999W, and I believe goes up to 1999W.

HTH

Buk.

honya96
100 W
100 W
Posts: 170
Joined: Mar 05, 2015 9:38 am
Location: Czech Republic

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

Post by honya96 » Feb 06, 2018 11:13 am

casainho wrote:
Feb 06, 2018 8:08 am
Should we consider the motor max current possible to be 63.75 amps?
I need more than 64A

24fet 70A stock is running that amperage continuosly cold to touch I guess..

Just shows 1999w on lcd.

I plan to run 100A+ with my 18fet.

casainho
100 kW
100 kW
Posts: 1209
Joined: Feb 14, 2011 2:43 pm

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

Post by casainho » Feb 06, 2018 12:17 pm

honya96 wrote:
Feb 06, 2018 11:13 am
casainho wrote:
Feb 06, 2018 8:08 am
Should we consider the motor max current possible to be 63.75 amps?
I need more than 64A

24fet 70A stock is running that amperage continuosly cold to touch I guess..

Just shows 1999w on lcd.

I plan to run 100A+ with my 18fet.
So, I = P / U; 1999 / 48 = 41,645833333 <--- maybe the LCD was built to max of 48V and 40A. And maybe there are other versions of LCDs that can show higher power values... I guess a more powerful controller like 70A, can have double of shunts of the 40A (to handle max of 80A but can be programmed to handle the 70A) version and the LCD would just need to consider each bit = 0.5A instead of the 0.25A.

This are the shunts on the S12S 48V 40A controller I just received (didn't touch on the board, it is original):
Image
Developer of the Flexible OpenSource firmware for EBike motor controllers: https://opensourceebikefirmware.bitbucket.io/

Post Reply