Basia said:
Basia said:
casainho said:
PWM_DUTY_CYCLE_AMP ??
And buy and use a fuse in series with the battery positive/red wire, of 10 amps or even less.
Sorry )
config.h
#define PWM_DUTY_CYCLE_RAMP_UP_INVERSE_STEP 35
#define PWM_DUTY_CYCLE_RAMP_DOWN_INVERSE_STEP 35
I do not understand how this works. Is it possible to disable PWM? Is it possible to disconnect all PAS sensors from the settings? I have only a throttle.
PAS settings must be there but you can ignore the values/PAS options.
Should be this for a throttle:
// choose between throttle and/or pas or torque sensor
#define EBIKE_THROTTLE_TYPE EBIKE_THROTTLE_TYPE_THROTTLE_PAS
//#define EBIKE_THROTTLE_TYPE EBIKE_THROTTLE_TYPE_TORQUE_SENSOR
// next, choose one of the both (only apply to throttle and/or PAS)
//#define EBIKE_THROTTLE_TYPE_THROTTLE_PAS_PWM_DUTY_CYCLE // direct PWM duty_cycle control
#define EBIKE_THROTTLE_TYPE_THROTTLE_PAS_CURRENT_SPEED // control using motor current/torque and/or wheel speed
Don't change this, a smaller value of 35 can help burn the power mosfets of the controller. But you can try increase the value to get a slower response and even have the mosfets with lower phase currents, so will be better for them.
#define PWM_DUTY_CYCLE_RAMP_UP_INVERSE_STEP 35
#define PWM_DUTY_CYCLE_RAMP_DOWN_INVERSE_STEP 35