At idle nobody is pressing the pedal, so the engine depends entirely on the ECU for its air. A cold engine needs much more air than a warm one to overcome thick oil and friction; the alternator, the power steering, the radiator fan and the A/C compressor all load the engine and pull its speed down; and every time the driver lifts off the throttle the engine has to land on its idle speed without stalling or hanging high. Idle control handles all of it.
The RM-Primis controls idle with an idle valve (two-wire or three-wire rotary) or with the RM electronic throttle, and it can also move the ignition timing to hold the speed, which reacts far faster than any valve. This page explains how it works, how to set it up from scratch and how to tune it until the idle is steady from a cold start to a hot day in traffic.
Idle control is built on two tables, both read by coolant temperature:
The ECU then works in one of two ways:
| Mode | What the ECU does | When to use it |
|---|---|---|
| Open loop | Sets the opening to the Target position and leaves it there | To tune the Target position table, and on engines that idle steadily by themselves |
| Closed loop | Starts from the Target position and a PID controller nudges the opening until the engine runs at the Target RPM | Most engines, once the Target position is right: it absorbs loads, wear and the weather |
In both modes the opening is corrected for the intake air temperature: cold, dense air needs a smaller opening for the same idle, hot air a bigger one. The ECU uses the air temperature correction of the fuel trims for this, so the two stay in step. The Minimum and Maximum output limits apply in both modes.
Catching a stall. Whenever the engine speed falls below 1.25 × the Maximum cranking speed (set on Trigger inputs), the ECU puts the opening straight back to the Target position. The same opening is used at power-up and while cranking. That is why the Target position table matters even in closed loop: every start and every recovery begins from it.
Idle by ignition. Timing changes the engine's torque within one combustion, while air takes a few hundred milliseconds to fill the manifold. With idle ignition control on, the ECU adds advance when the engine dips below its target and takes it away when it rises above, so the timing catches the small, quick disturbances and the valve does the slow, steady work. It works in open and in closed loop.
Idle valve or electronic throttle. The ECU finds RM's electronic throttle module by itself and sends it the idle opening, which the module adds to the driver's pedal request. Without one, the ECU drives a PWM idle valve on the outputs you choose. With the electronic throttle the closed loop moves the opening more gently, because a throttle plate is far more powerful than a bypass valve.
Open Tune → Idle control. It has five pages:
| Page | What it holds |
|---|---|
| Overview | Enable, open or closed loop, the valve outputs, the output limits and the idle request |
| Target position | The opening by coolant temperature, and how the closed loop uses it |
| Target RPM | The idle speed by coolant temperature, and the smooth return to idle |
| Ignition control | Idle ignition control: gain and advance limits |
| PID | The closed loop controller, with the live values beside it. Shown in closed loop only |
| Setting | What it does |
|---|---|
| Enable | Switches idle control on. Off, there is no idle opening at all |
| Closed loop (hold the target RPM) | Off: open loop, the output is the Target position. On: closed loop, the PID holds the Target RPM. Turning it off also switches off Pre learn and Set output when no request, which only work in closed loop |
| Output pin 0-100% | The output that drives the idle valve. It is on for the idle output's share of each PWM period: at 30 %, for 30 % of it |
| Output pin 100-0% | A second output for three-wire rotary valves, driven opposite to the first. Leave it Disabled for a two-wire valve |
| PWM frequency | How fast the valve is switched. Use the valve maker's figure: too low and the valve buzzes and wears, too high and it no longer follows the duty |
| Output limits: Maximum | The most the idle output can ever be, in either mode. It also caps the Target position |
| Output limits: Minimum | The least the idle output can be, in either mode. A Target position cell below it is raised to it, and the closed loop cannot close the valve below it |
| Request input and Learn | An optional switch that says "idle wanted", such as the idle switch on a throttle body. Learn teaches the ECU the switching point of an analog input used as a switch |
| or pedal below | Without a request input, idle counts as requested while the pedal (or the throttle, with an idle valve) is below this. Above it the closed loop pauses and idle ignition advance is taken away |
Make sure the outputs you choose are not used by anything else. With RM's electronic throttle, leave both output pins Disabled: the opening goes to the throttle module.
An assigned Request input is also what arms the overrun fuel cut. If you assign one that never switches on, the overrun fuel cut never happens. With no input assigned, the pedal threshold is used instead.
The opening, in %, by coolant temperature. A cold engine needs much more air than a warm one, so the table falls as the temperature rises: in the example, 80 % at -40 °C down to 35 % fully warm. The graph below the table shows the curve; it should be smooth, with no steps.
This table is where the valve sits in open loop, at power-up, while cranking and after a stall catch, and it is where the closed loop starts from. A table that is right means the closed loop has very little to do, and the engine starts and catches itself cleanly.
| Setting | What it does |
|---|---|
| Pre learn | In closed loop, the ECU writes the opening it finds into the table by itself, cell by cell as the engine warms up. It writes only while the engine idles steadily within 50 rpm of its target and the wideband and fuelling are settled. The learned cells are in the ECU's working memory: store the tune to keep them |
| Set minimum | Makes the Target position the floor of the closed loop: the PID can open further but never close below the table. It stops the loop closing the valve far enough to stall the engine |
| Set output when no request | While the closed loop is paused (pedal pressed, overrun fuel cut, the first engine cycles after a start) the valve goes to the Target position instead of staying where it was. The return to idle then always starts from a known opening |
How to tune it, in open loop:
A worked example. Fully warm at 90 °C, the engine idles at 750 rpm with the cell at 34 %, and you want 850 rpm. Raise the cell a few percent at a time: at 38 % it holds 850 rpm. Then check the neighbouring cells follow the same curve.
The idle speed by coolant temperature. A cold engine idles higher to keep it running smoothly and to warm it up and light off the catalyst sooner; a warm engine idles as low as it runs smoothly. The example falls from 1300 rpm below 0 °C to 850 rpm above 40 °C.
It is the target of the closed loop and of idle ignition control. With an automatic gearbox on CAN, the gearbox's idle-up in drive is added to it.
Smooth idle (aka dashpot). After a throttle release, the target is kept above the engine speed and brought down gently, so the engine eases onto its idle speed instead of falling through it. Use it when the engine dips below its target, or stalls, as you come off the throttle; with a light flywheel it is almost always needed. With an automatic gearbox on CAN it is always on.
| Setting | What it does |
|---|---|
| Ignition control | Lets the ECU move the timing to hold the Target RPM |
| Gain (rpm difference × gain) | How much timing for each rpm of error. At 1.000 the ECU adds 0.1° for every rpm below the target: 50 rpm low gives 5° more advance. At 0.573, the same 50 rpm gives about 2.9° |
| Advance limit: Maximum | The most advance idle ignition may add |
| Advance limit: Minimum | The most retard it may take away (a negative number). The retard opens in gently over about a second once idle is requested |
| Disable above | Turns idle ignition control off above this road speed, which keeps the engine steady at small throttle openings while driving. 0 leaves it on at any speed; it needs a road speed signal |
Idle ignition control starts only once the engine has reached its target after starting, and a stall catch switches it off until the target is reached again. Advance is taken away as soon as the pedal goes above or pedal below.
How to set it. Start with a modest gain (around 0.3–0.6), a Maximum of 8–10° and a Minimum of -4 to -6°. Switch the A/C or the headlights on and off at idle: the speed should dip and recover within a second or so, without the timing swinging from limit to limit. If the timing hunts back and forth with a steady engine, lower the gain.
The ignition table's idle cells should leave room to move in both directions: if the idle timing is already at the most the engine likes, adding advance gives no more torque and idle ignition control loses half its power.
In closed loop the ECU compares the engine speed with the Target RPM at every update and moves the opening to close the gap.
| Setting | What it does |
|---|---|
| I | The main term: at every update it moves the opening in proportion to the speed error. It does the steady work of reaching and holding the target |
| P | Acts on how fast the error is changing. It damps the movement, so the speed settles instead of overshooting |
| D | Acts on how fast that change is changing. Use it sparingly, if at all |
| Loop speed | How often the PID updates, in ms. A faster loop makes the same gains stronger: retune the gains after changing it |
| Min. output rise per 4000 rpm | Raises the minimum opening while the engine is above its target, so the valve does not close completely on a throttle release and the speed does not undershoot on the way back to idle. At 4000 rpm above the target the whole value is added. Example: 10 % set, 1500 rpm against a 1000 rpm target, adds about 1.2 % |
| Auto tune swing | How far Auto tune moves the output either side of the middle while it measures |
| Auto tune | A guided measurement of the idle valve: warm engine, idling in closed loop, car stationary, A/C and other loads off. The ECU raises the idle to a test speed above the target (300 rpm by default), so the test stays well clear of a stall, and checks how the speed responds. RM-Tuner then suggests P and I; nothing changes unless you accept the suggestion |
| Trend PID | A live graph of the target, the engine speed and the output, for tuning by eye |
The Live values panel shows the Target output (the Target position as the ECU applies it), the engine speed, the Target RPM, the coolant temperature and the valve output. Undock opens it in a window of its own that stays on screen on any page, so you can tune the tables while you watch the idle.
Tuning the PID by hand. With the engine warm and idling in closed loop, open Trend PID:
| What you see | What to check or change |
|---|---|
| The engine needs the throttle to start or stalls straight after starting | The Target position at that coolant temperature is too small. Raise it |
| The engine flares high after starting, then settles | The Target position is too big for that temperature, or the after-start fuel is too rich |
| Idle hunts slowly up and down | Too much I, or too fast a Loop speed; a little more P damps it |
| Idle is slow to recover when the lights, steering or fan load it | More I; idle ignition control; the fan's idle-up |
| The speed dips or the engine stalls when you lift off the throttle | The Target position (where the valve returns to); Smooth idle; Min. output rise per 4000 rpm; Set output when no request |
| Idle sits above its target and will not come down | Set minimum with a Target position bigger than a warm idle needs, or Minimum too high; check for an air leak or a throttle plate held open |
| The valve never moves in closed loop | The pedal reading against or pedal below; the throttle position sensor; the Closed loop switch |
| The speed dips when the A/C engages | The A/C Idle-up adder, which is added the moment the compressor clutch engages |
| Idle changes with the air temperature | The air temperature fuel trims, which move the idle opening too |
Log it. For an idle problem, log the engine speed, Target RPM, valve output, Target output, coolant temperature, the pedal, the A/C and fan states and the ignition advance, over a cold start, a warm idle, the A/C and fan switching, and a blip and release.
| Setting | Where | What it does to the idle |
|---|---|---|
| Maximum cranking | Setup → Sensors → Trigger inputs | 1.25 × this speed is where the ECU counts the engine as running and where it catches a stall |
| Idle-up adder (A/C) | I/O → Air conditioner | Added to the opening when the compressor engages, taken off when it drops out |
| Idle-up adder and Idle-up time (radiator fan) | I/O → Radiator fan | Opens the valve just before the fan switches on, then fades out |
| Idle up in Drive and Idle output increase in Drive | Tune → Motorsport → Torque tables | With an automatic gearbox on CAN: raises the Target RPM and the opening while in gear |
| Maximum control for idle | Setup → Electronic throttle | The largest idle opening the throttle module will add to the pedal request |
| Active value | Tune → Motorsport → Antilag | While anti-lag is active the idle valve becomes its air valve and opens to this, beyond Maximum if need be |
See Radiator fan and air conditioning, Anti-lag and Torque tables.
Tune the Target position in open loop first. Then use closed loop on almost every engine: it holds the idle speed through loads, wear, weather and small air leaks. Open loop is enough for engines with very steady idles, such as some race engines that only idle in the pits.
The valve maker's figure. Many two-wire and three-wire rotary valves work at 100 to 300 Hz. Too low a frequency makes the valve buzz and wear; too high and it stops following the duty.
It is strongly recommended. Air takes time to fill the manifold, so the valve alone always reacts late to a sudden load. Timing reacts within one combustion and catches the dip before the driver can feel it.
Yes. With RM's electronic throttle module the ECU sends it the idle opening, which it adds to the pedal request. The tables and the PID are set up exactly as for a valve, and the output pins stay disabled. See Electronic throttle.
In closed loop, the ECU writes the opening it finds into the Target position table as the engine warms up, so the table stays right even as the engine ages. Check and smooth the learned table, then store the tune.
Contact customer support at [email protected].
Related pages: Electronic throttle · Ignition table · Overrun fuel cut · Radiator fan and air conditioning · Trigger inputs