View Single Post
Old 12-26-2008, 03:45 AM   #41 (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,362
Thanked 1,202 Times in 765 Posts
gentle throttle ramp-up added to software

New feature added! Gentle Ramp up of throttle. There's a problem if you accelerate too fast from 0 RPM. A motor has about 0.01 Ohms of internal resistance, or even as small as 0.001 Ohms for a really big one. Also, the inductance is very small, like 60 uH or so. The inductance resists a change in current, which is helpful in current limiting. However, 60 uH is TINY! A worst case senario can see a 4 amp increase in a millionth of a second! So, it's tough to limit the current when it's growing so fast. So, one thing you can do is restrict the rate of growth of the PWM duty. For example, if you ram the gas pedal to the ground almost instantly, the software will make you wait like 5 or 10 seconds or whatever until it reaches 100% PWM duty. It doesn't limit how fast you can slow down, though. It is tested and working.

That buys me some extra time to monitor the current increase and shut things down if the current gets to high.

I still have about 91% of the space on the chip available! ya! Maybe I'll add space invaders if there's not much else to do.

__________________
kits and boards
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
faerietree (07-14-2012)