MembersPage/GergelyLezsak/IdleControl (2005-08-13 16:37:25)

IAC

This is a 3-pin solenoid. I did some measurements to it:

Resistance between pins: (1) - 20ohms - (2) - 20ohms - (3) (So there are 40 ohms between pin 1 and 3) Without connection there's no "default" position.

Measurement !!NEW!!

Finally I've made measurements to motronic control signals. All measurements done with ignition on but engine is off.

I've been seeking long for specs. about notebook's mic. input. I found this:

compaqmicinput.gif

As you might found out I used the (mono!) mic input as a scope.

Here are the results:

motronic-guess.gif

First pic is channel 1 (solenoid pin1), second is channel 2(solenoid pin3). It's quite obvious that the sum of the duty of the two channels is appr 100%.

Third image is when both channels connected. How? I used to connect the ground of the notebook and the car, and the signal was connected through 2.1k resistor for one channel and through 10k resistor for the other. (I'm not sure which one is which)

On the third picture I tried to put them together but not sure that it's the good alignment, unfortunately 10kOhm channel is not so different from the case when both channels is "on" (switched GND).

These are my voltage calculations for all of the cases:

R2.1k R10k Voltage

off off 2.28V

off on 1.82V

on off 1.02V

on on 0.92V

Frequency is about 100Hz for sure.

I made a measurement to the current GenBoard control too:

vems-chan1.gif

It was only the first channel I checked, because it was way too fast to see difference when both were connected. (And not too interesting at all, we know how it's working :)

So it's ~2kHz!

What do you think?

Definitely relative heavy actuator can't cope with such a high PWMming, so what you succested (ie. decreasing control frequency) seems reasonable.

ps. I measured frequency from couple of 'similar' (but different part ie. Bosch part number vice) valves, they all were controlled with 50 to 150 hz signals.


Control it

PWM switched ground to pin1 and pin3 moves the valve to opposite directions, if pin2 has stable 12V+ supply. Connecting pin1 to GND closes the valve.

Changed the end of idle_solenoid() in iac.c so it sets 2 output channels instead of one: \n

        cli();
        digitalout(config.iac_sol_channel, output);
        sei_nop_cli();
        digitalout(config.iac_sol_channel + 0x10, output ^ 0x80 );
        sei();

config.iac_sol_channel has been set to 0x36 (stepper channel A)

This way 0x46 (stepper channel B) is inverted. Connections are according to GenBoard/Manual/DigitalOut/Table.

IAC control seems working now, I can use mdh/mdi commands and idle changes. For warm engine value around mdi70 seems a good approximation for 900 rpm. I've found that small changes to value doesn't reflect in rpm immediately (or at all). Big changes (like mdiff :) are noticeable promptly.

Idle controlled by GenBoard, but the idle controller (reference positions, ign-adv based control, iac-PID) is not yet tuned. Kindof instable now, see logs:

Definitely decrease P and D (start by cutting to half) and play with I-term as well.

After PID is tuned, to get faster behaviour the proposal on bottom of GenBoard/UnderDevelopment/FirmWare/PowerRelated could be implemented.

I've changed P and D (to half and even to quarter) values, played with I without success. I can't say there was no change to idle behavior but I couldn't decide which was better since all setting was way too poor. I sticked to use fixed values from keyboard but even this cause big (5-800 rpm) changes in idle, sometimes idle get lost between gear switching and engine halts.

Maybe we've to look after some different way of controlling, or even spy after motronic's controlling mechanism. One for sure, motronic actuated the valve with a much lower (~50 Hz by ear) frequency than we do now.


Driver selection

14V/20Ohms = 0.7A capability with flyback

If the two coils have independent magnetic paths (which I expect), low voltage flyback is the best. Either:

If the 2 solenoids have the same magnetic path (very unlikely, only unipolar steppers have that), than high-voltage flyback (16V or above, 18..20V recommended) needed instead of low-voltage flyback:


Docs found

Found some info in haltech docs:

BAC Hi

BAC high is a form of BAC idle control that is used for 3-wire BAC valves with two coils. These valves are

sprung so that when no coils are energised, the BAC valve sits at 50% open. Two PWM signals are used to

move the coils. One signal moves the valve from 0% to 50% open, while the other signal moves the valve from

50% to 100% open. The BAC Hi output moves the valve from 50% to 100%. When the target position for the

valve is between 50% and 100%, this output will provide a signal from 0% to 100% duty.

Sounds relatively simple. Some changes and things to-check required in idle_solenoid() :

All idle control tuning and setup is done with the BAC Hi output. Refer to section 3.13 for details on how to

tune your idle control.

BAC Low

The BAC low output is used to control the BAC valve when the target opening is 0% to 50% open. When the

valve target position is 0%, the output duty is 100%. When the target is 50% open, the output duty is zero to

allow the spring to return the valve to its default position.

BAC Inverted

For 3-wire BAC valves that do not have a spring to return the valve to the centre position, use BAC and BAC

Inverted to control the valve. Connect the BAC output to the coil that pulls the BAC valve open. Connect the

BAC Inverted output to the coil that pulls the BAC valve closed. The BAC Inverted signal is a complementary

signal to the BAC signal. If the BAC output is set to 70% duty, then the BAC Inverted signal is set to 30% duty.

All idle control tuning and setup is done with the BAC output.

pwm freq maybe in 200-1000hz range?

[original doc]


NOTE ! "Original" wiring ('0 280 140 509' valve (from E30 -89) is as follows...

Pin 2 -> 12V supply.

pin 1 -> to Motronic ECU pin 22 (white-green)

Pin 3 -> to Motronic ECU pin 4 (white-yellow)

wiring might be same with the '524' valve ?


Picture of stock(?) idle air solenoid:

PICT0006-idle-solenoid.JPG


System had an EVAP purge canister valve (said 'auxiliary air control' earlier) also:

PICT0011-some-air-solenoid.JPG

I'm not sure whether this is part of current motronic config or it comes from some jetronic system. Harness was connected however.

options