View Single Post
Old 05-16-2015, 10:51 AM   #1851 (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
I"m going to integrate it into the controller code (again grrrrr), so the PI test is just another one of the serial commands. It was done, but hadn't been tested yet when the laptop was stolen. So, it will sort of be something like this:

kp-id 2000 // set proportional gain for Id PI loop.
ki-id 10 // set integral gain for Id PI loop.
run-pi-test

run-pi-test will then run the motor for like 1/50 second, assuming a locked rotor. Then it will display the array of results showing

IdReference - IdFeedback

The goal is for that quantity to converge to 0. So, if it doesn't converge to zero with no oscillations, you enter a new value for kp-id and ki-id, and then run the test again.

This morning is looking little optimistic for getting it done. I hereby revise "this morning" to "this evening" (or sunday morning). small children are already impeding progress. haha. I guess 5am wasn't early enough to finish it!

__________________
kits and boards
  Reply With Quote