View Single Post
Old 01-04-2017, 08:23 PM   #2954 (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
What PI values did you get when it said it passed the test? Could you try (at least for now)
rotor-time-constant 30
And make sure you have the good Kp and Ki that you found from the PI test. Also make sure it has the correct 2 pole pairs. If you don't type "save" it will go back to defaults.

Also, just to make sure, could you do the following:

stream-mechanical-speed 1
data-stream-period 1000

Then, twist the motor shaft by hand and see which way it thinks is positive rotation, and also verify that it is giving a good value for revolutions per minute. Just to make sure the encoder is working right. Then turn it the other way to verify that it shows negative rpm. Does all of that work?
__________________
kits and boards
  Reply With Quote