View Single Post
Old 04-10-2009, 12:06 AM   #834 (permalink)
MPaulHolmes
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832

Michael's Electric Beetle - '71 Volkswagen Superbeetle 500000
Thanks: 1,368
Thanked 1,202 Times in 765 Posts
Quote:
Originally Posted by MazdaMatt View Post
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.
__________________
kits and boards

Last edited by MPaulHolmes; 04-10-2009 at 09:44 AM..
  Reply With Quote