View Single Post
Old 07-10-2009, 10:46 PM   #1976 (permalink)
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,119 Times in 734 Posts
The Microcontroller Isn't Latching Up! That's Not The Problem!!!

I am much closer to finding the problem! The microcontroller ISN'T latching up! Instead, the mosfet driver is getting disabled by the hardware overcurrent shutdown, and the microcontroller isn't clearing the overcurrent event! This is fixable! It's not some vague voltage spike problem.

In fact, I believe there's a temporary work-around. I'll try it when it's light outside. After the overcurrent event happens, just have it enter an infinite loop, which will cause the watchdog to reset. Set the hardware overcurrent trip point pretty high (maybe 650 amps?), and tune a PI loop so that it never gets tripped (software keeps current limit around 500 amps or so), and if it is tripped by some miracle, Joe and Adrian and Ben will just have to lift their foot for a second, and keep driving (the high pedal lockout will be engaged again, since the program would have restarted).

Even better than than, is to figure out why the micro isn't clearing the overcurrent event. hmm! Oh the mystery of it all!
kits and boards

Last edited by MPaulHolmes; 07-11-2009 at 12:40 AM..
  Reply With Quote