View Single Post
Old 01-04-2017, 01:52 PM   #2979 (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
EDIT: OK something weird is going on. Let me think for a bit.

Old Message:
OK, before setting throttle to a usable range, first let's run the pi test while the throttle is zero (well, somewhere in the "dead zone"). With maybe 48v hooked up, type:

Alternatively, if you know the resistance from phase to phase, we could figure it out analytically.

If it finds good values for Kp and Ki, next run:

That will let us look at just how good the convergence is, to let us know if we need to use slightly different values.

After we have good kp and ki (still at 48v or so), type:

Hopefully, that will start out slow, gradually spin the motor faster, and gradually slow down. It might take like 5 minutes to run. Once it's done, you should have a good value for the rotor time constant. Do all of this stuff while the throttle is "zero" (GREATER THAN min-regen-position and LESS THAN min-throttle-position).
kits and boards
  Reply With Quote