Search found 119 matches

by Valopallo
Sep 10 2021 7:22am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

[Can you please post the content of your config.h regards stancecoke /* * config.h * * Automatically created by OSEC Parameter Configurator * Author: stancecoke */ #ifndef CONFIG_H_ #define CONFIG_H_ #define NUMBER_OF_PAS_MAGS 12 #define limit 25 #define timeout 3125 #define wheel_circumference 203...
by Valopallo
Sep 10 2021 6:30am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

Did not change anything. I tried the throttle only code once again and now it does not work either. Sorry, then I can't help any more. I am at the end of my rope at this point. :confused: regards stancecoke Any help with the gazelle branch error: C:\BMSBattery_S_controllers_firmware-Gazelle>PATH = ...
by Valopallo
Sep 10 2021 5:14am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

Tested and the problem came back OK, so we have to skip all the condition checks first. Replace lines 205 -324 with uint32_current_target = ui16_current_cal_b; // reset target to zero controll_state_temp = 0; ui8_temp = ui8_assist_percent_actual; if ((ui16_aca_flags & DYNAMIC_ASSIST_LEVEL) == D...
by Valopallo
Sep 09 2021 1:16pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

What to do next to get the PAS working also? untested suggestion, replace lines 205 - 291 from the recent Master with: uint32_current_target = ui16_current_cal_b; // reset target to zero controll_state_temp = 0; ui8_temp = ui8_assist_percent_actual; if ((ui16_aca_flags & DYNAMIC_ASSIST_LEVEL) =...
by Valopallo
Sep 08 2021 5:21am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

you could try to replace all the lines 206-324 by just this two lines: uint32_current_target =ui16_sum_throttle + ui16_current_cal_b; ui32_dutycycle = PI_control(ui16_BatteryCurrent, uint32_current_target,uint_PWM_Enable); This just takes the throttle signal for controlling the current. You can do ...
by Valopallo
Aug 18 2021 9:01am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

you could try to replace all the lines 206-324 by just this two lines: --- So of course be aware, that this suggested code modification is not tested at all and there is a risk to burn your system... regards stancecoke Well that's quite risky. I might try other branches before that operation. I did...
by Valopallo
Aug 18 2021 3:13am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

So I basically just copy/ paste /replace everything starting from line 211 of ACAsetpoint.c No, not if you want to use PAS / Throttle. I have only optimized the part for the torquesensor data processing. There is the basic PAS calculation in lines 220-232 that has to be changed and then later, depe...
by Valopallo
Aug 17 2021 10:20am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

What parameter changes could I try to fix this? This has nothing to do with parameter settings. It's just a processor overload. As written several times before, you need to replace all the float- and division operations in Xnyles code with integers and right shifts. We have done this for the branch...
by Valopallo
Aug 17 2021 12:46am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

My 2wd project has been running nicely the whole summer. I modded my s06s controllers so they transfer the heat of the big resistor and the lm317 and I have been riding with the factory firmware on both of them at 58.8V max without any problems. Without display I wasn't able to use PAS so I used onl...
by Valopallo
May 10 2021 11:04am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

Hello. I want to share my 2WD bike's KT24/36-SVP -controller case mod and my frame casing with alarm. IMG_20210510_181938.jpg I drilled a hole to the side of the casing, sealed the lm317 with kapton tape and the big resistor with heat resistant tubing from touching the screw and clamp. IMG_20210508_...
by Valopallo
Apr 24 2021 7:06am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

atkforever wrote:
Apr 24 2021 4:46am
I think you are right, the walkassist seems to be operating by default when I turn on the controller,
Your undervoltage is 67V!

Code: Select all

 67 x (256/200) = 85
atkforever wrote:
Apr 18 2021 3:48pm
I own a 18 fet KT labeled as 56V-90V, 50A max with a 16S (67V max) battery.
by Valopallo
Apr 23 2021 12:31pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

What could have changed with the code so drastically? You can see the history at github https://github.com/stancecoke/BMSBattery_S_controllers_firmware/commits/Master Thanks, I will try some of the older ones before the WALK_ASSIST changes because that would fit to my timeline of working master bra...
by Valopallo
Apr 22 2021 12:04pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

:warn: Has anyone else noticed that these latest problems with the firmware seem to have a pattern of correlation? Could the code have a bug that has been added with some new(<1 year) update? Symptoms seem to be; wheel spinning on it's own after throttle or pas. Burned mosfets. Overheating big resis...
by Valopallo
Apr 09 2021 3:31am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

Is there a temperature sensor on board No, and I think it wouldn't help, you have to measure directly on the critical components. I hope you really read the wiki and don't power your BT-module from the 5V rail of the controller :shock: No It's powered from the controller main as written there. Is t...
by Valopallo
Apr 09 2021 1:22am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

stancecoke wrote:
Apr 09 2021 12:42am

You can try to attach an additional heatsink to both parts.
Is there a temperature sensor on board and if so, how could I measure the controller temperature and test my cooling conditions?
by Valopallo
Apr 08 2021 3:57pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

please print (uint16_t) uint32_current_target instead of ui16_sum_torque 1,0, 0, 322, 320, 0 1,0, 0, 322, 320, 0 1,0, 0, 322, 320, 0 1,0, 0, 322, 320, 0 1,0, 0, 322, 320, 0 1,0, 0, 322, 320, 0 1,0, 0, 322, 320, 0 1,0, 0, 322, 320, 0 1,0, 0, 322, 320, 0 1,0, 0, 322, 320, 0 1,0, 0, 322, 320, 0 1,0, 0...
by Valopallo
Apr 08 2021 10:45am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

Please be so kind to read and try to understand the wiki, it's all written there!!! Read it 3 times, if you don't understand it after the first time. If you still don't understand it after the third time, feel free to ask. regards stancecoke <3 You bet I have been reading the wiki for three years n...
by Valopallo
Apr 08 2021 7:35am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

I raised them up to 15A battery and 30A phase the motor won't spin at all. What do you get for the control state in this case? https://github.com/stancecoke/BMSBattery_S_controllers_firmware/wiki/08-Control-State-and-Troubleshooting regards stancecoke Control states are; Idle=1, Throttle=17, PAS=14...
by Valopallo
Apr 07 2021 3:37pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

I raised them up to 15A battery and 30A phase the motor won't spin at all. What do you get for the control state in this case? https://github.com/stancecoke/BMSBattery_S_controllers_firmware/wiki/08-Control-State-and-Troubleshooting regards stancecoke Thanks for the help once again! I had changed m...
by Valopallo
Apr 07 2021 9:41am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

If it still runs to the limit, there is something wrong with your phase current sensor... How can I test the sensor operation? I found a new motor specific angle that felt good with lowered amps(7A,14A) and the correction value remained normal straight line now. I got my correction angle changed to...
by Valopallo
Apr 06 2021 7:24pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

For those who want to optimize the waveform of their firmware, I've made a short tutorial. Once I figured this out life got better. It took a bit of tinkering and I also realized that some beginners might find this helpful. diagram.jpg In this diagram of BluOSEC app we can see there is some correcti...
by Valopallo
Apr 03 2021 8:34am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

It seems I have to dig in to this deeply so I might as well learn how to properly use the firmware then. :D Hall Angle 4 : Defines the rotor angle assigned to Hall pattern 4. (Hall patterns shown here) Usually does not need to be changed. This can be used to compensate for manufacturing inaccuracies...
by Valopallo
Apr 03 2021 6:23am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

This is what Blueterm returns with parameters: ui16_setpoint, uint32_current_target, ui16_BatteryCurrent, ui16_sum_torque, ui16_adc_read_battery_voltage(), ui16_motor_speed_erps Idle: 0, 320, 322, 0, 402, 0 0, 320, 322, 0, 401, 0 0, 320, 322, 0, 402, 0 0, 320, 322, 0, 401, 0 0, 320, 322, 0, 401, 0 0...
by Valopallo
Apr 01 2021 1:23pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

I'd be inclined to use a lower Gain I value to start with, I find that the default of 0.2 gives quite an aggressive current ramp up which caused some issues on my setup. I've now reduced this to 0.05 Thanks. I will try that. That might save me some hassle in the future. Wikistuff IMO EDIT: I actual...
by Valopallo
Apr 01 2021 10:50am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4590
Views: 475844

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

Ok. Now that I have chilled a little. Let's buy the 7th and 8th controllers for this project but please help me. Before doing anything stupid, let me get this workflow straight( and sum up what I have learned this winter): 1. When the new controller arrives, I test the motor with the controller firs...