Engine control scenarios / modes

It's all about the code!
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Engine control scenarios / modes

Post by JRD McLAREN »

So, we can choice between some control models.

Speed density / MAP
Alpha-N / TPS-RPM
MAP
MAF

These models are used for both Ignition and Injection control.
But, in some cases, we need different mode for injection and different for Ignition.

Let, me explain ...

I have 2.0 litre engine, on ITB, and also have vacuum tank for MAP sensor.
Using "Speed density" model for fueling "is too bad idea" for ITB engines, but is "good idea" for ignition.

Using Alpha-N model is not so good for fuel economy - we need correction table
and it is not ideal for ignition on low engine load.

Is possible to have different control models for Ignition and different for Injection ..??
.. some Proteus and microRusEFI for sale in Europe ..
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Engine control scenarios / modes

Post by AndreyB »

You use double negatives do you or do you not, don't you?

Please state which combination do you believe would be ideal for you. At the moment I believe if you use MAP for fuel you are forced to use same MAP for spark.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Engine control scenarios / modes

Post by AndreyB »

Actually maybe we have exactly what you are looking for?

Just attempted to document it better https://github.com/rusefi/rusefi/commit/17733bc00f21517b551409bafda26e1b44b49ad4
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

OK ..

On most ITB engines is Alpha-N mode good for fueling.
It has no correction.

All tables have X and Y axes.

Is possible to have "X - rpm" and "Y - tps" axes for fueling
and "X - rpm" and "Y map" axes for ignition ..??
(..and AFR table X-rpm Y-map .. maybe)
.. some Proteus and microRusEFI for sale in Europe ..
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

russian wrote:
Fri Apr 12, 2019 10:25 pm
Actually maybe we have exactly what you are looking for?

Just attempted to document it better https://github.com/rusefi/rusefi/commit/17733bc00f21517b551409bafda26e1b44b49ad4
...this is it .. maybe ...

It is in on latest bundle ..?? or it is "on plan" .. ?

EDITED:
no ...
Last edited by JRD McLAREN on Fri Apr 12, 2019 10:32 pm, edited 1 time in total.
.. some Proteus and microRusEFI for sale in Europe ..
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Engine control scenarios / modes

Post by AndreyB »

It's on the current bundle but sounds like it's the opposite of what you want - it has MAP for fuel and TPS for spark.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

...yes, it is opposite..

In speed-density mode, you need to retard ignition on "high TPS move"..
cause detonation may occur ...
.. some Proteus and microRusEFI for sale in Europe ..
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Engine control scenarios / modes

Post by AndreyB »

