08-28-2015, 11:58 AM
|
#1901 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
|
Is the rotor moving at all during a test?
|
|
|
Today
|
|
|
Other popular topics in this forum...
|
|
|
08-28-2015, 01:13 PM
|
#1902 (permalink)
|
Master EcoModder
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488
Thanks: 746
Thanked 565 Times in 447 Posts
|
Quote:
Originally Posted by MPaulHolmes
Is the rotor moving at all during a test?
|
Nope. Depending on the background noise, I have to put my hand on the motor to make sure that the test is actually injecting current.
The rotor on the 5 HP motor did not move either.
|
|
|
08-28-2015, 03:49 PM
|
#1903 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
|
Something funny is going on. I'm not sure about the code you have, but I've updated it on my end, so it will be good to know for sure what you have again.
P = 1, I = 0 should have resulted in ZERO current feedback the whole time. (it's just how the numbers work out on my end) The fact that your controller did what it did shows there was a problem in the software with something other than the PI loop.
|
|
|
08-29-2015, 01:55 AM
|
#1904 (permalink)
|
Master EcoModder
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488
Thanks: 746
Thanked 565 Times in 447 Posts
|
Repeat of test using old hex file, new hex file
File R130 (I repeated the log name and caused some confusion. R130 is for repeat of log file 130) uses the previous hex file and does a full power up, type in kp-id 1, ki-id 0, then run-pi-test
It appears to be a similar waveform to yesterdays data
File R131 uses the new hex file from today. Again, a full power up but this time I just type in run-pi-test
Very different waveform. The output does not go very low
File R132 uses the new hex file from today. Again, a full power up and then I type in the values Kp-id 1, Ki-id 0, run-pi-test - like R130
Same output as R131
I'm not sure what the heck the output means, but here it is
|
|
|
The Following User Says Thank You to thingstodo For This Useful Post:
|
|
08-29-2015, 02:00 AM
|
#1905 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
|
OK, now we are in business. There was a bug before. I think it came from teh fact that I was using a different current sensor, and I hadn't updated your hex file (before stolen car. lol) to reflect that you are using the lem hass 300-s. Try larger values of kp-id. Do that doubling trick you have. 2,4,8,16,... It is finally workign like it should! It won't be logn now!!!!! I don't even care that I"m asdf pelling things wrong I'm so happy! haha
EDIT: Maybe start at 2000 and go either up or down from there FOR kp-id. Keep ki-id = 0 for now.
|
|
|
The Following User Says Thank You to MPaulHolmes For This Useful Post:
|
|
08-29-2015, 02:29 AM
|
#1906 (permalink)
|
Master EcoModder
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488
Thanks: 746
Thanked 565 Times in 447 Posts
|
Quote:
Originally Posted by MPaulHolmes
OK, now we are in business. (snip)
Try larger values of kp-id. (snip)
Maybe start at 2000 and go either up or down from there FOR kp-id. Keep ki-id = 0 for now.
|
OK - so keep the new hex file loaded, then start the process again:
- Start at Kp-id 2000, Ki-id 0 and run-pi-test
- If it overshoots to -60 or lower, cut it in half and repeat
- If it does not overshoot to -60 or lower, double it and repeat
- when it stops dropping to -60, keep Kp-id constant and start playing with Ki-id
- log everything
I can do that!
|
|
|
The Following User Says Thank You to thingstodo For This Useful Post:
|
|
08-29-2015, 02:32 AM
|
#1907 (permalink)
|
Master EcoModder
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488
Thanks: 746
Thanked 565 Times in 447 Posts
|
Quote:
Originally Posted by MPaulHolmes
It should be pretty easy to increase the resolution, so that 1 would become 10000. I'll do that some time tomorrow. we could also up the current some for better resolution. I'll do that too.
|
Did you do the multiply by 10000 thing? Do I need to start at Kp-id 20000000?
Did you increase the current for the test? Not a big deal .. just asking!
|
|
|
08-29-2015, 02:36 AM
|
#1908 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
|
EXACTLY (The "I can do that!" post)... I increased current to 75amp. I didn't increase resolution for Kp and Ki. There was a mistake, so that won't be needed. We know for sure that kp-id = 1 is way too small now.
|
|
|
The Following User Says Thank You to MPaulHolmes For This Useful Post:
|
|
08-29-2015, 02:58 AM
|
#1909 (permalink)
|
PaulH
Join Date: Feb 2008
Location: Maricopa, AZ (sort of. Actually outside of town)
Posts: 3,832
Thanks: 1,362
Thanked 1,202 Times in 765 Posts
|
Oh the anticipation of it all! hahaha
|
|
|
08-29-2015, 06:03 PM
|
#1910 (permalink)
|
Master EcoModder
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488
Thanks: 746
Thanked 565 Times in 447 Posts
|
Quote:
Originally Posted by MPaulHolmes
Oh the anticipation of it all! hahaha
|
I got through the testing and Kp=941 was the best value. But after that was done, it kinda stopped working?
I started with Ki-id at 128, then went through 64,32,16,8,4,2,and finally 1
The waveform looked like the one we started with, Kp=1 and Ki=0 and no output.
So I re-ran Kp-id 941 and Ki-id 0. Still no output.
Pack is at 125.5V and I checked it on the terminals for B- and B+ on the controller. The 12V battery is down to 12.7V, 12.5V at the terminals of the DC/DC converter.
I rebooted everything from scratch - laptop and controller, restarted hyperterminal, libreoffice calc, etc. Checked all of the voltages again. No output for Kp-id 941 Ki-id 0. Cycled power on the controller and just did run-pi-test. Again no output and the graph looks the same.
I have the 12V battery on a charger and will try again a bit later ... any other ideas on what may have gone weird? Anyone?
I'll attached the files for determining Kp in a separate post when we get this figured out
|
|
|
The Following User Says Thank You to thingstodo For This Useful Post:
|
|
|