stancecoke
1 MW
Thank you for your effort.haiyi911 said:I want to add a protection function
I don't know, if this solves your problem, but zero current means
Code:
ui16_setpoint = ui16_current_cal_b;
regards
stancecoke
Thank you for your effort.haiyi911 said:I want to add a protection function
ui16_setpoint = ui16_current_cal_b;
Thanks! butstancecoke said:Thank you for your effort.haiyi911 said:I want to add a protection function
I don't know, if this solves your problem, but zero current means
Code:ui16_setpoint = ui16_current_cal_b;
regards
stancecoke
casainho said:Status of the OpenSource firmware for Bafang 850C color LCD
The configuration menu is now fully implemented and is well structured that is easy and fast to add/remove items to the menu. This LCD would be a good tool for KT motor controllers, for the ones that do prefer an LCD. In future I want to implement graphs so the LCD can show a graph of real time value of variables like motor current, rider pedals human power, etc.
This would fit very well, because I developed the firmware and I did structure and program with the same logic I did for KT. Also the development tools are just the same! The good of this LCD is that is very flexible:geofft said:I'm a little confused though, as to where this fits in with the KT controllers - I guess this isn't currently compatible with your KT (S06S etc) fw branch, do you have plans to upgrade the KT controller fw to work with this?
stancecoke said: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
haiyi911 said:and what is the ACA meaning? " #define ACA 4760""
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_INFLUENCES_REGEN = ((uint16_t) 16),
SPEED_INFLUENCES_TORQUESENSOR = ((uint16_t) 32),
PAS_INVERTED = ((uint16_t) 64),
DUMMY_ALWAYS_ON = ((uint16_t) 128),
BYPASS_LOW_SPEED_REGEN_PI_CONTROL = ((uint16_t) 256),
DYNAMIC_ASSIST_LEVEL = ((uint16_t) 512),
TQ_SENSOR_MODE = ((uint16_t) 2048),
ANGLE_CORRECTION_ENABLED = ((uint16_t) 4096)
} ACA_FLAGS;
ui16_aca_flags = ACA;
IgorsLog said:Would it be possible to make the brake shift and throttle work separately?
I did that code and I can explain:haiyi911 said:Hi,stancecoke
whats the following lines meaning? calculate average? and how to calculate it?
in ACAsetPoint.c
“”ui32_erps_accumulated -= ui32_erps_accumulated >> 3;
ui32_erps_accumulated += ui16_motor_speed_erps;
ui32_erps_filtered = ui32_erps_accumulated >> 3;“”
casainho said:
First we remove 1/8 of the accumulator and then we add our new value, finally the average value is 1/8 of the accumulator.
haiyi911 said:Hi,
the motor didnot run smoothly when the motor was overspeed.[youtube]https://youtu.be/FXm6dFyo3hI[/youtube]
maybe it is strange when i ride the bicycle. so i want to keep the speed(the limit speed) as the default speed ,when the motor is overspeed,the speed is still keep as the limit speed.
which code should i do some change? Thanks!
From my experience the throttle (with both Casainho's and Stancecoke's fw) works well with smooth and progressive response. I seem to remember stock fw throttle was rather jerky? The open source fw is a great improvement on this.j bjork said:Hi, it has been a bit silent in this tread for a while :wink:
Has there been any progress?
A question, how is the trottle response compeared to the standard fw? I think it is a bit slow on the kt fw.
I have got the most parts for a conversion, but it seems i have bought a bluetooth module without the blutooth bord..
It is still winter with snow and ice here, and I want to try the controller a bit more before changing fw, so it has been slow at my end.