Originally Posted by obor
I used this:
.equ MIN_RC_PULS = 100 ; Less than this is illegal pulse length
.equ MAX_RC_PULS = 1200 ; More than this is illegal pulse length
.equ STOP_RC_PULS = 220 ; Stop motor at or below this pulse length
.equ POWER_RANGE = 900 ; Number of PWM steps (if adjusted, see scaling in evaluate_rc_puls)
Thanks for asking, I just checked the period between pulse in the converter, and it is still set to 2500usec instead of 1400.
... So my feeling about less woobles was wrong...
I'll test again with 1400 before reducing further down.
Hello! Yes, I wouldn't really expect much difference between normal PWM at just under 2ms and UltraPWM at 2ms.
Does it make sense to use those values for UltraPWM? I wasn't sure what to use for MIN_RC_PULS, so I went with 10, since the spec just says to send lower than 200us to make sure the motor stops. Also, I went with 1400 as the MAX pulse length to allow some room for clock differences so that there can still be a maximum throttle. Finally, the spec says 1000 PWM steps, so why did you go with 900? Does it not reach maximum throttle otherwise?