Quote:
Originally Posted by MazdaMatt
Paul, I was just thinking about the concept of reading the current at the same point on the PWM each time.
|
I ordered a quartz crystal for the micro-controller, so it will have a 16.000 MHz clock now instead of 8. Also, I got some good advice today about how to generate an interrupt in the center of each PWM "on time" of the ATMega8/16/32, so I'm going to try that out. Then I'll read the current (a more stable value now I hope!) and update the throttle during each and every single pwm wave. I'm thinking it will make things pretty stable.