04-17-2015, 12:37 AM
|
#1801 (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 thingstodo
What would you suggest as a 'foot off the pedal' value for the accelerator?
I think Paul said the range was 0.5 - 4.5V ... so maybe 0.6V? I'll try that and see if anything changes.
|
I tried 0.50V, power up, run, config, didn't bother to change the Kp and Ki and did run-pi-test. It never comes back
I tried 0.60V.
I tried 2.50V,
And that's it for tonight.
Lastly, I checked the 3 phase motor to make sure that it was still connected correctly to the controller. It is.
|
|
|
Today
|
|
|
Other popular topics in this forum...
|
|
|
04-17-2015, 12:40 AM
|
#1802 (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
Zero is actually about 2.5v, since the throttle was configured as a wig wag. But I don't know what the state of the code is on the instructable. It may still be filler that I was going to get to.
|
Um .. I should have remembered that ...
And if I didn't remember it, I should have looked in the code.
I'm not using the code from the instructable, I'm still running the code that you/we loaded at your place. But I can't build it
|
|
|
04-17-2015, 12:54 AM
|
#1803 (permalink)
|
Dreamer
Join Date: Nov 2013
Location: Australia
Posts: 350
Thanks: 95
Thanked 214 Times in 151 Posts
|
Quote:
Originally Posted by MPaulHolmes
Zero is actually about 2.5v, since the throttle was configured as a wig wag. But I don't know what the state of the code is on the instructable. It may still be filler that I was going to get to.
|
Not sure about the instructables code but the code i have has :
while (ADThrottle < savedValues.minRegenPosition || ADThrottle > savedValues.minThrottlePosition)
I remembered the minThrottlePosition but forgot about the minRegenPosition.
For testing i can see that wig wag type setup would work well.
For in vehicle use though holding the throttle at that mid point (2.5v) may be tricky.
I have been meaning to ask for a while about how the regen behaves.
When the throttle is in the regen zone if the car is rolling then the regen slows the motor and charges the battery.
But what if the car is stationary. If the throttle is in the regen zone then does it do nothing? Or will it cause a reversal of the motor direction?
|
|
|
04-18-2015, 02:55 PM
|
#1804 (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 Astro
I have been meaning to ask for a while about how the regen behaves.
When the throttle is in the regen zone if the car is rolling then the regen slows the motor and charges the battery.
But what if the car is stationary. If the throttle is in the regen zone then does it do nothing? Or will it cause a reversal of the motor direction?
|
I do not have code snippets to back this up, but watching the video that Paul posted implies that the absolute value of the speed reduces. The regen will not reverse the direction.
Full regen at zero speed should do nothing.
|
|
|
04-18-2015, 02:59 PM
|
#1805 (permalink)
|
Master EcoModder
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488
Thanks: 746
Thanked 565 Times in 447 Posts
|
Paul - I'm going to work on the larger motor (siemens AC motor) coupled to the warp9 with the built-in encoder on the AC motor. Let me know when you get the new combined code tested - hopefully on MPlab X - so I can do a built and use debug to see what is holding me out from continuing my testing.
Did you get a BOM written up for the new DC board? I can get parts ordered and start playing with that between working on the AC controller testing.
|
|
|
The Following User Says Thank You to thingstodo For This Useful Post:
|
|
04-19-2015, 02:09 AM
|
#1806 (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, I'll install mplab x tomorrow. Which new DC board? Do you mean the driver boards?
At the moment, the throttle is configured so that the middle is zero throttle, and twisting the throttle one way makes the motor spin clockwise, and then twisting the throttle the other way makes the motor spin the other way. If the motor is spinning in any particular direction, and you twist the throttle to fight against the direction it wants to spin, it goes into regen mode. I need to add a couple lines of code so that you don't come to a stop at a stop light, and start driving backwards. haha.
|
|
|
04-19-2015, 10:45 AM
|
#1807 (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, I'll install mplab x tomorrow. Which new DC board? Do you mean the driver boards?
|
If you have the time to install MPlab X, that would be great. If you check out your code on the older MPlab, I'll muddle around trying to get it to compile on MPlab X
I guess I meant the BOM for the driver boards. I think of them as a 'DC' board because that's what I was going to test them on first
|
|
|
The Following User Says Thank You to thingstodo For This Useful Post:
|
|
04-19-2015, 10:27 PM
|
#1808 (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
|
242 Meg out of 369Meg so far on MPLab X. Hopefully the install goes smoothly.
edit: Now installing compiler... I'm bored, so I figure I'd type here...20% done.. haha
Last edited by MPaulHolmes; 04-19-2015 at 10:34 PM..
|
|
|
04-19-2015, 10:59 PM
|
#1809 (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
|
The "combined PI Loop tuning & AC controller code" compiled when I installed mplab X and the XC16 compiler. I didn't have to make any changes.
|
|
|
The Following User Says Thank You to MPaulHolmes For This Useful Post:
|
|
04-20-2015, 12:36 AM
|
#1810 (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
The "combined PI Loop tuning & AC controller code" compiled when I installed mplab X and the XC16 compiler. I didn't have to make any changes.
|
Great! Where can I grab a copy?
|
|
|
|