That is looking good. You should now try maybe 3000 or 4000 (or more?) for kp, and gradually increase ki in that situation too (starting small). haha. I bet you can get even faster convergence.
Is Kp 2000 and Ki 320 OK for a test spin on the motor? It looks reasonable to me ...
I agree that the response could be better but I still don't really understand what shape you are looking for. Fastest possible drop to 0 with only one small overshoot? But this motor was a test that I could do inside while it was cold in the garage .... and it's summer now! This has taken me *MUCH* longer than I was expecting.
If those values are OK, what code should I be running to do the test spin? It would be nice to prove out the encoder signal, verify the throttle response, and get some scope traces for this 5 HP motor.
Then I'd like to move the test setup to the garage and work on the Siemens AC motor that is coupled to the Warp 9 DC motor. I'll likely grab 1/3 of the pack from my car, approx 130VDC 60 a-h renault/nissan leaf pack.
9mS (your convergence time) may be OK. I don't know. My motor ended up with a convergence time of around 1.3mS. Now you need to find the rotor time constant. It's another test where you have to run through a variety of values. The nice thing is, the motor will spin each time you test one of those time constant values. One of them will give the highest RPM. But before you try that, you should probably just try some code where you manually turn the post, and see the encoder position through the serial port. We need to know that's working before you can do the rotor time constant test. I'll send that this weekend.
But before you try that, you should probably just try some code where you manually turn the post, and see the encoder position through the serial port. We need to know that's working before you can do the rotor time constant test. I'll send that this weekend.
That sounds great ... I'm not so confident that the encoder signal is good. Please remember that pulses per revolution needs to be a value I can set (it's not 512)
I'm doing another hour of testing or so tonight, on the DC controller, before we leave for the lake. I can go through the code you send me on the weekend, but testing will have to wait until Monday night.
...I agree that the response could be better but I still don't really understand what shape you are looking for. Fastest possible drop to 0 with only one small overshoot? But this motor was a test that I could do inside while it was cold in the garage .... and it's summer now! This has taken me *MUCH* longer than I was expecting...
Thank you to thingstodo and Paul for posting their efforts in getting the controller set up. It is answering many of the questions that i would have had to ask later anyway.
Sounds like once you confirm the encoder works with the controller you will quickly move into garage testing the big motor.
Good luck.
Sounds like once you confirm the encoder works with the controller you will quickly move into garage testing the big motor.
Good luck.
That's the plan!
Quote:
Thank you to thingstodo and Paul for posting their efforts in getting the controller set up. It is answering many of the questions that i would have had to ask later anyway.
Is there a maximum for Ki-id? Somewhere between 3000 and 4000 ... like maybe 3276? I think I ran into a limit since doing run-pi-test after ki-id 4000 did not work.
Best results (I think) were in file 86, kp 3000, ki 1000. See if you agree.
file 88 is where I ran into run-pi-test not working. File 89 as well, but I ran a test at kp 3000, ki 250
I have not had a lot of time lately, and neither has Paul.
This is not really an update. I hope to get some pictures posted this week but actual progress is limited.
I can still make some progress on the 5 HP motor in my basement, but I took the plunge and moved the controller to my garage.
The battery pack from my Mazda is now in the garage (pending battery box construction). It is strapped for 375V now. The siemens AC motor is coupled to the warp9 with some scrap wood. I'm working on how to make mounts that will withstand more torque - like maybe 400 foot-lbs or so. First tests on the Siemens can be at 375V and then when I need to run the Warp9 as well, I'll do 3 parallel strings of 125V. I will likely need to re-tune with the different voltage but it sounds like I will need a few tries to get good at it, so I may as well!
The laptop, the throttle, the contactors, etc are not in the garage right now - I need to find a way to keep my feline (and the static electricity, hairballs, etc) out of the test area. Anyone with a cat knows how much of a challenge THAT is.
*Edit - pictures from left to right:
- Battery pack alone
- entire mess, battery pack on the left, controller top middle, motors coupled on right
- controller with cover off (not cat-proof)
- motors coupled
- motors coupled, from the top, showing joy coupler and 2 x 4 mounting between motor frames (need to work on this part)
Last edited by thingstodo; 06-19-2015 at 08:08 PM..
Reason: Add pictures
Had to play a bit of catch up since my last visit. Paul sorry to hear about your incident, my sincere hopes everything is sorted by now and let us know if you need any help.
I'm wondering if anyone has looked into the DC Boost converter since I'm resuming work on that.
Had to play a bit of catch up since my last visit. Paul sorry to hear about your incident, my sincere hopes everything is sorted by now and let us know if you need any help.
I'm wondering if anyone has looked into the DC Boost converter since I'm resuming work on that.
First, I'd like to thank thingstodo & paul for their debugging tenacity!
Sorry, but I've been a bit out of the loop 'cause of an internet shut-down (1 month!! Don't use Excede or Wildblue if you like your sanity...) Also, I installed a new motor in a '97 4runner 'cause of a blown head-gasket.
ANYWAY... I've been thinking more about the boost converter idea. My initial impression was to KISS, thus just build a higher voltage battery pack. However, a new project has my interest - one of those cool old ****light**** English sports cars. To do it justice, everything must be light ( "build in more lightness" ). I've come to realize that a boost converter+battery pack will be lighter than a big battery pack.. - yes, I'm a bit slow.
So, yes, I'm interested - I think the idea has some great potential.