
Hello colleagues!
Since in the
last article you expressed a desire to learn more about how the engine control of a racing car looks like in real life, I’m ready to tell you how it works in practice. Today I will show you with concrete examples how the control system and engine settings in my car are arranged.
Subaru Impreza WRX STi with the engine control unit
MoTeC M800 will act as the test subject. In this article you will find a description of the control program, basic functions and some nuances of customization. Interested please pass under cat.

As an introduction, let's take a direct look at the power plant, which is controlled by a computer. This is a gasoline 4-cylinder EJ257 engine with boxer assembly and turbocharging. It is equipped with 4 camshafts, 2 intake camshafts with the possibility of changing the valve timing. Accordingly, it is equipped with 4 Bosch 1000CC nozzles, 4 candles with separate ignition coils and a Greedy TD06-20G turbine. C it produced a lot of various modifications. As a result, this model is able to develop peak power up to 450 horsepower.

Such a powerful configuration forced to abandon the mass air flow sensor (MAF) in favor of the absolute pressure sensor of the air in the intake manifold (MAP) due to the fact that the upper limit of measurements of the standard MAF was reached. From the point of view of control of the pressurization system, the classical solution in the form of the three-port saltwater Apexi is applied here. REF / SYNC sensors (crankshaft position, ignition) are standard. Also, the engine temperature sensor, the intake air temperature sensor, the control mechanisms of the electronic gas pedal and the electronic throttle valve and the controls of the variable valve timing system are used from standard devices. The knock sensor, unfortunately, had to be abolished due to the lack of accurate calibrations of its values. From the peripheral devices to the ECU are connected the radiator cooling fan relays, the power steering activity sensor and the fuel pump control system.
')
To connect to the ECU, we need a special adapter
Motec UTC CAN-to-USB . I use
ECU Manager v as software
. 3.5 . The software allows you to analyze firmware files in two modes: online and offline. When you first adjust the parameters are made on the connected ECU directly to the operating firmware. The second changes are made to the file, which must then be downloaded to the computer. Well, let's get acquainted with the basic elements of the software (you can do this by installing it on your computer and creating a new project in it). I would like to note that almost all items have a built-in help "F1".

The main working menu is “Adjust”, through which we get into all the basic configuration mechanisms. The most commonly used are fuel and ignition tuning. In the second block, the “Functions” tab is presented, storing the “sweetest” in it: various specific functions.
Digital ,
Auxiliary ,
Ignition, and
Injector are grouped I / O ports. Each of them has its own capabilities and personal settings. In their bulk, they are universal and allow you to assign any functions to them. The last block has quite “talking” tab names and for the most part contains parameters that are configured once. It is also worth noting that the ECU has a password protection system for its own firmware, which allows the adjuster to block access to it in whole or in part.

Of course, the main working tool is the fuel card (Adjust -> Fuel -> Main table), which determines how much fuel you need to apply at the moment. It calculates the time for which you want to open the nozzle. It is not constant and is summed up according to a complex scheme of “compensations” from the base values ​​in the table with additional parameters. It depends on both the temperature regimes, the pressure in the intake manifold, and on any "arbitrary" formulas. The mixture fed to the engine is one of the most important values ​​in engine operation. If the mixture is too poor, you risk to get a detonation of fuel and prematurely bury the engine. By feeding too much fuel, you create monstrous consumption combined with the risk of a fuel explosion in the exhaust manifold. This is a very thin boundary between power, economy and durability. You can get acquainted with various compensation modes in the tab Adjust -> Fuel -> Compensations.

The second main table is the control of
the ignition timing (Adjust -> Ignition -> Main table). This tincture is one of the decisive for achieving maximum efficiency of fuel combustion. Since the quality of gasoline at gas stations suffers, the parameters must be aligned in such a way that they cover a certain range of fuel in terms of its burning rate. Its calibration requires some understanding of the physics of the processes occurring in the engine. Traditionally for many parameters, the wrong value leads to the purchase of a new engine. Therefore, it is worth the most responsible approach to change, and not try to make them on the fly without a knock sensor. As well as the fuel card, there is a set of compensations for changing the table dynamically depending on other parameters (Adjust -> Ignition -> Compensations).

Next, pay attention to the tab Adjust -> Functions. Here are the control algorithms regulation of supercharging, setting the racing systems "antilag" and "traction control" and much more. You can customize the change in engine behavior depending on the gear included, make up to three modes of nitrous oxide injection and build an automatic mixture control system using two lambda probes. In principle, the palette of various functions is so rich that it allows you to implement any necessary function for both civilian driving and racing trips. As Motec software improves, new add-on modules and algorithms appear. Among all this palette, I would like to draw your attention to such a seemingly unremarkable function as
Idle Control . It is a system for maintaining engine idle.

For their control is applied
proportional-integral-differential controller . This is because maintaining idle speed of the engine is necessary under a wide variety of conditions. Included electrical equipment (lights, window heater) or stove can significantly increase the load on the engine. Accordingly, the computer should smoothly respond to the event and increase the number of revolutions of the crankshaft. The configuration of these parameters is one of the main problems Motec: control of the engine at low speeds. It takes a lot of time and effort to set the PID parameters as precisely as it was done on civilian cars. But even after spending a week on it, you still have to come to terms with compromises like 1000 r / m and small “wanderings” due to the too large differential component.
Perhaps on this I finish the description of the software components. A detailed description of each function is worthy of a separate article due to the mass of nuances and subtleties. Of course, if there is interest, I am ready to continue the narration on the topics you have chosen.
In general, to set up an ECU Motec requires a lot of patience and accuracy. Any mistake can entail costly repairs. Unfortunately, there are no voluminous manuals. Almost all the knowledge and answers to specific questions are collected on the company
forum . But since each project is individual, much is learned from its mistakes.
Thanks for attention! I hope I told you something new.