Closed loop IAC control documentation

This is a forum for discussing the development and testing of alpha MS2/Extra code. Documentation
(Runs on MS2 and Microsquirt)

Moderators: jsmcortina, muythaibxr

Philip Lochner
Super MS/Extra'er
Posts: 1004
Joined: Thu Feb 16, 2006 6:18 am
Location: George, South Africa

Closed loop IAC control documentation

Post by Philip Lochner »

Has anything been written on the MT parameters for closed loop control yet. I'm very keen to give it a try on my Rover V8...
Kind regards
Philip
'74 Jensen Interceptor 440ci (EFI'ed with MS2 and wasted spark + GM 4L60e GPIO controlled - both on Extra FW)
muythaibxr
Site Admin
Posts: 8230
Joined: Thu Oct 14, 2004 12:48 pm

Post by muythaibxr »

Mostly a bunch of posts in various threads.

I intend to document it as soon as I get a chance, and it's stopped changing.

The next beta is going to have several significant changes that will require retuning the PID parameters among other things, so I didn't want to document it until it was close to its final form.

Just a note, with stepper IAC motors, the algorithm is a lot more difficult to get working right since steppers move so slow.

Ken
Asteris
Helpful MS/Extra'er
Posts: 146
Joined: Sun Nov 13, 2005 2:40 am

Post by Asteris »

Did you fixed the problem that it always stays on, whatever setting it uses? Makes my stepper motor get burning hot after 5-10 mins...
Philip Lochner
Super MS/Extra'er
Posts: 1004
Joined: Thu Feb 16, 2006 6:18 am
Location: George, South Africa

Post by Philip Lochner »

muythaibxr wrote:Just a note, with stepper IAC motors, the algorithm is a lot more difficult
... and that's why us folk who need it to work will appreciate it SO much, thanks Ken
:D
Kind regards
Philip
'74 Jensen Interceptor 440ci (EFI'ed with MS2 and wasted spark + GM 4L60e GPIO controlled - both on Extra FW)
muythaibxr
Site Admin
Posts: 8230
Joined: Thu Oct 14, 2004 12:48 pm

Post by muythaibxr »

Asteris wrote:Did you fixed the problem that it always stays on, whatever setting it uses? Makes my stepper motor get burning hot after 5-10 mins...
I don't think that's a problem, as I've got it working on the bench without that problem.

Ken
muythaibxr
Site Admin
Posts: 8230
Joined: Thu Oct 14, 2004 12:48 pm

Post by muythaibxr »

Philip Lochner wrote:
muythaibxr wrote:Just a note, with stepper IAC motors, the algorithm is a lot more difficult
... and that's why us folk who need it to work will appreciate it SO much, thanks Ken
:D
heh, I was talking about tuning it.

There might be some mods I can make specific to stepper IAC motors to make them a respond to increased load a little faster... but I have not made those mods yet.

Ken
Asteris
Helpful MS/Extra'er
Posts: 146
Joined: Sun Nov 13, 2005 2:40 am

Post by Asteris »

muythaibxr wrote:
Asteris wrote:Did you fixed the problem that it always stays on, whatever setting it uses? Makes my stepper motor get burning hot after 5-10 mins...
I don't think that's a problem, as I've got it working on the bench without that problem.

Ken
From beta 15 and on, IAC controller stays on, whatever settings i use at Idle control. It's obvious, because my stepper motor heats up, even with rpm at 0. This also shows at Realtime display, where the voltage drops at 9-10V (12V/1A AC power supply.

At Beta 14 and previous ones, with setting at IAC stepper Moving only, stepper motor stays cool and voltage is rock steady at 12.2V.

You wanna know what the funny thing is? IAC draws current even when Idle control set to None. And so does firmware 1.02. And B&G 2.870 which i tested.
muythaibxr
Site Admin
Posts: 8230
Joined: Thu Oct 14, 2004 12:48 pm

Post by muythaibxr »

Are you talking about warmup only or closed-loop IAC?
Asteris
Helpful MS/Extra'er
Posts: 146
Joined: Sun Nov 13, 2005 2:40 am

Post by Asteris »

Moving only from 1.02 to beta 14, motor moves, stays cool, voltage at 12.2V.

All other IAC settings (and Moving only at beta 15 and 16), motor moves, but heats up and voltage ripples around 10V.

All other none-IAC settings (on/off, PWM) including None, at all firmwares, motor does not move, but heats up and voltage ripples.

