Go Back   EcoModder Forum > EcoModding > Fossil Fuel Free
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 08-28-2015, 11:58 AM   #1901 (permalink)
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
Is the rotor moving at all during a test?

__________________
kits and boards
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 08-28-2015, 01:13 PM   #1902 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by MPaulHolmes View Post
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.
  Reply With Quote
Old 08-28-2015, 03:49 PM   #1903 (permalink)
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
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.
__________________
kits and boards
  Reply With Quote
Old 08-29-2015, 01:55 AM   #1904 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
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
Attached Files
File Type: txt R130.txt (4.3 KB, 18 views)
File Type: txt R131.txt (4.2 KB, 19 views)
File Type: txt R132.txt (4.3 KB, 14 views)
File Type: xls R130.xls (27.5 KB, 17 views)
File Type: xls R131.xls (27.5 KB, 17 views)
File Type: xls R132.xls (27.5 KB, 14 views)
  Reply With Quote
The Following User Says Thank You to thingstodo For This Useful Post:
MPaulHolmes (08-29-2015)
Old 08-29-2015, 02:00 AM   #1905 (permalink)
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
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.
__________________
kits and boards
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
thingstodo (08-29-2015)
Old 08-29-2015, 02:29 AM   #1906 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by MPaulHolmes View Post
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!
  Reply With Quote
The Following User Says Thank You to thingstodo For This Useful Post:
MPaulHolmes (08-29-2015)
Old 08-29-2015, 02:32 AM   #1907 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by MPaulHolmes View Post
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!
  Reply With Quote
Old 08-29-2015, 02:36 AM   #1908 (permalink)
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
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.
__________________
kits and boards
  Reply With Quote
The Following User Says Thank You to MPaulHolmes For This Useful Post:
thingstodo (08-29-2015)
Old 08-29-2015, 02:58 AM   #1909 (permalink)
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
Oh the anticipation of it all! hahaha
__________________
kits and boards
  Reply With Quote
Old 08-29-2015, 06:03 PM   #1910 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by MPaulHolmes View Post
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

  Reply With Quote
The Following User Says Thank You to thingstodo For This Useful Post:
MPaulHolmes (08-29-2015)
Reply  Post New Thread




Similar Threads
Thread Thread Starter Forum Replies Last Post
Paul & Sabrina's cheap DIY 144v motor controller MPaulHolmes Open ReVolt: open source DC motor controller 7381 08-02-2023 11:55 PM
Paul & Sabrina's Cheap EV Conversion MPaulHolmes Fossil Fuel Free 542 11-12-2016 10:09 PM
Contest! Name Paul & Sabrina's controller MetroMPG Forum News & Feedback 120 10-22-2011 02:59 PM



Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com