Ok. The APT controller also carried on a bit after throttle release. Very noticable with wheelies. The fardriver i got is a lot better. My model and firmware are ND1961800B_463_14A.2.3..... But obviously im using an encoder so its probably different. I also found some motor auto learn params;
LD: 1151uH
LQ: 373uH
FAIF: 0.0226
I also did autolearn on the stand with rear wheel spinning.
While you had the Oscope connected did you look at how fast the throttle signal dropped when you let it snap shut?
I nurse a deep dislike for arduinos in general. What you want to do is possible but hugok is right, a comparator is probably what id use. I would not use the PWM output to drive the controller, i would use an electric potentiometer because its more what the drive expects...that or a DAC.
Doug
LD: 1151uH
LQ: 373uH
FAIF: 0.0226
I also did autolearn on the stand with rear wheel spinning.
While you had the Oscope connected did you look at how fast the throttle signal dropped when you let it snap shut?
I nurse a deep dislike for arduinos in general. What you want to do is possible but hugok is right, a comparator is probably what id use. I would not use the PWM output to drive the controller, i would use an electric potentiometer because its more what the drive expects...that or a DAC.
Doug