You should ask to Kunteng and then configure that value on the firmware. Also please share with us the answer from Kunteng.Marv1337n said:Thanks to both of you, really appreciated. :thumb:
Do you know what the normal ratio is on a stock controller? Or is it different on each one?
I really want to know how much phase current my stock 60V 45A KT controller has.
casainho said:You should ask to Kunteng and then configure that value on the firmware. Also please share with us the answer from Kunteng.Marv1337n said:Thanks to both of you, really appreciated. :thumb:
Do you know what the normal ratio is on a stock controller? Or is it different on each one?
I really want to know how much phase current my stock 60V 45A KT controller has.
apple2 said:I've looked at the svm table and I am wondering what tool is used to generate it?
Also would it be more efficient to disable pwm on the low phase?
Yes, but not "normal" for e-bike (good only for PAS mode, not for throttle)stancecoke said:The throttle controls the current (= torque), that's the "normal" behaviour of every throttle in any motorcycle or car.j bjork said:So it should still be speed throttle, not torque?
Xnyle has build in the option assist lvl affects throttle, with this you can reduce the max amps of full throttle for low speeds. (I
j bjork said:I tried 215 motor angle, but it cogged badly and blew the fuse. So I think I have to go higer, it behaved better at about 230 where I was before.
MercyFlush said:Hi all, new here and looking for some direction. So I'm building a ~3-4kW peak BHT style mid drive direct drive ebike and am hoping to use a KT controller with this firmware, however I am not sure what kind of phase amps I could squeeze out of it.
My goals would require about 120A phase Amps. I see the Nucular controllers from Vasili can do 120A with 12 fets, so I am assuming a KT 18 fet might be able to stretch it to 120A?
Cheers
casainho said:You should ask to Kunteng and then configure that value on the firmware. Also please share with us the answer from Kunteng.Marv1337n said:Thanks to both of you, really appreciated. :thumb:
Do you know what the normal ratio is on a stock controller? Or is it different on each one?
I really want to know how much phase current my stock 60V 45A KT controller has.
Hi,
Glad to receive your email, we are dealer of KT company,
45A is the max current of the controller, but for the motor we know little, we never measure the current of the motor, if you want to know the motor, may be the motor supplier will give you a better answer, thanks
Regards
Gene
main.c
display_init();
#endif
//
while (ui8_adc_read_throttle() >= ADC_THROTTLE_MIN_VALUE);
ebike_app.c
case EBIKE_APP_STATE_MOTOR_STARTUP:
if (ui8_motor_startup_counter++ >= 30) // 30 * 100ms; 3 seconds max time
{
motor_controller_set_state (MOTOR_CONTROLLER_STATE_MOTOR_BLOCKED);
motor_disable_PWM ();
ebike_app_set_error (EBIKE_APP_ERROR_06_SHORT_CIRCUIT);
ebike_app_cruise_control_stop ();
ui8_ebike_app_state = EBIKE_APP_STATE_MOTOR_COOL;
break;
}
stancecoke said:apple2 said:I've looked at the svm table and I am wondering what tool is used to generate it?
Also would it be more efficient to disable pwm on the low phase?
There are several approaches how to calculate the SVPWM pattern.
You can't switch off any channel as we are using center aligned PWM. Zero in the lookup table does not mean zero DutyCycle on the phase wire. Look at the figure 31 of ST's User Manual 1052.
Glad to hear, that you are happy with our firmware
regards
stancecoke
Read all the tecnhical information here: https://opensourceebikefirmware.bitbucket.io/development/apple2 said:stancecoke said:apple2 said:I've looked at the svm table and I am wondering what tool is used to generate it?
Also would it be more efficient to disable pwm on the low phase?
There are several approaches how to calculate the SVPWM pattern.
You can't switch off any channel as we are using center aligned PWM. Zero in the lookup table does not mean zero DutyCycle on the phase wire. Look at the figure 31 of ST's User Manual 1052.
Glad to hear, that you are happy with our firmware
regards
stancecoke
Ok, I read the document and although I didn't understand all of it it seems that all phases are centered around 50% duty cycle when the commanded duty is 0. Is there any good reason behind this?
I actually tried changing this so that 0 duty is actually 0 duty on the phase and the controller seems to work fine. That way 1/3 of the mosfets are not switching which should increase efficiency... I have tested this on a 6 fet (because I didn't want to mess up my 18fet) and tried it up to 20A and works ok. So I have ben getting good results from the firmware on both 6 fet and 18fet. The pwm off when idle feature also works fine although its mentioned as experimental.
Another thing I tried is decreasing the dead time (from 16 to 8) which happily didn't cause burnt mosfets but caused something strange that I have no explanation for: the duty cycle (setpoint) never drops below 20 even with no torque request and throttle at 0. Requested current and actual current values are both 0 (or -0.1) so I don't see where that duty is coming from. The wheel is actually rotating slowly.. until I stop it with the brakes and duty goes to 0. Then after the next throttle application it is stuck at 20. I am only using throttle and no pas or torque sensor. Any ideas why that could be happening or how to debug?
kkm said:Today also uncomment line in main.c
// pwm_set_duty_cycle ((uint8_t) ui16_sum_throttle);
j bjork said:Interesting, it seems like we have a very simular setup apple2.
But some settings are very different, I have battery current 500 (as I understood in the instructions should mean 50A) and battery voltage cal 70.
Did you have to swap any phase or hall wires with the new firmware?
For me the bluosec app freezes all the time, so I don´t really get any live numbers. I can mostly try to have the bike running stedy for a while, and then look at the values after some time.
casainho said:Tiny LCD with bluetooh
PSWPower is selling the SW102 LCD for Bafang that seems a version of the eggrider LCD, for 45€. Seems a decent price.
Eggrider seems to use a Nordic microcontroller that includes Bluetooth.
SW102 listing on PSWPower and other online shops on aliexpress never mention Bluetooth but I found only a listing saying:
At present, this display does not have bluetooth function. If the bluetooth function is needed, it can only be customized with a batch order
Since they use a Nordic microcontroller that includes Bluetooth, I guess all this LCDs supports Bluetooth but it may be disabled/not implemented in firmware on some models.
I am being developing firmware for another ebike LCD (commercial project, not OpenSource) that uses Nordic microcontroller with Bluetooth, so I am familiar with this systems. They support the ARM GCC compiler, so would be more or less easy for me to develop for this LCD.
But the programming using bootloader on this LCD should be locked like on 850C so I think the only option is open the LCD and try solder the programming wires... let's see if is possible... I just bought 1 unit from PSWPower and should take 2 weeks to arrive.
This LCD has some characteristics many has being asking:
- small size
- Bluetooth
- cheap/medium price
Let's see if we can program it....