Not supported at the moment :(
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

OK..
it was a question ..

On engines with ITB you have "two state" MAP value ..
Vacuum .. aprox 56-60kPa (on my engine)
and..
No vacuum .. aprox 85-92kPa
..nothing between..

on same MAP and RPM value, in cruise drive.. (1800-2000)
"wallking around" 4 fields in VE map (54-56)
but have different AFR (14 - 12) dependent on TPS position (13-8)
.. some Proteus and microRusEFI for sale in Europe ..
User avatar
andreika
donator
donator
Posts: 461
Joined: Mon Feb 13, 2017 2:35 pm
Location: Kiev

Re: Engine control scenarios / modes

Post by andreika »

russian wrote:
Fri Apr 12, 2019 10:37 pm
Not supported at the moment :(
How about that?
Image
Image
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

Mmmm...
This looks good ..
This is what I want ..
Attachments
Screenshot_20190413_111049.png
Screenshot_20190413_111049.png (473.14 KiB) Viewed 16306 times
.. some Proteus and microRusEFI for sale in Europe ..
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

Something is wrong ..

First try on dyno, with rusefi ..
and NO FUN ..

It cut off, when I have TPS 40% and above..

In log file, is MAX 40% TPS value reported,
but in a real life is much than 40% ....

We can try some "horrible numbers" in VE map,
but it doing nothing ..
Attachments
TPS_VE_test.JPG
TPS_VE_test.JPG (119.97 KiB) Viewed 16202 times
rus16.msl
(129 KiB) Downloaded 463 times
.. some Proteus and microRusEFI for sale in Europe ..
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Engine control scenarios / modes

Post by AndreyB »

Image


Do we know what kind of an engine this is? Have we seen a picture? What board is this? I think a LOT of info could be missing or did I miss something big time?

Could it be that a tune file could help us? Please confirm that you had a chance to look at http://rusefi.com/s/questions
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

Wait ...

My post is "just for record" .. at this moment...

I will try to check TPS sensor ..
Make video from my laptop screen ...
..etc ...
.. some Proteus and microRusEFI for sale in Europe ..
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

russian wrote:
Fri Apr 26, 2019 8:48 pm
Do we know what kind of an engine this is? Have we seen a picture? What board is this? I think a LOT of info could be missing or did I miss something big time?
here: https://rusefi.com/forum/viewtopic.php?f=2&t=1519#p32046
.. some Proteus and microRusEFI for sale in Europe ..
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Engine control scenarios / modes

Post by AndreyB »

TPS (white) goes UP but RPM goes DOWN? And mixture (green) goes lean?

I believe these logs are from SD card? Tuner Studio logs probably have most columns, firmware logs probably have least columns. Ideally should be the same if someone points at the gaps which columns are missing which of the three logs files :)
Attachments
javaw_FEO382Z72u.png
javaw_FEO382Z72u.png (175.46 KiB) Viewed 16193 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

Look at this picture, from megalog viewer ..

RPM is 2988
TPS is 42%
MAP is 98kPa
VE is 43

..as you can see "my test fuel map" ..
VE is 240 .. in these fields ....

Log file is from SD card ..
Attachments
Screenshot_20190426_230952.png
Screenshot_20190426_230952.png (241.98 KiB) Viewed 16193 times
.. some Proteus and microRusEFI for sale in Europe ..
Abricos
contributor
contributor
Posts: 849
Joined: Mon Aug 18, 2014 12:32 am
Location: Carteret, NJ 07008

Re: Engine control scenarios / modes

Post by Abricos »

how much volt is your TPS sensor 3.3 ,5 ,12 volt ?
Do you make calibration TPS. In tuner studio ?
New Bitmap Image (12).bmp
New Bitmap Image (12).bmp (3 MiB) Viewed 16190 times
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

...TPS is calibrated ... :roll:

I make some tests on "standing vehicle" ...

TPS work from 0 to 100% with no problem - see rus2.msl

VE map in TunerStudio look like picture above,
right TPS and RPM bins.
"mark" (or pointer) walking thru map ...

BUT in rusEFI console, looks different - see ve_rusefi_console.JPG
"Unknown degree" and "Unknown RPM" ..
and "green square" walking on the first line only, and not according real engine RPM
Attachments
rusEFI2019TPS_2019-04-27_14.31.29.tsproj.msl
(308.6 KiB) Downloaded 301 times
ve_rusefi_console.JPG
ve_rusefi_console.JPG (177 KiB) Viewed 16169 times
rus3.msl
(449.81 KiB) Downloaded 450 times
rus2.msl
(172.07 KiB) Downloaded 406 times
.. some Proteus and microRusEFI for sale in Europe ..
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

... I need to create "some engine load" table ..??
.. some Proteus and microRusEFI for sale in Europe ..
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Engine control scenarios / modes

Post by AndreyB »

rusEfi table editor is EXTREMELY limited, I would not try using it.

What is the problem you are trying to solve?

Engine not revving above certain is mostly about ignition timing not fuel map, is not it?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

It has problem with fueling...

It seems, the controller not calculate fuel correctly.
(wrong table readings or readings from different table ..??)

I have selected "speed density" algorithm, with TPS based VE map.

In TunerStudio everything look fine, but not in reality.
In rusEFI console look everything different.

I need to answer, why rusefi not calculate injection time from VE table, as I see on Tuner studio ..??
.. in this "combined mode" - Speed Density + TPS based VE table ..

(on many fields are "too high" VE value, it must be injection time around 20ms)
(but I cant see it on any gauge, AFR, logs etc .. )
(engine cut-off due to too lean mixture)
.. some Proteus and microRusEFI for sale in Europe ..
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Engine control scenarios / modes

Post by AndreyB »

JRD McLAREN wrote:
Sat Apr 27, 2019 1:42 pm
In TunerStudio everything look fine, but not in reality.
In rusEFI console look everything different.
What does "look fine" mean
What "look everything different." mean

I am sorry I am unable to read you mind. Please give exact gauge names, exact actual values and exact expected values. Please give exact tune and logs, with exact screenshots pointing at exact moment of the problem.

Have you considered using more normal modes just to compare?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

.see X and Y axes on pictures above.

"Standard" Speed Density mode, with MAP based VE table works fine.

It not works on TPS based VE table.
here is numbers https://rusefi.com/forum/viewtopic.php?f=5&t=1542&p=32934#p32918
.. some Proteus and microRusEFI for sale in Europe ..
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Engine control scenarios / modes

Post by AndreyB »

JRD McLAREN wrote:
Sat Apr 27, 2019 2:22 pm
.see X and Y axes on pictures above.
picture above shows BARO CORRECTION on rusEfi console

I do not understand how bar correction is related to your VE. "Picture above" is an example of a not specific data point, it's vague - there are too many pictures above :(
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

russian wrote:
Sat Apr 27, 2019 2:25 pm
picture above shows BARO CORRECTION on rusEfi console
NO ...
it is Volumetric Efficiency
Attachments
ve_rusefi_console2.JPG
ve_rusefi_console2.JPG (248.26 KiB) Viewed 16156 times
.. some Proteus and microRusEFI for sale in Europe ..
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

Fields values are the same .. in rusefi console and tunerstudio

but X and Y axes are different ...

then "bad calculate may occur" ...

EDITED:
OK .. just the Y is diff.
Attachments
TPS_VE_test.JPG
TPS_VE_test.JPG (119.97 KiB) Viewed 16155 times
.. some Proteus and microRusEFI for sale in Europe ..
JRD McLAREN
contributor
contributor
Posts: 434
Joined: Mon Mar 04, 2019 10:19 pm
Location: Slovakia

Re: Engine control scenarios / modes

Post by JRD McLAREN »

Fixed... :mrgreen:

I don't now why or how ..
but it's working ...

I try downgrade to snapshot_20190222_0741_stm32f407_rusefi,
edit Y axis on VE Table on rusEFI console, to be the same as in TunerStudio
.. and it started to work ...

Then I try to upgrade (back) to snapshot_20190410_1924_stm32f407_rusefi,
create "brand new project" in TS, on my second laptop
.. and it still working fine . ..

I'm so sorry to waste your time ...

(it's some mismatch configuration during update process before, maybe ..)
Attachments
TS_TPS_VE_BASE_WORKING.JPG
TS_TPS_VE_BASE_WORKING.JPG (236.59 KiB) Viewed 16150 times
rusEFI_TPS_VE_BASE_WORKING.JPG
rusEFI_TPS_VE_BASE_WORKING.JPG (209.54 KiB) Viewed 16150 times
rus4.msl
(1.16 MiB) Downloaded 349 times
.. some Proteus and microRusEFI for sale in Europe ..
mk e
Posts: 486
Joined: Tue Dec 06, 2016 7:32 pm

Re: Engine control scenarios / modes

Post by mk e »

JRD McLAREN wrote:
Fri Apr 12, 2019 10:47 pm

On engines with ITB you have "two state" MAP value ..
Vacuum .. aprox 56-60kPa (on my engine)
and..
No vacuum .. aprox 85-92kPa
..nothing between..
You can fix this easily with a multiMAP, a simple diode circuit that puts a separate MAP on each cylinder and sends the strongest signal to the ECU. On my engine with huge ITBs, cams and ports I see 35kpa at idle and a smooth transision to 100kpa at full throttle, and all points in between. I think getting good data to the ECU is a WAY!!!! better solution than trying to do fuel and spark control with different methods
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: Engine control scenarios / modes

Post by puff »

hey! do we consider the rover v8 like this
Image
with a plenum chamber on top as an ITB?
Post Reply