Heating and voltage ripple happens even when Rpm stays at 0.
muythaibxr
Site Admin
Posts: 8230
Joined: Thu Oct 14, 2004 12:48 pm

Post by muythaibxr »

EDIT: I found and fixed the bug causing your problem. It'll be in the next beta.

Ken
Asteris
Helpful MS/Extra'er
Posts: 146
Joined: Sun Nov 13, 2005 2:40 am

Post by Asteris »

I could kiss you if you were here. Thanks a lot...
Asteris
Helpful MS/Extra'er
Posts: 146
Joined: Sun Nov 13, 2005 2:40 am

Post by Asteris »

Ken, is this fix implemented at Beta 17 as you said? If yes, I'll go and unhook the ECU from the car to flash and test it...
muythaibxr
Site Admin
Posts: 8230
Joined: Thu Oct 14, 2004 12:48 pm

Post by muythaibxr »

Asteris wrote:Ken, is this fix implemented at Beta 17 as you said? If yes, I'll go and unhook the ECU from the car to flash and test it...
Yes, this and several other fixes are in beta 17... I edited the beta 17 release message to reflect this change as well.

Ken
Asteris
Helpful MS/Extra'er
Posts: 146
Joined: Sun Nov 13, 2005 2:40 am

Post by Asteris »

Problem fixed at beta 17. Stepper motor stays dead cool and voltage rock solid at 12.2V. Tomorrow i'll test it on car.

Many thanks.
Asteris
Helpful MS/Extra'er
Posts: 146
Joined: Sun Nov 13, 2005 2:40 am

Post by Asteris »

Ok, new problem here.

Testing on the bench, Moving only mode, stepper motor responds fine for a couple of minutes (i change CLT on stim from 0 to 100C, to get IAC step from 100 to 160 steps and back). After those two minutes, and within about 30 seconds, motor starts to loose some pulses, then just makes a hum and won't move and finally stays dead. When i power off and on, it retracts fine, but still stays dead in further commands.

I thought, maybe something overheats real fast, but if i change to Always on mode, it instantly starts to work fine again (tested for another 20 mins or so), so it is not hardware related. Same thing happens at Closed-loop modes.

Seems like IAC controller shuts down after some time, when in Moving only modes. I would use Always on to solve my problem, but stepper motor heats up to 60-70 degrees C and that is in room temperature, don't want to find how high it would reach in the engine compartment. I'll use 15-min IAC till this problem is solved.

Thanks.
muythaibxr
Site Admin
Posts: 8230
Joined: Thu Oct 14, 2004 12:48 pm

Post by muythaibxr »

This doesn't sound like a software problem. It sounds like you may need to jumper the two power resistors on the bottom of the ms2 daughtercard. I kept seeing this problem when testing code until I jumpered them.

Ken
Asteris
Helpful MS/Extra'er
Posts: 146
Joined: Sun Nov 13, 2005 2:40 am

Post by Asteris »

So, jumping these two resistors, will let me use Moving only all the time? What do these resistors do, reduce the current going to the stepper motor coils? And why should they let the motor work for the first two minutes and then fail?

What is their value? Can i change them with a lower one?
muythaibxr
Site Admin
Posts: 8230
Joined: Thu Oct 14, 2004 12:48 pm

Post by muythaibxr »

Asteris wrote:So, jumping these two resistors, will let me use Moving only all the time? What do these resistors do, reduce the current going to the stepper motor coils? And why should they let the motor work for the first two minutes and then fail?

What is their value? Can i change them with a lower one?
I believe they are current limiting resistors... I don't know why it works for a few minutes then stops with these in, but I do know that for most people with that behavior, it is safe to jumper them.

Ken
Asteris
Helpful MS/Extra'er
Posts: 146
Joined: Sun Nov 13, 2005 2:40 am

Post by Asteris »

After jumpering the two big resistors, problem is solved.

So, if now a coil blows inside the stepper motor, IAC controller will short circuit and goes bang, right?
Asteris
Helpful MS/Extra'er
Posts: 146
Joined: Sun Nov 13, 2005 2:40 am

Post by Asteris »

Small remark. When Idle set at Closed loop IAC, cranking position steps are Grey. Motor goes to the value taken from PWM cranking position (you can change that if you select PWM closed-loop), but it allows only 1-100 values, where stepper motor may need higher value.

Also Idle Valve closed Duty or Steps (%), doesn't affect operation, motor moves between Idle Open Duty or Steps (%) and Min Duty or Max Steps for PID (%).
Post Reply