Search found 896 matches

by stancecoke
Dec 05 2018 9:44am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

IgorsLog wrote:
Dec 05 2018 8:59am
Would it be possible to make the brake shift and throttle work separately?
Yes, of course. You can do what ever you want :wink:

regards
stancecoke
by stancecoke
Dec 03 2018 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: 3323
Views: 140016

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

and what is the ACA meaning? " #define ACA 4760"" In this value the initial settings of some parameters are stored. typedef enum { ASSIST_LVL_AFFECTS_THROTTLE = ((uint16_t) 1), OFFROAD_ENABLED = ((uint16_t) 2), BRAKE_DISABLES_OFFROAD = ((uint16_t) 4), DIGITAL_REGEN = ((uint16_t) 8), SPEED_INFLUENCE...
by stancecoke
Dec 01 2018 11:51am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1353
Views: 41523

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

thineight wrote:
Dec 01 2018 9:30am
I would like to look into to see if I understand some of the logic behind this great firmware.
The motor commutation is done in the motor.c

The ebike specific things (processing of PAS-, throttle-, torque-signals, display communication etc...) are done in the ebike-app.c

regards
stancecoke
by stancecoke
Nov 29 2018 2:53am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

Uups, your code was right, ui16_setpoint is the duty-cycle, not the current target. The delay of the speed information is an issue of the display, not of our firmware.

Regards
stancecoke
by stancecoke
Nov 28 2018 1:28pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

haiyi911 wrote:
Nov 28 2018 5:17am
I want to add a protection function
Thank you for your effort.
I don't know, if this solves your problem, but zero current means

Code: Select all

ui16_setpoint = ui16_current_cal_b;
regards
stancecoke
by stancecoke
Nov 25 2018 12:54pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

Valopallo wrote:
Nov 25 2018 12:15pm

Ok. I flipped the disk, but the situation remains the same :(
then you have to mount the whole sensor to the other side of the bottom bracket.
There are tons of posts regarding this topic in this forum.

regards
stancecoke
by stancecoke
Nov 25 2018 10:30am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

What can I do? It is obvious that you are using a PAS with an internal direction detection. PAS pulses are only generated, when the pedals are turning in the right direction. Just turn your PAS disc on the bottom bracket shaft, so that the arrow on it points to the opposite spin direction. Then it ...
by stancecoke
Nov 23 2018 12:39pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

Nixunen wrote:
Nov 21 2018 12:06pm
Is there any possibility to add field weakening in kt controllers, using OpenSource firmware ? Or are s/kt controller even capable of such thing, or is there missing some important hw parts etc?
That's very easy, you just have to choose a higher advance angle... :shock:

regards
stancecoke
by stancecoke
Nov 20 2018 12:45pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

I'm interested in your thoughts. Do you know the function of the 78MOS or the 14-pin IC? The 78M05 is the 5V regulator and the 324 is as guessed a four channel op-amp. But I don't know, why there are 4 op-amps needed :confused: Is the X4 socket what would be used for an analog input for a torque ce...
by stancecoke
Nov 20 2018 4:37am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

Since it is labeled 9S I think it probably is sine wave, but I personally cannot tell from the chips. I recall sine controllers have phase current sensors? Can anyone tell? There is the phase B current sensor, right next to the green phase wire. You can't do classical FOC with this controller, but ...
by stancecoke
Nov 16 2018 4:02am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1353
Views: 41523

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

I still think is most important to being able to quick change assist level and max power while riding. If the motor works as a multiplier of human power, there is no need to change the assist level in 99% of my rides! :D The favorite ride mode is a matter of personal preference, I think! regards st...
by stancecoke
Nov 14 2018 12:09pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

j bjork wrote:
Nov 13 2018 6:08am
Wait, change assist level. Does that work?
Yes, that works.
j bjork wrote:
Nov 13 2018 6:08am
To loose cruise control and light control would be bad though.
both features only need very little changes in the code.

regards
stancecoke
by stancecoke
Nov 11 2018 2:30pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

Aye! <3 Finally, everything works, except I cannot reverse PAS direction neither I can't turn ON the offroad mode... Would it be cool to have offroad enabled from the BluOSEC app somehow? Is there? I've just added some more information how to determine the right value for PAS threshold in the wiki ...
by stancecoke
Nov 09 2018 3:10pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

Yip it's the display no longer comes to life if it's switched off during use. So it's a problem of the LCD, not of our firmware. You can try to pimp your LCD, there seems to be the possibility to tune the shut off voltage, see here: https://endless-sphere.com/forums/viewtopic.php?t=94070&start=25#p...
by stancecoke
Nov 09 2018 7:52am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

(the newest fw)when the throttle is full ,the BLUOSEC app shows the speed 15.4km/h. i measured the revolution is 183RPM. wheel size is 18' . so the actual speed 15.7km/h. 1:when the throttle is full, the speed should be 25km/h??? Can you check the duty cycle at top speed in the App? If it is alread...
by stancecoke
Nov 09 2018 5:59am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

Did you have any thoughts on the system not restarting when under 19v, do you know if anyone has tested this with a variable power supply. What is the problem? Do you use display and the display is not starting? Or is the display working and the PWM doesn't start, in this case please check the volt...
by stancecoke
Nov 08 2018 12:18pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

Can you check if the advance angle is stable?

regards
stancecoke
reset wrote:
Nov 08 2018 9:22am
I then stupidly connected red uart cable to controller red pin.
:shock:

The tutorial says:
Never connect VCC directly to the red wire of the display connector, this will destroy the module!
by stancecoke
Nov 08 2018 12:08pm
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1353
Views: 41523

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

But I don´t like that approach having current controller on slow loop Perhaps you can do a similar log with your implementation, to see if there is any difference in the lag between current target and recent current. My log is with 50Hz slow loop frequency. https://www.pedelecforum.de/forum/index.p...
by stancecoke
Nov 08 2018 4:15am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1353
Views: 41523

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

The advantage ist very clear, you get a much faster and more natural response with the PI-control (turquoise green plot). Your implementation is a pure I-control (light green plot). With our experience, you don't need an extra control in the fast loop. https://rn-wissen.de/wiki/images/a/a7/Reglerver...
by stancecoke
Nov 08 2018 3:35am
Forum: Motor Technology
Topic: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor
Replies: 1353
Views: 41523

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

1. we should implement a current ramp and not a duty_cycle ramp. Why don't you use a PI-controller for the battery current, like we do in the Kunteng project? With this you can adjust the response time very easily with the parameters Gain_P and Gain_I... uint32_t PI_control(uint16_t pv, uint16_t se...
by stancecoke
Nov 05 2018 1:29pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

please use the DIAGNOSTICS mode or the BluOSEC app to see what the controller is doing. (controlstate, raw values of ADC Voltage reading.

regards
stancecoke
by stancecoke
Nov 05 2018 12:01pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 3323
Views: 140016

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

battery voltage c... See chapter four of the tutorial: Battery Voltage Calibration: Used for internal calculation of the voltage from the 8bit ADC value. Must only be changed if the calibration with the preset values obviously does not fit. You can adjust the voltage that is shown in the BluOSEC ap...
by stancecoke
Oct 28 2018 2:38pm
Forum: E-Bike Technical
Topic: Sempu BB + cycle analyst assist not working well
Replies: 21
Views: 1015

Re: Sempu BB + cycle analyst assist not working well

the behaviour of the Sempu PAS-Signals was a bug, I solved it today.

regards
stancecoke