• Hello ES! We could use some help to get us past the finish line on building the new knowledgebase for the forum.
    Can you donate? Please see our fundraising page. Thank you!

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

I've added the current sensors to the boards (2 different ZWS controllers) and the motors seem much smoother and quieter, so I assume that sinewave is now working. Still having issues with bluetooth though so I can't really diagnose or debug the motors at all. Should I try the master branch? I read somewhere that it had issues with calculations and wouldn't work with bluetooth/BluOsec, but I am having issues with those anyways. Maybe the master branch has been updated since that recommendation?
Hi Frank, I see your post is a few years old, but perhaps you or others can weigh in here. I want to add phase sensor to my KT36/48ZWSRL-NBP02XL. Where did you but these? and which firmware did you go with? TIA, Bob
 
Hey everyone,

Previous year I finally finished version 1 of my new build. Fully custom, a lot of 3d printed parts. And off course if's not final version yet, but I already did 1000km on it. Regarding electricity part I have Bafang G040 motor 48v 500w. I am using 22a (but the real is 26a as I can see in BMS) KT controller for Polly case based on kte-9s5-J6 board (9 fets with one ACS711 on it). Computer is KT-LCD11. PAS is BZ10C on the right side. Battery is 13s4p on LG M58T + jbd sp14s004 30a in very customized Polly DP-5C case. I cut off the top part of case and 3D printed a new one. I already did some upgrades. I bought a new rockshox 35 gold debonair 160mm. Also thinking to replace my monarch rl 200x57 with Deluxe Select+ RT DebonAir 190x45 or Fox Float DPS Performance 3Pos EVOL LV 190x45 (190 is a size from manufacturer, to fit 200 I customized it as well). Also couldn't find a good light. So, I reworked existing: re-soldered 6000k xml-t6 to xm-l2 4500k along the edges and 3000k in the center, also reworked driver to produce needed current (2,75v and 0,8a for each led on fully charged battery). Now it works as a charm. Also planning to change wiring. I don't like the brake line and shifter housing in the upper tube. Will move it to the lower tube. And will add a dropper post a bit later.
photo_2025-08-25_11-37-09.jpgphoto_2025-08-18_12-36-29.jpgphoto_2025-08-17_14-50-40.jpg

And the last and the main reason why I am here is a torque sensor. I am planning to use Erider T17. For the initial test I decided to use old ZWSRM-TS2F (also 9 fets without ACS711 on it) and configure PAS. For now I don't have Erider T17. But if everything works fine then I will test Erider T17 with ZWSRM-TS2F and only then will do the same with kte-9s5-J6 (SVP?). I know that controllers are different because of current sensor ACS711. One is ZWS and another is SVP? Also I know that on the old SVP boards there were 2 sensors. But now on kte-9s5-J6 which should be SVP there is only one. As a result I spent a few days together with AI trying to properly configure my controller (ZWSRM-TS2F + PAS) for initial test. I didn't write it yet. Decided to ask for a brief review for the configuration. I don't want to burn something. I'm worried mostly about hall angles and "Disable Interpolation" option. Thanks in advice!

1778678846381.png1778679318663.jpeg
1778679892350.png
 
Decided to ask for a brief review for the configuration. I don't want to burn something. I'm worried mostly about hall angles and "Disable Interpolation" option. Thanks in advice!
This thread is pretty quiet nowadays, so you may struggle to get any response to your questions. Not sure I can be much help to you, all I can do is state my setup/config differences and let you decide if anything is relevent to you. I'm using an Aikema Q128h motor using a 6fet sinewave Kunteng, all powered from a 12s (~44v) battery.

My Battery/Phase current max's are set to 150/500, a bit higher than yours.
Different Undervoltage/Overvoltage numbers of course.
Motor specific angle in my config is set to 237 but don't ask me how I arrived at that figure, it was all a long time ago.
I'm not using 'Power Based Control', tbh I'm not sure what that does....
I haven't got 'Disable Interpolation' selected.

......most else is either much the same or not relevent.
 
My Battery/Phase current max's are set to 150/500, a bit higher than yours.
Different Undervoltage/Overvoltage numbers of course.
Motor specific angle in my config is set to 237 but don't ask me how I arrived at that figure, it was all a long time ago.
I'm not using 'Power Based Control', tbh I'm not sure what that does....
I haven't got 'Disable Interpolation' selected.
Thanks for the reply!
For the Battery/Phase I decided to start with limited current to avoid any issues 15\25A.
For Undervoltage/Overvoltage I need a range of 38v-54,6v. In the formula exists Volt Calib which is 69 in my case. So, 38*256\69=140. The same for Overvoltage with a small margin.
Regarding 'Disable Interpolation' it was an advice from AI to use it together with Motor specific angle = 0. As I understood it's needed for ZWS type of controller.
Pretty the same situation with 'Power Based Control'. It was an advice from AI according to a code review.
 
Well, I decided to test my settings and after writing custom firmware my ebike doesn't react on controller and I can't connect it anymore to clear the firmware and try something else.
 
Seems that my STM8S105K6T6 is dead. I don't see any short circuits on the board, 5v is in place. But I can't connect using SWIM port. I sill have kte-9s5-J6 board (9 fets with one ACS711 on it). Will add a photo of ACS711.
1778794008327.png

And I still want to try to use Erider T17 and custom firmware, but I don't want to fry another controller. Can anyone provide a correct settings for my setup?
 
Back
Top